stellar/command.py
def snapshot(name):
    """Takes a snapshot of the database"""
    app = get_app()
    upgrade_from_old_version(app)
    name = name or app.default_snapshot_name

    if app.get_snapshot(name):
        click.echo("Snapshot with name %s already exists" % name)
        sys.exit(1)
    else:
        def before_copy(table_name):
            click.echo("Snapshotting database %s" % table_name)
        app.create_snapshot(name, before_copy=before_copy)
def snapshot(name):
    """Takes a snapshot of the database"""
    app = get_app()
    upgrade_from_old_version(app)
    name = name or app.default_snapshot_name

    if app.get_snapshot(name):
        click.echo("Snapshot with name %s already exists" % name)
        sys.exit(1)
    else:
        def before_copy(table_name):
            click.echo("Snapshotting database %s" % table_name)
        app.create_snapshot(name, before_copy=before_copy)
def snapshot ( name ) : app = get_app ( ) upgrade_from_old_version ( app ) name = name or app . default_snapshot_name if app . get_snapshot ( name ) : click . echo ( "Snapshot with name %s already exists" % name ) sys . exit ( 1 ) else : def before_copy ( table_name ) : click . echo ( "Snapshotting database %s" % table_name ) app . create_snapshot ( name , before_copy = before_copy )
Takes a snapshot of the database
Takes a snapshot of the database