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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-30-2004, 06:43 PM
|
#1
|
|
LQ Newbie
Registered: May 2004
Posts: 9
Rep:
|
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
|
|
|
|
05-30-2004, 09:15 PM
|
#2
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
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.
|
|
|
|
05-30-2004, 09:57 PM
|
#3
|
|
Senior Member
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168
Rep:
|
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 10:01 PM.
|
|
|
|
05-30-2004, 10:00 PM
|
#4
|
|
LQ Newbie
Registered: May 2004
Posts: 9
Original Poster
Rep:
|
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!
|
|
|
|
05-30-2004, 10:12 PM
|
#5
|
|
Member
Registered: May 2004
Location: NJ - USA
Distribution: Gentoo on 2.6.6
Posts: 39
Rep:
|
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. 
|
|
|
|
05-30-2004, 10:23 PM
|
#6
|
|
Senior Member
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168
Rep:
|
I'm quite fond of Mondo Rescue for "hot" backups.
|
|
|
|
06-01-2004, 06:01 PM
|
#7
|
|
LQ Newbie
Registered: May 2004
Posts: 9
Original Poster
Rep:
|
Looks good thanks
Mondo looks like it will accomplish exactly what I'm looking for. Thanks for the help!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:11 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|