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")
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')
def get_dump(): """Get a dump of the database from the server.""" _all() postgres.get_postgres_dump(env.repo_alias, ignore_permissions=True)
def get_live_db(): """Get the live db - will overwrite your local copy.""" get_postgres_dump('changelog')