Home‎ > ‎unix/linux‎ > ‎


Basic copying of one file to different location on a different server via ssh.
rsync --progress -ave ssh {local-dir} {user@server:/remote-dir}

flags to note:    

To see what files do not match, but to not transfer anything.
-n, --dry-run

Compare remote and local directories and recursively list all of the files that exist at the remote directory that are not at the local. (also ignore .svn directories)
rsync -avne ssh --exclude=*.svn {user@server}:/remote-dir {local-dir}| grep -v /$