from GaeApp import GaeApp import os from StringIO import StringIO option_list = [ make_option("-o", "--output", help="The output path of backup.", default = None, action="store", type="string", dest="output"), ] app = GaeApp(name="gae-backup.py") app.add_options(option_list) (options,args) = app.parse() app.load() app.connect(debug = options.debug,url=options.url,email = options.email) print "Connected to %s at %s" % (app.app_id,app.host) from django.conf import settings from google.appengine.ext import db from utils import BackupFile from django.utils import simplejson from google.appengine.api.users import User if not hasattr(settings , 'GAE_BACKUP_MODELS'): print 'GAE_BACKUP_MODELS is not defined' sys.exit(0)