Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-04-2005, 09:37 AM   #1
Registered: Sep 2005
Distribution: Fedora Core 4 / CentOS
Posts: 92

Rep: Reputation: 15
Backup solutions?

Hello, I would like to get some advice from you guys on a backup solution that would best fit my needs.

I run a webserver from my home where I host several websites. I am currently running this system on a Dell 8200 P3 1.3Ghz, 256MB mem., and 80 GB HD. FC4 is the O/S. I have an additional 80 GB HD that is in the second drive bay and is unused.

Obviously, I need an economical solution. What would be the best way, IYO, for me to backup, clone/mirror my data?

Should I purchase a tape backup? or, should I setup a mirror to the second HD? etc...? If you suggest mirroring or cloning, what would be the best way to do that? Are there any instructions available to do that; any additional software required?

FYI, I may acquire a server several months from now that has a Raid1/5 config with tape backup, so I don't want to spend too many $ at this point.

Thanks in advance!
Old 10-04-2005, 10:12 AM   #2
Senior Member
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50

hope this helps.

Old 10-04-2005, 11:59 AM   #3
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Here's what I have done. I have installed rsync. This program basically syncs files and will keep exact copies of the original file. What I would do is create a partition of the spare drive (/dev/hdb1) and call it /backup. Create an entry in /etc/fstab;

/dev/hdb1 /mnt/backup ext3 defaults 0 1

Here is a sample script , ./backup, that I made;


rsync --delete-after -avH /home/ /mnt/backup/home > /var/log/backup.log

to explain the above --delete-after will delete files that have been deleted in the original directory and retain links and then write a log of the event. Note that rsync only copies across new or changed files and is therefore quick.

In my case I wanted to backup my /home hourly. In your case the directory likely to change most frequently is /var .

Copy the script to the relevant cron directory (hourly|daily) and to make it executable;

do chmod 700 ./backup

and then;

I put it in /etc/cron.hourly

The following entry was put in /etc/crontab so that a backup is made 10 min past each hour.

# m h dom mon dow user command
10 * * * * root /etc/cron.hourly/backup

Hope this gives you some ideas.

Last edited by TigerOC; 10-04-2005 at 12:01 PM.


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
Backup Solutions for Linux Servers lionking_x Linux - General 8 03-27-2006 12:50 PM
Linux Disc Imaging Backup Solutions For Kernel 2.6+ ethanhallbeyer Linux - Software 1 11-16-2005 08:36 AM
Supermount solutions? mariogomide Linux - Software 5 09-30-2005 11:57 AM
Network solutions sucks @$$ Donboy General 5 07-28-2004 11:08 AM
Network Solutions Help ohssax Linux - Networking 4 05-31-2002 02:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:50 AM.

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