0

We are copying the images and documents from our local Ubuntu server to the Google bucket using the below command.
gsutil -m rsync -a public-read -R -C -f /media/data_disk/ITEM/ gs://dev-cdn-assets-com/ITEM

The command is copying only the new images or Documents to the CDN server, if an image already exists with the same name then it will not copy. We should copy the updated images with the same name. Any suggestion will be appreciated

4
  • 1
    I don't know what the -f option. Read this for the change. It should work today: cloud.google.com/storage/docs/gsutil/commands/… Commented Dec 8, 2023 at 9:52
  • Provide details on an object that does not copy. Specifically, the dates, sizes, and checksums of the two objects. Try adding the -c flag to use checksums instead of dates for change comparison. Commented Dec 8, 2023 at 19:17
  • 1
    Have you seen the above comments?Also Can you try gsutil -m rsync -r -d -n gs://source-bucket gs://destination-bucket as suggested here Commented Dec 10, 2023 at 12:52
  • Hi @user2693302 Can you try the above command and check if it's working for you or not Commented Dec 18, 2023 at 13:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.