For example below command connect to example.com server though ssh on port 2222 and sync all files from /files/ directory on example.com to /local/files localhost directory
$ rsync -ravz-e "ssh -p 2222" user@example.com:/files/ /local/files/
$ rsync -ravz-e "ssh -p 2222" user@example.com:/files/ /local/files/
Comments
Post a Comment