Skip to content

Instantly share code, notes, and snippets.

@katopz
Last active April 17, 2016 05:23
Show Gist options
  • Save katopz/1538259d77b4e5cb8870eeed6ae9e6b5 to your computer and use it in GitHub Desktop.
Save katopz/1538259d77b4e5cb8870eeed6ae9e6b5 to your computer and use it in GitHub Desktop.
Handy nix command

To see DNS record.

$ dig rabbot.io +nostats +nocomments +nocmd

To 100% sync between local folder to remote folder.

  • -P same as --partial --progress
  • -r, --recursive recurse into directories
  • -a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)
  • -z, --compress compress file data during the transfer

ref : https://download.samba.org/pub/rsync/rsync.html

$ rsync -Praz --delete-after . [email protected]:/var/www/rabbot.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment