14. The rsync Secure Copy Utility

The rsync (remote synchronization) utility copies an ordinary file or directory hierarchy locally or from the local system to or from another system on a network. By default, this utility uses OpenSSH to transfer files and the same authentication mechanism as OpenSSH; therefore it provides the same security as OpenSSH. The rsync utility prompts for a password when it needs one. Alternatively, you can use the rsyncd daemon as a transfer agent.


An rsync command line has the following syntax:

rsync [options] [[user@]from-host:]source-file [[user@]to-host:][destination-file ...

Get A Practical Guide to Linux Commands, Editors, and Shell Programming, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.