LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 05-30-2004, 07:43 PM   #1
andrewjschmidt
LQ Newbie
 
Registered: May 2004
Posts: 9

Rep: Reputation: 0
Question How to backup entire system without shutting down


I have a personal Linux server (http, mysql, mail, etc) that runs 24x7. I would like to get some input on the easiest way to back the entire system up while it is running (I don't want to stop mail, web, or DB stuff when it backs up). I don't care about full vs. incremental, but I assume incremental is the most sensible since the majority of the system doesn't change a whole lot from day-to-day. I have tons of hard drive space, some of it on other network pcs, so space isn't an issue.

1) What would be the easiest way to accomplish the backup (and restore if the disk failed)?

2) If I restore the system from a rescue cd after backing up while the system was running, would it restore correctly OR does it require a shutdown?

Thanks a bunch,

Andy
 
Old 05-30-2004, 10:15 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Why would anyone ever need to backup by shutting down their system? Tell us what media you want to backup to, another portion of your drive or a free drive, etc and we might be more of help as there are many ways to backup a system, using command line tools or other applications solely made to backup data, etc. Some even just tar the bit and pieces that are important to them by creating their own scripts, etc.
 
Old 05-30-2004, 10:57 PM   #3
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Quote:
Originally posted by trickykid
Why would anyone ever need to backup by shutting down their system?
So you can restore the system to a consistent state. Using the above mentioned apps, say you had a cron job that periodically checked for data delivered via email. The script might fire a database transaction involving multiple updates which, if they all succeed, are committed or, if one fails, are all rolled back. At the end of a successful commit the script might also update a web page containing summary information. In such a scenario "hot" backups probably wouldn't be a good idea. You might restore it to a state after the email was read but before any database transactions, in which case the incoming data would be lost. You might restore it to a state between updates, leaving the database in an inconsistent state. You might restore it after the commit but before the website update. So, shutting down services in the proper order -- mail, then database and finally web server -- before backing up would be the only way to ensure your ability to restore the system to a consistent state.

Last edited by Crito; 05-30-2004 at 11:01 PM.
 
Old 05-30-2004, 11:00 PM   #4
andrewjschmidt
LQ Newbie
 
Registered: May 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Post More info...

Sorry, I guess I could have provided more...I am wanting to simply backup to another hard drive. I was under the impression that backing up files that are being actively used or written to would not work (maybe I'm wrong, rebooting all the time could be one of those leftover bad-habits from the Windows days).

Anywho, I considered just tarring the directories I need, but it seems like I always forget something. Given the ample space I have, and a relatively small install (~2.5G), I don't mind just copying the whole filesystem and not worrying about which ones I do or don't want to backup (better safe than sorry). However, dumping the entire system everyday would be overkill, so that pretty much excludes a simple tar operation. Some kind of daily cron job would probably fit fine for me. I've never worried about backing up, so I don't know which tools are available (much less do I know which ones are preferred).

Thanks for helping!
 
Old 05-30-2004, 11:12 PM   #5
PGDubbin
Member
 
Registered: May 2004
Location: NJ - USA
Distribution: Gentoo on 2.6.6
Posts: 39

Rep: Reputation: 15
For what it's worth about two years ago:

I had a cron job setup to do the following:

2:00AM - activate my CD-RW and wipe the RW disc clean (kept the disc in at all times)
2:01AM - erase old timestamp file
2:02AM - touch a new file called timestamp and echo my uptime and current date/time into the file
2:03AM - Create an iso image of my home directory
3:00AM - burn the iso image
4:00AM - erase the old iso image

It worked flawless every night for about 6 months, I effed something up on my system and said, "Hmm sit here and fix it for hours, or just reinstall and copy my backup CD...brilliance..."

Formatted - Pulled the CD out, dropped it, scratched it and kicked myself in the ass.
 
Old 05-30-2004, 11:23 PM   #6
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
I'm quite fond of Mondo Rescue for "hot" backups.
 
Old 06-01-2004, 07:01 PM   #7
andrewjschmidt
LQ Newbie
 
Registered: May 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Looks good thanks

Mondo looks like it will accomplish exactly what I'm looking for. Thanks for the help!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Reconfigure the entire system...... manojpillai Fedora 5 12-18-2004 07:50 PM
What is the proper way to backup an ENTIRE hdd? FiveFlat Linux - Software 3 12-09-2004 05:08 AM
Backup entire system with tar sln Linux - General 2 04-30-2004 04:32 AM
How can I backup my entire system? TheDirtyPenguin Linux - Software 5 03-16-2004 09:48 AM
Can u backup entire LFS in such way ?? sapilas Linux From Scratch 1 05-02-2002 02:26 PM


All times are GMT -5. The time now is 05:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration