Skip to content

Instantly share code, notes, and snippets.

@machiq
Last active September 14, 2022 10:52
Show Gist options
  • Save machiq/3518578c77c8aa0505bc569a60be04f5 to your computer and use it in GitHub Desktop.
Save machiq/3518578c77c8aa0505bc569a60be04f5 to your computer and use it in GitHub Desktop.
gsutil-rsync-exclude-hidden-files-jpgs-mp4
#Google GCloud Command line Tools
#2018-09-05 - Matthew Crnich - Original script excluded .mov(s). Updated to include .mov(s) but exclude .mp4(s)
gsutil -m rsync -r -x '\..*|.*/\.[^/]*$|.*/\..*/.*$|_.*|.*\.jpg$|.*\.mp4$' /source gs://destination-bucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment