Skip to content

Instantly share code, notes, and snippets.

@thiagosf
Created May 20, 2017 17:13
Show Gist options
  • Select an option

  • Save thiagosf/bc94233da01295b5aed0250ba3af9c22 to your computer and use it in GitHub Desktop.

Select an option

Save thiagosf/bc94233da01295b5aed0250ba3af9c22 to your computer and use it in GitHub Desktop.
Transferência de arquivos com rsync e nohup para executar em background
# -v, --verbose increase verbosity
# -a, --archive archive mode; same as -rlptgoD (no -H)
# --no-OPTION turn off an implied OPTION (e.g. --no-D)
# -r, --recursive recurse into directories
# -p, --perms preserve permissions
# --executability preserve the file's executability
# --chmod=CHMOD affect file and/or directory permissions
# -z, --compress compress file data during the transfer
# --compress-level=NUM explicitly set compression level
# -C, --cvs-exclude auto-ignore files the same way CVS does
nohup rsync -Cravzp site [email protected]:/var/site &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment