LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-24-2008, 06:02 AM   #1
gernonimo
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
system backup from running system


Is it possible to make a backup of the whole system from a running system?
Now i use a Live-CD to backup (and restore if necessary) my system. But this causes downtime of my server so i'm searching for an alternative backup solution without having to shut down my server.

thank you!
 
Old 11-24-2008, 07:41 AM   #2
Bdfy
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Rep: Reputation: 0
cp -ax, rsync ( except /dev ( if your use udev ), /proc, /sys ) . For database - use internal dump utils - for example for PostgreSQL - pg_dump.
But for rpm/deb based distr - sufficiently list of packages.
 
Old 11-24-2008, 12:01 PM   #3
djsoundfx
Member
 
Registered: May 2008
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 82

Rep: Reputation: 23
What level of backup are you looking for? rsync ( http://www.samba.org/rsync ) is a great free tool to back up just about anything but it takes a little finess to get it setup just right. Rsync is one of my favorite solutions for things like web servers where you just wanna back up html, conf, txt, etc. and then only back the up again when the files have and you're not really worried about the binaries.

There are also a lot of great open source solutions that resemble of an enterprise backup solution. For example, I like Amanda its easy to use and has great documentation. These are good for full os level backups or database exports. Check it out at http://amanda.zmanda.com/

Alternatively you can do full image backups with something like Clonezilla ( http://clonezilla.org )or Acronis (a paid solution). Clonezilla is great but its cold cloning (meaning there will be downtime just like when you use your live cd).

Depending on what the system is most often I use just an rsync back up and move it to a redundant system so in the event my main server goes offline the back up server can be online in a matter of minutes. I do however take OS level backups (usually images with Clonezilla) before and after patching systems.

Hope that helps! There's also a ton of information on LQ and google that address back ups and best practices depending on your specific environment and system purpose.
 
Old 11-24-2008, 01:33 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Open Source Backup Solutions: http://en.wikipedia.org/wiki/List_of...re#Open_source

Proprietary Backup Solutions: http://en.wikipedia.org/wiki/List_of...re#Proprietary
 
Old 11-24-2008, 03:40 PM   #5
gernonimo
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for your responses - i'll take a look at the backup tools you recommended.

I do make backups with rsync of my data and i thougt of using it for my system. But is it safe to make system backups with rsyc of a running system? I think, under some circumstances, there could be problems with changing files during the backup. For example: what's happening with a big file that's changing continously (for example if you record a stream?) - can the file get damaged? I think the same could apply for databases which can get inconsitent. Is this true?
Probably also lock-files can be problematic.
I want to make backups of my system before i install/upgrade software on my server without having downtime every week or so. So if i trash the system i want to be able to restore the latest working version and i want to be sure that my backup is not corrupted because of the above described problems.
 
Old 11-26-2008, 12:59 PM   #6
djsoundfx
Member
 
Registered: May 2008
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 82

Rep: Reputation: 23
Quote:
Originally Posted by gernonimo View Post
thanks for your responses - i'll take a look at the backup tools you recommended.

I do make backups with rsync of my data and i thougt of using it for my system. But is it safe to make system backups with rsyc of a running system? I think, under some circumstances, there could be problems with changing files during the backup. For example: what's happening with a big file that's changing continously (for example if you record a stream?) - can the file get damaged? I think the same could apply for databases which can get inconsitent. Is this true? Probably also lock-files can be problematic.
It depends on the levels of backup you're taking. Usually you don't do a full system dump/image every night. Usually you do something like dump the databases to a file then move those files to a safe location. Same thing with the stream, if you're backing up you wanna limit the amount of processes actively running.

Proprietary backup solutions can handle this for you, if you do rsync you'll wanna write a script (or scripts) that shuts a daemon down, backups the file(s) and then restarts the daemon. Usually you don't rsync everything all your system every night/week. Usually you just wanna focus on the things that you can't live with out... configuration files, photos, videos, whatever is important to you. You can always rebuild your OS and daemons, but it'd go a lot faster with those configurations you backed up!

Quote:
I want to make backups of my system before i install/upgrade software on my server without having downtime every week or so. So if i trash the system i want to be able to restore the latest working version and i want to be sure that my backup is not corrupted because of the above described problems.
What software are you upgrading on a weekly basis that needs a full file system level backups? Usually backing up the configuration files for a daemon (like say apache) is sufficient. So you backup the config files, apply the update, and if Apache is now broken, you downgrade to the previous version and restore your configuration files.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to take system backup like system restore in windows piyush.ml20 Linux - Newbie 3 09-26-2008 03:57 PM
Backup system ala rdiff-backup, but without mirror and with dst encryption dr_dex Linux - Software 0 08-04-2008 03:39 AM
backup of system !! hitesh_linux Linux - Software 6 10-08-2002 08:14 PM
System backup berry Linux - General 6 06-21-2002 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration