Skip to content

Instantly share code, notes, and snippets.

@riveryc
Created August 22, 2017 12:01
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 riveryc/6836ec0e02896f00ecf016f27cac3d53 to your computer and use it in GitHub Desktop.
Save riveryc/6836ec0e02896f00ecf016f27cac3d53 to your computer and use it in GitHub Desktop.
Copy from local to remote server (Linux), exclude hidden files & folders (in zsh)
rsync -av --exclude=".[\!.]*" . root@artifactory01:/opt/chef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment