July 2018
Intermediate to advanced
506 pages
16h 2m
English
The gcloud command-line tool currently only supports export and import operations, meaning bulk deletes and disabling writes must still be performed using the Admin Console. We can perform an export of our Employee entities with the following command, where YOUR_BUCKET_ID is any valid Cloud Storage bucket:
gcloud datastore export gs://<YOUR_BUCKET_ID> --kinds=Employee
Once completed, a restore can similarly be completed via the following command:
gcloud datastore import gs://<YOUR_BUCKET_ID>