How to upload or download files from remote server using RSync

Every now and then you have to upload or download data from remote server.

How to upload or download files from remote server using RSync

Every now and then you have to upload or download data from remote server.

Download data from remote server

Create directory on local machine and run:

rsync -chavzP --stats example-project-vps:~/projects/storage ~/Temp/Projects/ExampleProject/example-directory

Upload data to remote server

Create directory on remote server and run:

rsync -chavzP --stats ~/Temp/Projects/ExampleProject/example-directory example-project-ups:~/projects/storage