LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Reply
  Search this Thread
Old 04-15-2006, 01:06 PM   #1
General
Member
 
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.
etc.

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
mikeyt_333
Member
 
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:

http://www.cis.upenn.edu/~bcpierce/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...

HTH,
Mike.
 
Old 05-11-2006, 08:15 PM   #3
General
Member
 
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
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Sounds like the Unionfs.
http://www.linuxjournal.com/article/7714
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:17 PM.

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