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.

Installation

To install, use pip.

$ pip install tirds

Usage

$ 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.

https://raw.githubusercontent.com/drillbits/tirds/master/doc/datastore_admin.png https://raw.githubusercontent.com/drillbits/tirds/master/doc/datastore_admin_backup_info.png

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.

Source Distribution

tirds-0.0.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tirds-0.0.2-py2-none-any.whl (9.5 kB view details)

Uploaded Python 2

File details

Details for the file tirds-0.0.2.tar.gz.

File metadata

  • Download URL: tirds-0.0.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tirds-0.0.2.tar.gz
Algorithm Hash digest
SHA256 69d3863b186cdb9a57cd43e3805e0ab59ab0c4a609b40b7aee5644fdbe4e88e7
MD5 43ff1e545e001803d5998eb5239daa50
BLAKE2b-256 47b8bdf5e2d99661d4fc8117340a22ca2ca0da25ae0f0455b6d4a294d7a75ae5

See more details on using hashes here.

File details

Details for the file tirds-0.0.2-py2-none-any.whl.

File metadata

File hashes

Hashes for tirds-0.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 3ef539d97161071568a439c4b6edfee58366d05dd0e9350f7adc22f502066114
MD5 d20e9dfe5e74b2f2fc71b9c1265c4a32
BLAKE2b-256 c4283d182489c23eea410e77f9b7b5f1249080403c02c7abdbba494572d27369

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page