Skip to content

Instantly share code, notes, and snippets.

@vietvudanh
Created March 25, 2020 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vietvudanh/1188dfde7534c1ba681ca6c7c81679ec to your computer and use it in GitHub Desktop.
Save vietvudanh/1188dfde7534c1ba681ca6c7c81679ec to your computer and use it in GitHub Desktop.
rsync
#!/usr/bin/env bash
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
rsync -arv \
--exclude-from=$CWD/exclude.txt \
$CWD \
vpn:~/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment