The rsync command isn't just for copying files from your local machine to a remote host. You can also transfer files from a remote machine to your local host by placing the remote host and remote source path as the first argument on the command line. Therefore, to transfer src_dir on host to dest_dir on the local host, run this command:
rsync -a host : src_dir dest_dir
Note | If you omit host: , you can use rsync for making duplicates of directories on your local machine. |