I'm trying to sync a local directory with a Google Cloud Storage bucket, but exclude certain file types. I can do one exclusion just fine using:
gsutil rsync -d -n -x ".\*\\.txt$" "localdir" gs://bucketnamehere
This command runs successfully, and does indeed excludes txt files successfully.
However, if I run the exact example that is given on the rsync FAQ:(https://cloud.google.com/storage/docs/gsutil/commands/rsync)
gsutil rsync -d -n -x ".\*\\.txt$|.*\\.jpg$" "localdir" gs://bucketnamehere
it returns the error:
The filename, directory name, or volume label syntax is incorrect.
This is with the Google Cloud SDK installed on a Windows Server 2012 machine. If anyone has any ideas on how to do multiple exclusions that would be great!
Thank you.