To copy data from a Cloud Filestore fileshare to a Cloud Storage bucket, perform the following:
Go to the VM INSTANCES page
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.
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]
[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.
The following command copies data from the /mnt/filer directory and all subdirectories to the archive bucket.
gsutil rsync -r /mnt/filer gs://archive