Neil Bothwick wrote:
On Sat, 26 Aug 2006 08:49:23 +0800 (CST), Stephen Liu wrote:

I'm searching a tool/method whenever I save a file on /home/user a
duplicate copy will be saved automatically on
/mnt/point/of/usb_enclosure/home/user simultaneously, similar to
replication/mirroring.   Thus the USB enclosure can be used as a mobile
storage device and can be plugged in on any Linux PC.

You could set up a RAID-1 array on the two devices. Auto-detect RAID
information is saved at the end of the device, so it can still be used as
a standalone drive/partition when connected to something else. One
advantage of RAID is that if you run with the device disconnected and
then connect it, the RAID will be updated in the background.

Yes, but syncing takes a lot time and should be observeved not to interrupt while in progress. You will need a script to notify you that syncing is done othewise you have a corrupt device.

What about a perl script that just copies all files in /home/user to the device once it is plugged in?

Robert
--
gentoo-user@gentoo.org mailing list

Reply via email to