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, 2019 in GCP by anonymous
• 19,610 points
2,142 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

Hope it helps!!

If you need to know more about Google Cloud, We recommend joining GCP Certification course today.

Thanks!

answered Nov 22, 2019 by Sirajul
• 59,230 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 24, 2019 in GCP by Sirajul
• 59,230 points
2,172 views
0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

GCP Error: 403: Access Denied

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

answered Oct 9, 2019 in GCP by Sirajul
• 59,230 points
3,628 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, 2019 in GCP by Sirajul
• 59,230 points
4,565 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP