FAQ Database Discussion Community


How to make gsutil rsync skip symlinks and return error code 0?

google-compute-engine,gsutil
I have noticed that when gsutil rsync is working, it will return a non-zero error code out if it encounters a symlink which it can not resolve: $ gsutil -m rsync -r -C /my_folder/ gs://my_bucket/ CommandException: Error opening file "file:////my_folder/my_symlink": . CommandException: 1 files/objects could not be copied/removed. Is there...

Can I change the Google Cloud Storage bucket class after the bucket has been created?

google-cloud-storage,gsutil
I can't find anything in the documentation on if it is possible to change the current class of a bucket. Is this possible? If this is not possible, what would be the most cost efficient way to move contents (10TB, hundreds of thousands of files) from a DRA bucket to...

gsutil credentials error when trying to download app reviews

google-cloud-storage,gsutil
I followed Google's instructions to install Python and gsutil on Windows. When I attempt to download reviews with this command line: c:\gsutil>c:\python27\python gsutil cp -r gs://pubsite_prod_rev_########/reviews/reviews_package.name_2015* c:/temp/xxx I get this error message: You are attempting to access protected data with no configured credentials. Please visit https://cloud.google.com/console#/project and sign up for...

gsutil getting stuck and asking for authentication

google-cloud-storage,gsutil
I'm trying to copy a file from my Windows machine (already set up, and I've been using it regularly for gsutil) to copy a file, but it keeps telling me I'm trying to access protected data with no configured credentials. Yesterday, though, it was running fine. E:\studioProjects3\demo\rsalib\build\libs>gsutil cp rsalib-1.0.jar gs://dark-b...

Moving multiple files with gsutil

google-cloud-storage,move,gsutil
Let's say I've got the following files in a Google Cloud Storage bucket: file_A1.csv file_B2.csv file_C3.csv Now I want to move a subset of these files, lets say file_A1.csv and file_B2.csv. Currently I do this like that: gsutil mv gs://bucket/file_A1.csv gs://bucket/file_A11.csv gsutil mv gs://bucket/file_B2.csv gs://bucket/file_B22.csv This approach requires two call...