Can scp be used to update a directory?

Gene Heskett gene.heskett at verizon.net
Sat Mar 18 15:51:58 UTC 2006


On Saturday 18 March 2006 10:21, Anne Wilson wrote:
>The scp man page is not very verbose ;-)  I want to copy a directory,
>recursively, over the lan, but only those files that are new or
> updated. MS-DOS could do this back in ...Ummm.... so I can't believe
> it can't be done in scp, but I can't see how to do it.
>
>Anne

rsync can do that, files get copied by a checksum compare, if they are 
different, than that 64k block is pulled from the src.  If no changes, 
no update.  New files get a full copy.  But you will need scratchpad 
space for the biggest file available to do this.  rsync is pretty 
bulletproof, I've been using it here to make backup dirs of important 
dirs on other machines on my own LAN for several years now.  I have it 
as a cron job & it sends me an email every morning showing what it did.

-- 
Cheers, Gene
People having trouble with vz bouncing email to me should add the word
'online' between the 'verizon', and the dot which bypasses vz's
stupid bounce rules.  I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.




More information about the fedora-list mailing list