Thursday, April 14, 2011

Rsync Upload Download from Remote Machine

I recently discovered how simple it was to use rsync to upload or download files from remote machine form command line:

In order to upload your current folder contents to a remote server, you need to give the following command in Linux:

$rsync -avz *.* username@remote_host:/path/to/destination/
In order to download a folder to current folder, you need to give the following command:

$rsync -avz -e ssh username@remote_host:/path/to/source/ /path/to/destination

z->compress/zip while transfer

Writing it down for my future reference.

No comments:

Post a Comment