Copiar, modificar y mover objetos de almacenamiento en proyectos
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En esta página, se muestra cómo copiar, modificar y mover objetos dentro de los buckets de almacenamiento aislados de Google Distributed Cloud (GDC).
Antes de comenzar
Un espacio de nombres del proyecto administra los recursos del bucket en el servidor de la API de Management. Debes tener un proyecto para trabajar con buckets y objetos.
También debes tener los permisos de bucket adecuados para realizar la siguiente operación. Consulta Cómo otorgar acceso al bucket.
Copiar, modificar y mover objetos
Para copiar un objeto, sigue estos pasos:
gdcloudstoragecpFILE[FILE...]s3://BUCKET[/PREFIX]
Para modificar los metadatos de un objeto, haz lo siguiente:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[[["\u003cp\u003eThis page outlines how to copy, modify, and move objects within Google Distributed Cloud air-gapped storage buckets.\u003c/p\u003e\n"],["\u003cp\u003eA project namespace is required for managing bucket resources, and proper bucket permissions are needed to carry out any operations.\u003c/p\u003e\n"],["\u003cp\u003eObjects can be copied using the \u003ccode\u003egdcloud storage cp\u003c/code\u003e command, specifying the file source and the bucket destination.\u003c/p\u003e\n"],["\u003cp\u003eObject metadata can be modified with the \u003ccode\u003egdcloud storage objects update\u003c/code\u003e command, allowing you to add or change custom metadata.\u003c/p\u003e\n"],["\u003cp\u003eObjects can be moved between buckets using the \u003ccode\u003egdcloud storage mv\u003c/code\u003e command, specifying the source bucket and object, as well as the destination bucket.\u003c/p\u003e\n"]]],[],null,["# Copy, modify, and move storage objects in projects\n\nThis page shows you how to copy, modify, and move objects within Google Distributed Cloud (GDC) air-gapped storage buckets.\n\nBefore you begin\n----------------\n\nA project namespace manages bucket resources in the Management API server. You\nmust have a [project](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/project-management) to work with buckets and objects.\n\nYou must also have the appropriate bucket permissions to perform the following\noperation. See [Grant bucket access](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/grant-obtain-storage-access#grant_bucket_access).\n\nCopy, modify, and move objects\n------------------------------\n\nCopy an object: \n\n gdcloud storage cp \u003cvar translate=\"no\"\u003eFILE\u003c/var\u003e [\u003cvar translate=\"no\"\u003eFILE\u003c/var\u003e...] s3://\u003cvar translate=\"no\"\u003eBUCKET\u003c/var\u003e [/\u003cvar translate=\"no\"\u003ePREFIX\u003c/var\u003e ]\n\nModify an object's metadata: \n\n gdcloud storage objects update s3://\u003cvar translate=\"no\"\u003eBUCKET1\u003c/var\u003e/\u003cvar translate=\"no\"\u003eOBJECT\u003c/var\u003e --custom-metadata=Key1=Value1\n\nMove an object: \n\n gdcloud storage mv s3://\u003cvar translate=\"no\"\u003eBUCKET1\u003c/var\u003e/\u003cvar translate=\"no\"\u003eOBJECT1\u003c/var\u003e s3://\u003cvar translate=\"no\"\u003eBUCKET2\u003c/var\u003e[/\u003cvar translate=\"no\"\u003eOBJECT2\u003c/var\u003e]\n\n| **Note:** The flags `--disable-multipart` and `--multipart-chunk-size-mb=SIZE` are not yet supported at this time."]]