rsync: Utility for Incremental File Transfer
Naturally, the installation process of rsync slightly differs according the the operating system.
In Arch Linux, the installation process is as follows:
$ sudo pacman -S rsync
$ brew install rsync
In OpenBSD, the installation process is as follows:
$ doas pkg_add rsync quirks-2.367 signed on 2017-10-03T11:21:28Z Ambiguous: choose package for rsync a 0: <None> 1: rsync-3.1.2p0 2: rsync-3.1.2p0-iconv Your choice: 2 rsync-3.1.2p0-iconv: ok The following new rcscripts were installed: /etc/rc.d/rsyncd See rcctl(8) for details.
rsync usage is quite straightforward and consistent across operating systems. It automatically leverages SSH for remote connections ensuring data integrity and confidentiality along the way. The archive mode (
--archive) equals to
-rlptgoD options. More info can be found in the
OPTIONS SUMMARY section in:
$ man rsync
Syncing files from client to server (verbose with progress details and SSH port 1234):
$ rsync --archive --verbose --progress -e 'ssh -p 1234' /local/PATH/ USERNAME@SERVER:/remote/PATH/ USERNAME@SERVER's password: sending incremental file list ...
Syncing files from client to server (quiet and deleting files no longer local and SSH port 1234):
$ rsync --archive --delete --quiet --rsh='ssh -p 1234' /local/PATH/ USERNAME@SERVER:/remote/PATH/ USERNAME@SERVER's password: sending incremental file list ...