Exemplo n.º 1
0
def get_gis_dump():
    """An example of how you can fetch a database dump from a server.

    Notes:

        @task decorator denotes this as a fabric task
        @hosts decorator indicates which hosts this command should run on.
        Its a shortcut to using the -H option on the command line. e.g.

            fab -H 192.168.1.22 get_foo_dump

    """
    get_postgres_dump("gis")
Exemplo n.º 2
0
def get_gis_dump():
    """An example of how you can fetch a database dump from a server.

    Notes:

        @task decorator denotes this as a fabric task
        @hosts decorator indicates which hosts this command should run on.
        Its a shortcut to using the -H option on the command line. e.g.

            fab -H 192.168.1.22 get_foo_dump

    """
    get_postgres_dump('gis')
Exemplo n.º 3
0
def get_dump():
    """Get a dump of the database from the server."""
    _all()
    postgres.get_postgres_dump(env.repo_alias, ignore_permissions=True)
Exemplo n.º 4
0
def get_live_db():
    """Get the live db - will overwrite your local copy."""
    get_postgres_dump('changelog')
Exemplo n.º 5
0
def get_live_db():
    """Get the live db - will overwrite your local copy."""
    get_postgres_dump('changelog')