@dallinger.command()<EOL>@click.option("<STR_LIT>", default=None, callback=verify_id, help="<STR_LIT>")<EOL>@click.option("<STR_LIT>", default=None, help="<STR_LIT>")<EOL>def awaken(app, databaseurl):
id = app<EOL>config = get_config()<EOL>config.load()<EOL>bucket = data.user_s3_bucket()<EOL>key = bucket.lookup("<STR_LIT>".format(id))<EOL>url = key.generate_url(expires_in=<NUM_LIT>)<EOL>heroku_app = HerokuApp(id, output=None, team=None)<EOL>heroku_app.addon("<STR_LIT>".format(config.get("<STR_LIT>")))<EOL>time.sleep(<NUM_LIT>)<EOL>heroku_app.pg_wait()<EOL>time.sleep(<NUM_LIT:10>)<EOL>heroku_app.addon("<STR_LIT>".format(config.get("<STR_LIT>")))<EOL>heroku_app.restore(url)<EOL>log("<STR_LIT>")<EOL>size = config.get("<STR_LIT>")<EOL>for process in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>qty = config.get("<STR_LIT>" + process)<EOL>heroku_app.scale_up_dyno(process, qty, size)<EOL><DEDENT>if config.get("<STR_LIT>"):<EOL><INDENT>heroku_app.scale_up_dyno("<STR_LIT>", <NUM_LIT:1>, size)<EOL><DEDENT>
Restore the database from a given url.