[ale] backing up

Danny Cox danscox at mindspring.com
Tue Jul 23 07:59:36 EDT 2002


Cy,

On Mon, 2002-07-22 at 21:56, Cy Kurtz wrote:
> I want my machine to update the files that exist in
> /safedrive/username/pics, copy any files that exist only in
> /home/username/pics to /safedrive/username/pics, and take no action on any
> files in /safedrive/username/pics that are the same as their counterparts
> in /home/username/pics are the same.

	Try rsync.  Given the correct args (here we go again ;-), it will
create a mirror of the from directory in the two.  It's also
surprisingly quick.  See http://rsync.samba.org/ for it's home page, but
it's probably in your distribution already.

	rsync -av /from /to

will copy all files in /from into /to.  The '-a' is archive (recursive,
update file mod times), the 'v' is verbose (certainly optional.

	If you're using rsync over a network connection, the 'z' option can
speed things up a bit too, as long as the files aren't compressed
themselves (.gz, .jpeg, .gif).

	Briefly, rsync only copies differences between files, and identical
files are skipped.

-- 
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list