I\'m trying to synchronize two contents of folders with different name:
rsync -av ~/foo user@remote.com:/var/www/bar
I\'d like to copy the cont
It's simple,
rsync /var/www/ /home/var - copies the contents of /var/www/ but not the www folder itself.
rsync /var/www/ /home/var
rsync /var/www /home/var - copies the folder www along with all its contents.
rsync /var/www /home/var
The "/" makes the difference.