How do I use Rsync via Command Line Usage?

When transferring data from from the host OS to an external drive, we strongly recommend using Rsync. Rsync does have a GUI but some users find that limiting. 

Luckily, the command line parameters are as easy as it gets.  

To give a quick summary on the capabilities:

-v : verbose

-r : recursive. Doesn't preserve timestamps and permissions

-a : archive mode. Recursive and preserves symbolic links, file permissions, user & group ownerships and timestamps.

-z : compress file data

-h : human-readable --ignore-errors : continue operation regardless of errors 

Using Rsync is simple, choose the parameters you would like to use from the above list and then specify the folders that you would like to move. The last path is the destination for the those folders. Also, we really recommend--ignore-errors. It really smooths out the whole copy process.

 

In the below example, we copy Folder 1 and 2 to our destination. We get rsync sends us a verbose readout that is human readable and preserves timestamps, permissions, ownerships, and symlinks. 

Example:

rsync -avh {{Path to Folder 1}} {{Path to Folder 2}} {{Destination}}

Also, to be clear, the folder path has to be formatted correctly:

An Example of a proper folder path is:

~/Desktop

or

/tmp/backups

 

To learn more about the various commands Rsync has available, check out this great tutorial. 

http://www.tecmint.com/rsync-local-remote-file-synchronization-commands/ 

For for complete documentation check out the man page on Rsync

http://linux.die.net/man/1/rsync

Have more questions? Request Help.

Have more questions? Submit a request
Powered by Zendesk