Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ref: http://stackoverflow.com/questions/9090817/copying-files-using-rsync-from-remote-server-to-local-machine
- From your local machine:
- rsync -chavzP --stats user@remote.host:/path/to/copy /path/to/local/storage
- From your local machine with a non standard ssh port:
- rsync -avz -e "ssh -p $portNumber" user@remote.host:/path/to/copy /local/path
- Or from the remote host, assuming you really want to work this way and your local machine is listening on SSH:
- rsync -chavzP --stats /path/to/copy user@host.remoted.from:/path/to/local/storage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement