Automated backup to Google Cloud Storage - Google App Engine Datastore with cron.yaml -


so, trying automate our gae datastore backups using cron.yaml. furthermore, use google cloud storage destination our backups. have created bucket , set acl. manual backups work datastore admin console. can cron work. but, push same codebase 3 different environments: dev, staging, production. so, separate backups in different buckets based on application name.

i staging datastore go myapp_staging_bk bucket, dev in myapp_dev_bk bucket, , live myapp_live_bk.

cron.yaml:

    cron: - description: daily backup   url: /_ah/datastore_admin/backup.create?name=backuptocloud&kind=logtitle&kind=eventlog&filesystem=gs&gs_bucket_name=whitsend   schedule: every 12 hours   target: ah-builtin-python-bundle 

all of super easy if figure out way pull application name in above url. this:

url: /_ah/datastore_admin/backup.create?name=backuptocloud&kind=logtitle&kind=eventlog&filesystem=gs&{myapp}_bk=whitsend   schedule: every 12 hours 

where {myapp} name of app that's in app.yaml.

https://developers.google.com/appengine/articles/scheduled_backups doesn't type of setup.

i know pull off our ci server, avoid this.

does have suggestions?

modify cron handler call own code, either call code start backup own code, or urlfetch own code, after filling in bucket name parameter based on app id.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -