Copy, modify, and move storage objects

This page shows you how to copy, modify, and move objects within Google Distributed Cloud (GDC) air-gapped storage buckets.

Before you begin

A project namespace manages bucket resources in the Management API server. You must have a project to work with buckets and objects.

You must also have the appropriate bucket permissions to perform the following operation. See Grant bucket access.

Copy, modify, and move objects

Copy an object:

gdcloud storage cp FILE  [FILE...] s3://FULLY_QUALIFIED_BUCKET_NAME [/PREFIX ]

Modify an object's metadata:

gdcloud storage objects update s3://FULLY_QUALIFIED_BUCKET_NAME1/OBJECT --custom-metadata=Key1=Value1

Move an object:

When moving an object, a copy of the object moves to another location, either in the same bucket or to another path in the same bucket. After, the original object is deleted.

gdcloud storage mv s3://FULLY_QUALIFIED_BUCKET_NAME1/OBJECT1 s3://FULLY_QUALIFIED_BUCKET_NAME2[/OBJECT2]