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 |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-15-2006, 01:06 PM
|
#1
|
Member
Registered: Aug 2005
Distribution: Debian 7
Posts: 526
Rep:
|
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?
|
|
|
04-15-2006, 01:46 PM
|
#2
|
Member
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353
Rep:
|
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.
|
|
|
05-11-2006, 08:15 PM
|
#3
|
Member
Registered: Aug 2005
Distribution: Debian 7
Posts: 526
Original Poster
Rep:
|
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?
|
|
|
05-11-2006, 08:39 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
|
|
|
All times are GMT -5. The time now is 03:17 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
|
|