Skip to main content

tirds is a command-line tool to backup and restore Google Cloud Datastore Entities via local

Project description

tirds is a command-line tool to backup and restore Google Cloud Datastore Entities via local.

tirds stands for Totte IRete DaSu(DataStore).

You can back up Google Cloud Datastore entities, and restore them. Backups are saved to Google Cloud Storage. For details, see Backing Up and Restoring.

But if you move a backup to another bucket, you will not be able to restore it. Because the backup_info file that is metadata of the backup includes the bucket name.

tirds downloads a backup contains backup_info and blob files from the specified bucket, and uploads it to another bucket after replacing the bucket name in the backup_info.


To install, use pip.

$ pip install tirds


$ tirds -h

Download backup

Download a backup from Google Cloud Storage.

$ tirds download --out OUTDIR --key-file KEYFILE handle

You can get handle from datastore admin.

KEYFILE is a path to the private key file for Service Account.

Upload backup

Upload a backup to Google Cloud Storage after replacing the bucket name.

$ tirds upload --key-file KEYFILE srcdir bucket

srcdir is a path to the backup.

bucket is a bucket name that is the upload destination and to be replaced with original bucket name.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tirds, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size tirds-0.0.2-py2-none-any.whl (9.5 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size tirds-0.0.2.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page