We are archiving our projects in a bucket (using gsutil rsync
). I've been tasked to verify that after each upload, a comparison must be performed of the local project folder and the folder uploaded to the bucket. This in order to ensure the local data in fact was fully uploaded to the bucket.
How could I perform such a test reliably?
The
gsutil rsync
command will itself perform a checksum validation for every uploaded file. From Checksum Validation And Failure Handling:So you could:
gsutil rsync
cmds with the-C
option and directly use their failure tracking results (eventually with some automatic re-tries in place)