Re: scp shall only copy newer files
Timo,
> Right now I am doing a backup from my laptop to my workstation using
> OpenSSH's secure copy. The problem is that i would like to copy only
> newer files, cos it also transports my Ogg/Vorbis files (quite some
> gigabytes) over net -quite not wanted. Is there a way like in normal cp
> to tell scp that it should compare file's timestamps/sizes before
> sending any files?
Use rsync with the -e ssh option. You'll get rsync's logic (only
transfer data that's different) and the security / convenience of
ssh / scp. You don't need to run the server on either end, but I think
you probably need the rsync package on both ends.
Chris
--
Christopher S. Swingley phone: 907-474-2689
Computer / Network Manager email: cswingle@iarc.uaf.edu
IARC -- Frontier Program GPG and PGP keys at my web page:
University of Alaska Fairbanks www.frontier.iarc.uaf.edu/~cswingle
Reply to: