we are trying to script a fail-safe copy using gsutil.
The problem is that gsutil cp returns 0 even if it failed. Is this expected? Do i have to parse the log?
/usr/local/bin/gsutil -m cp -L gsutilM.log gs://my-bucket/mydir/myfile1.gz /home/myuser
From log file:
Result,Description
error, CommandException: crc32c signature computed for local file (FGa0jw==) doesn't match cloud-supplied digest (N1S6Ew==).
Local file (/home/myuser/myFile1.gz) will be deleted.
Thanks