Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

jum/dsdump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple appengine datastore dump and restore

To use this dump and restore service, import the go part in your program as follows:

import _ github.com/jum/dsdump

This will initialize an HTTP handler for /admin/dsdump in your app engine app. You should use something like the following in your app.yaml to protect any URL under /admin:

handlers:
- url: /admin/.*
  script: _go_app
  login: admin

The two shell scripts named dsdump and dsrestore in the scripts folder can be used to dump and restore data from the server. Use at follows for a local development server:

dsdump http://localhost:8080 >data.gob

or add admin email and password for a real appengine instance:

dsdump https://appid.appspot.com admin@domain.com password >data.gob

And accordingly to restore to a local developsment server:

dsrestore http://localhost:8080 data.gob

And to restore to an appengine instance:

dsrestore https://appid.appspot.com admin@domain.com password data.gob

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published