I am trying to sync two contents of folders with a different name:
rsync -av ~/foo user@remote.com:/var/www/bar
I would like to copy the contents of foo to bar on the remote host, but not to the foo directory. I tried something like foo/* , but rsync does not support this.
rsync always creates
/var/www/bar/foo
rsync
Tombart Nov 30 '13 at 13:46 2013-11-30 13:46
source share