Skip to content

Instantly share code, notes, and snippets.

@frankchen0130
Last active August 14, 2017 03:07
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 frankchen0130/01fb10921a6ddb4c56b6859eda4d4efd to your computer and use it in GitHub Desktop.
Save frankchen0130/01fb10921a6ddb4c56b6859eda4d4efd to your computer and use it in GitHub Desktop.
copy file from remote server exclude come files or directories.
rsync -rav -e ssh --exclude 'word2vec-1/*' --exclude '.git/*' --exclude '*.pyc' --exclude '*nohup.out*' root@datalab2:~/project/service_test/ ./service/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment