Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 04-15-2006, 01:06 PM   #1
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Rep: Reputation: 31
Automated HD backup

What options are available for setting up automated HD backup?

I have a second, 7GB hard drive, and would like to have the contents of my /home directory (no more than 2 GB) backed up periodically in the following fashion:

Two partitions will be made on the second HD.
The first time a copy of /home is made, it is sent to partition 1.
The second time a copy is made, it is sent to partition 2
The third time, it overwrites partition 1.
The fourth time, it overwrites partition 2.

There are two issues here:

1. The computer is not on 24/7 and it is not on every day, so I can't select specific times or dates to perform this task.

2. I also need some way to access this data. Assume that my first hard drive, containing Linux, is rendered inoperable, how could I access the data on the second hard drive?
Old 04-15-2006, 01:46 PM   #2
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
The second half of your question is easier than the first, all you'll need is a linux rescue disk, once you boot off of that you can mount any drive you need to... Most Distribution disks have a "linux rescue" option at boot, so instead of just hitting enter to go into installation mode, type "linux rescue" and hit enter, it will provide you with some tools to fix, and recover data.

To do the first portion of your question check out unison:

It's a fantastic file synchronizer. I user it personally to synchronize my files to a windows file share which is in our data center and backed up nightly. So, combine unison with a cron job and a bash script that runs every hour or so, but only backs up once a day, and you're set... It's a fairly straight forward program. The other option of course is a simple cron tar job which tars and zips the specified files at a specified time...

Old 05-11-2006, 08:15 PM   #3
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Original Poster
Rep: Reputation: 31
A friend of mine said there is a way to make two partitions, of equal sizes, and on different HDs, setup such that when a file is saved it a copy is saved to both partitions, thus making an instant backup. Does anyone know what this is called/where I can get instructions for this setup?
Old 05-11-2006, 08:39 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Sounds like the Unionfs.


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
automated online backup for Linux? leupi Linux - Software 3 02-20-2006 08:41 AM
mysql automated backup dkc_ace General 12 10-02-2004 08:19 AM
Automated Backup via FTP KePSuX Linux - Newbie 3 02-11-2004 08:25 AM
automated FTP backup josephswagner Linux - Software 2 06-06-2003 04:42 PM
automated network backup hinoiri Linux - Networking 1 12-03-2002 11:40 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:36 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