RsyncCheatSheet

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
  • 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

Rytr0

Making life easier one line of code at a time.


2023-12-09