Monday, 26 August 2013

GAE force overwrite of download_data dump file

GAE force overwrite of download_data dump file

I am running the following command to take a dump of my GAE app's datastore:
python ~/google_appengine/appcfg.py download_data
--application=s~myappsname
--url=http://myappsname.appspot.com/_ah/remote_api --filename=gaedump
--db_filename=skip
This works fine unless the gaedump file already exists, in which case it
fails with error:
google.appengine.tools.bulkloader.FileExistsError: gaedump: output file
exists
I would like to automate this command but cannot find a comprehensive
reference for the download_data function.
Preceding the command with rm gaedump; is a workable solution, but would
prefer to use just the one command if possible.

No comments:

Post a Comment