Re: [gentoo-user] File replication

2006-08-28 Thread Stephen Liu
Hi Rumen, Tks for your advice. Not very sure that's what you want, but check: sys-cluster/drbd. Description: mirror/replicate block-devices across a network-connection (requires a network connection though). sync+cron can do the job, incremental-copying files from /home/user on to

Re: [gentoo-user] File replication

2006-08-28 Thread Stephen Liu
Hi Roger, Tks for your advice. If you want to synchronize (i.e. update to the latest version, no matter where it is), try unison. Whether you suggested; Unison File Synchronizer http://www.cis.upenn.edu/~bcpierce/unison/ I'm trying to find out whether real time synchronization is possible,

Re: [gentoo-user] File replication

2006-08-28 Thread Neil Bothwick
On Sun, 27 Aug 2006 23:26:57 +0800 (CST), Stephen Liu wrote: Where can I find similar syncing and cron script examples? TIA In the rsync man page. rsync -ax ~/ /mnt/extdisk/myhome/ should do it. -- Neil Bothwick RAM = Rarely Adequate Memory signature.asc Description: PGP signature

Re: [gentoo-user] File replication

2006-08-28 Thread Stephen Liu
Hi Neil, In the rsync man page. rsync -ax ~/ /mnt/extdisk/myhome/ should do it. On which file of cron shall I add following line to rsync /mnt/extdisk/myhome/ quarterly? 0,15,30,45 * * * * rsync -ax ~/ /mnt/extdisk/myhome/ Whether -u update will do incremental copying for those files

Re: [gentoo-user] File replication

2006-08-28 Thread Valerio daelli
Try to add --delete. Valerio Daelli On 8/28/06, Stephen Liu [EMAIL PROTECTED] wrote: Hi Neil, In the rsync man page. rsync -ax ~/ /mnt/extdisk/myhome/ should do it. On which file of cron shall I add following line to rsync /mnt/extdisk/myhome/ quarterly? 0,15,30,45 * * * * rsync -ax ~/

Re: [gentoo-user] File replication

2006-08-28 Thread Roger Luethi
On Mon, 28 Aug 2006 15:26:09 +0800, Stephen Liu wrote: If you want to synchronize (i.e. update to the latest version, no matter where it is), try unison. Whether you suggested; Unison File Synchronizer http://www.cis.upenn.edu/~bcpierce/unison/ Yes. One of the more underestimated tools,

Re: [gentoo-user] File replication

2006-08-28 Thread Stephen Liu
Hi Valerio, Try to add --delete. Could you please provide more detail? TIA B.R. SL On 8/28/06, Stephen Liu [EMAIL PROTECTED] wrote: Hi Neil, In the rsync man page. rsync -ax ~/ /mnt/extdisk/myhome/ should do it. On which file of cron shall I add following line to

Re: [gentoo-user] File replication

2006-08-28 Thread Neil Bothwick
On Mon, 28 Aug 2006 19:09:11 +0800 (CST), Stephen Liu wrote: Whether -u update will do incremental copying for those files having been updated That's not what -u does, rsync does incremental copying by default, read the man page. -- Neil Bothwick Bald spot? No -- solar panel for brain

Re: [gentoo-user] File replication

2006-08-27 Thread Stephen Liu
Hi Bryan, Tks for your advice. Why not just use rsync? setup cron to just sync the two directories (/home/blah with /mnt/disk/blah) over and over? Such an arrangement will only sync /home/user on /mnt/usb_enclosure/user at fixed time, periodically, not instaneously whenever there is a

Re: [gentoo-user] File replication

2006-08-27 Thread Neil Bothwick
On Sun, 27 Aug 2006 16:55:17 +0800 (CST), Stephen Liu wrote: setup cron to just sync the two directories (/home/blah with /mnt/disk/blah) over and over? Such an arrangement will only sync /home/user on /mnt/usb_enclosure/user at fixed time, periodically, not instaneously whenever

Re: [gentoo-user] File replication

2006-08-27 Thread Stephen Liu
Hi Neil, Do you really need such frequent syncing? Bear in mind the limited write lifespan of flash memory, if you have a file in your home directory that is frequently updated, you could wear out the memory in a short time. what's wrong with using a script that syncs your hard disk with

Re: [gentoo-user] File replication

2006-08-27 Thread Etaoin Shrdlu
On Sunday 27 August 2006 12:20, Stephen Liu wrote: Mounted inside the USB enclosure is a HD. I'll use old HD for this purpose. Frequently I work on at least 2 PCs running different Linux OS. With such a device, USB enclosure, it'll ease my work on consolidating the working data on 2 PCs.

Re: [gentoo-user] File replication

2006-08-27 Thread Stephen Liu
Hi Etaoin, Tks for your advice. If you have networking, why not set up a network share of some kind (nfs, smb, or even ssh via shfs) and mount it (under the same path) from each computer you work on? This avoid having to replicate data and, with decent network speed, is nearly as fast

Re: [gentoo-user] File replication

2006-08-27 Thread Etaoin Shrdlu
On Sunday 27 August 2006 13:39, Stephen Liu wrote: The PCs, a workstation only, are not connected to network. Neither I'll run 2/3 PCs simultaneously. Ok, I didn't have this info. Previously I did it in this way making use of an addtional network card connecting 2 PCs. Later I ceased

Re: [gentoo-user] File replication

2006-08-27 Thread Stephen Liu
Hi Neil, but I still don't see why you need real-time mirroring. A script to sync the drive before unmounting would give you an accurate mirror. A cron script to check if the drive is mounted and sync it every hour would cut down on the amount of data to sync when unmounting. If running

Re: [gentoo-user] File replication

2006-08-27 Thread Neil Bothwick
On Sun, 27 Aug 2006 22:14:25 +0800 (CST), Stephen Liu wrote: but I still don't see why you need real-time mirroring. A script to sync the drive before unmounting would give you an accurate mirror. A cron script to check if the drive is mounted and sync it every hour would cut down on

Re: [gentoo-user] File replication

2006-08-27 Thread Stephen Liu
Hi Neil, Shutdown involves unmounting the drive, and I recommended syncing before unmounting. The USB enclosure will be automatically mounted/umounted. Whether on the script includes syncing once before poweroff/reboot starts. Where can I find similar syncing and cron script examples? TIA

Re: [gentoo-user] File replication

2006-08-27 Thread Rumen Yotov
On Sun, 27 Aug 2006 23:26:57 +0800 (CST) Stephen Liu [EMAIL PROTECTED] wrote: Hi Neil, Shutdown involves unmounting the drive, and I recommended syncing before unmounting. The USB enclosure will be automatically mounted/umounted. Whether on the script includes syncing once before

Re: [gentoo-user] File replication

2006-08-26 Thread Neil Bothwick
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

Re: [gentoo-user] File replication

2006-08-26 Thread Robert Welz
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

Re: [gentoo-user] File replication

2006-08-26 Thread Stephen Liu
Hi Robert, Tks for your advice. What about a perl script that just copies all files in /home/user to the device once it is plugged in? I'm not a programmer nor very acknowledgeable on perl. Could you please shed me some guide how to start. What I need is on saving a new file or edited

[gentoo-user] File replication

2006-08-25 Thread Stephen Liu
Hi folks, I'm prepared using an USB enclosure for data stroage. 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

Re: [gentoo-user] File replication

2006-08-25 Thread Michael Crute
On 8/25/06, Stephen Liu [EMAIL PROTECTED] wrote: Hi folks, I'm prepared using an USB enclosure for data stroage. 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