Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions django-verdant/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def clear_cache():
def fetch_live_data():
filename = "verdant_rca_%s.sql" % uuid.uuid4()
local_path = "/tmp/%s" % filename
remote_path = "/tmp/%s" % filename
remote_path = "/var/www/rca/tmp/%s" % filename

run('pg_dump -cf %s verdant_rca' % remote_path)
run('gzip %s' % remote_path)
Expand All @@ -81,7 +81,7 @@ def fetch_live_media():
def fetch_staging_data():
filename = "verdant_rca_%s.sql" % uuid.uuid4()
local_path = "/tmp/%s" % filename
remote_path = "/tmp/%s" % filename
remote_path = "/var/www/rca/tmp/%s" % filename

run('pg_dump -cf %s rca' % remote_path)
run('gzip %s' % remote_path)
Expand All @@ -99,7 +99,7 @@ def fetch_staging_data():
def staging_fetch_live_data():
filename = "verdant_rca_%s.sql" % uuid.uuid4()
local_path = "/var/www/rca/tmp/%s" % filename
remote_path = "/tmp/%s" % filename
remote_path = "/var/www/rca/tmp/%s" % filename

run('pg_dump -Fc -x -cf %s verdant_rca' % remote_path)
run('gzip %s' % remote_path)
Expand Down