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