rsync sync remote dir code example Example: rsync sync remote dir rsync -a ~/dir1 username@remote_host:destination_directory