How to copy data from a Cloud Filestore fileshare to a Cloud Storage bucket?

0 votes
How to copy data from a Cloud Filestore fileshare to a Cloud Storage bucket?
Nov 22 in GCP by anonymous
• 6,650 points
27 views

1 answer to this question.

0 votes

To copy data from a Cloud Filestore fileshare to a Cloud Storage bucket, perform the following:

  1. Go to the  VM INSTANCES page

  2. Choose a client VM instance that has the source Cloud Filestore fileshare mounted, and then click SSH to open a terminal on that VM instance.

  3. Copy data from the mounted Cloud Filestore fileshare by running the following command, replacing [VALUES_IN_BRACKETS] with the appropriate values. Use the -r option with the gsutil rsync command to recurse into subdirectories of the location you specify.

     gsutil rsync [MOUNT_DIRECTORY] gs://[BUCKET]

    Where:

    • [MOUNT_DIRECTORY] is the directory on the client on which the Cloud Filestore fileshare is mounted.

    • [BUCKET] is the Cloud Storage bucket, directory, or subdirectory to copy data to.

Example

The following command copies data from the /mnt/filer directory and all subdirectories to the archive bucket.

gsutil rsync -r /mnt/filer gs://archive
answered Nov 22 by Sirajul
• 40,980 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

How to create a cloud storage bucket in GCP?

Buckets are the basic containers that hold your ...READ MORE

answered Oct 23 in GCP by Sirajul
• 40,980 points
28 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9 in GCP by Sirajul
• 40,980 points
30 views
0 votes
1 answer

Permissions issue with Google Cloud Storage Bucket.

You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE

answered Oct 10 in GCP by Sirajul
• 40,980 points
87 views