Re: Can scp be used to update a directory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anne Wilson wrote:
On Saturday 18 March 2006 15:27, Andy Green wrote:

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.

Use rsync for such tasks.  It natively understands how to move files
over ssh.  Eg

rsync -avz mysourcedir user@desthost:/path/on/destination

will just update/transmit files changed in the source dir compared to
the destination.


The reason I don't want to use rsync is, AIUI, rsync would delete files on the remote box when they are deleted on the local one. I don't want that to happen.


Clearly, you have not learned to read the documentation.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux