Rsync cheat sheet for copy & paste
- Copy from remote host to your computer:
- Format:
rsync -a username@remote_host:/home/username/dir1 place_to_sync_on_local_machine
- Command example:
rsync -a [email protected]:/var/www ~/syncedFiles
- Format:
- Copy from your computer to a remote host:
- Format:
rsync -a ~/dir1_place_on_host_machine username@remote_host:destination_directory
- Example:
rsync -a ~/syncedFiles [email protected]:/var/www
- Format: