Set up environment variables for gcloud tool to import export data using Cloud Filestore

0 votes
How to set the environment variables for gcloud tool to import/export data using Cloud Filestore?
Nov 4, 2019 in GCP by anonymous
• 19,610 points
5,829 views

1 answer to this question.

0 votes

Before you export or import data, you must set up environment variables for the gcloud tool and authenticate using your user account.

  1. Set an environment variable for your GCP project ID.

    PROJECT_ID="YOUR_PROJECT_ID"
  2. Use this variable to set your project as the active configuration for the gcloud tool.

    gcloud config set project ${PROJECT_ID}
  3. Authenticate using the gcloud tool.

    gcloud auth login
  4. Set an environment variable for your Cloud Storage bucket ID.

    BUCKET="YOUR_BUCKET_NAME[/NAMESPACE_PATH]"

    where YOUR_BUCKET_NAME is the name of the Cloud Storage bucket and NAMESPACE_PATH is an optional Cloud Storage namespace path (this is not a Datastore mode namespace). 

Hope it helps!!

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

Thanks!

answered Nov 4, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

+1 vote
1 answer

Set up log delivery for a cloud storage bucket.

The following steps describe how to set ...READ MORE

answered Nov 22, 2019 in GCP by Sirajul
• 59,230 points
1,031 views
0 votes
1 answer

How to create a Cloud dataproc cluster withn custom machne type using gcloud?

Run the gcloud dataproc clusters create command with the ...READ MORE

answered Nov 26, 2019 in GCP by Sirajul
• 59,230 points
1,991 views
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,984 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,915 views
0 votes
1 answer

How to set up and use Pub/Sub Notifications for Cloud Storage?

The following steps add a notification configuration to your ...READ MORE

answered Nov 22, 2019 in GCP by Sirajul
• 59,230 points
2,274 views
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