LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-17-2007, 08:56 AM   #1
Christof999
Member
 
Registered: Jun 2006
Posts: 40

Rep: Reputation: 15
Hardrive mirroring program ?


Hi there,

I am looking for a linux program that will allow me to back up my hard drive to an exact other hard drive. I have a 320 GB SATA in my Desktop computer as a backup drive and a 320 SATA usb external that I use as my main hard drive. I want to be able to make changes on the external such as creating new directories, modifying existing files, downloading new files, deleting old files, renaming existing directories and changing their contents etc. I then want to be able to have all those changes appear exactly on my back up drive in the desktop machine, without having to delete its entire contents and transfer over a new 320 GBs of data. Is there a program that can help me out ?

I know RAID does this, but Id rather not use it because sometimes I take the external on trips. I want to be able to come home from my trip and mirror the hard drive I used while away. This means the drives will not always be together.

Thanks
Christopher
 
Old 05-17-2007, 09:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
dd if=/dev/sda of=/dev/sdb

should do the trick, assuming that's the right names for the two drives.

in reality i'd say that raid WOULD be a better solution, there's no problem whatsoever in running a raid1 mirror on one drive for as long as you want, and just plug it back in again to update the pair once you add it to the machine you originally took it out of.
 
Old 05-18-2007, 08:56 AM   #3
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Rep: Reputation: 34
The way I understood the OP's question, he wants to keep any changes he made on the portable drive when he is away. Does Raid 1 resync by honoring the most recently dated changes when it merges the contents?
 
Old 05-18-2007, 09:31 AM   #4
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
I think that unison should do what you want. unlike rsync it can handle changes to both drives and merge them in a smart manner, giving you the opportunity to review the changes. When dealing with certain files (text based) that have been changed on both drives it can merge the differences. I use it to keep my usb stick and a copy of the files on it in sync and it works quite well.

I don't think dd is an option here.. it transfers bits and bytes from the drive (and therefore the filesystem structure). It would also require transfering a full 320GB each time.

Last edited by dmartins; 05-18-2007 at 09:33 AM.
 
  


Reply



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
Packet Mirroring bkankur Linux - Networking 2 06-27-2006 06:44 AM
Best disc mirroring backup program? mrmunson Linux - Software 1 12-04-2004 09:33 AM
Web mirroring program UltimaGuy Linux - Newbie 3 09-30-2003 08:42 AM
Mirroring bkeating Linux - Software 1 06-22-2003 06:37 AM
mirroring servers rkirkley Linux - Networking 0 10-08-2001 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:31 AM.

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