Shell - Copying file from remote server to local machine

Sometime you want to copy something (files) from your remote server to your local machine. The thing is, the remote server is the only one that has ssh, so you can only push file to it (remote one) through scp command.

I found the rsync command that solves the problem: (type this in your local machine's terminal)

rsync -chavzP --stats user@remote.host:/path/to/copy /path/to/local/storage

Comments