How do I scp an entire folder into a folder of the same name without replacing the content in the destination folder? (instead, I would like to add to the contents of the destination folder)
+1
A:
Here:
rsync -azv -e ssh --delete --progress localdir/ user@remotehost:remotedir/
Note the trailing slashes — they're important.
(I have the first bit aliased to rsync-usual
because I use it so often.)
a paid nerd
2009-09-21 00:20:22