Skip to content

Automates replication from AppEngine to CloudSQL, CloudStorage or S3

Notifications You must be signed in to change notification settings

mdornseif/gaetk_replication

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 

Repository files navigation

No Maintenance Intended

See datastore-to-bigquery and datastore-backup for an alternative.

gaetk_replication

Automates replication from AppEngine to CloudSQL, CloudStorage or S3

Usage: CloudSQL

  • create a CloudSQL instance in the Google API Console, allow your Application to access it. See Getting Started for more Details. We assume it is named mytestinstance
  • create a Database inside your instance: CREATE DATABASE test;

Now you can add gaetk_replication to your project:

mkdir -p lib
git submodule add git@github.com:hudora/gaetk_replication.git lib/gaetk_replication
echo "gaetk_replication_SQL_INSTANCE_NAME = 'something:mytestinstance'" >> appengine_config.py
echo "gaetk_replication_SQL_DATABASE_NAME = 'test'" >> appengine_config.py

Adjust names to match your setup.

Now add the replicatior to your app.yaml:

handlers:
- url: /gaetk_replication/.*
  script: replication.cloudsql.application
  login: admin

That's it. Deploy and call /gaetk_replication/cloudsql/cron.

Bitdeli Badge

About

Automates replication from AppEngine to CloudSQL, CloudStorage or S3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%