Enable compression for DB dump download
This commit is contained in:
parent
8fb0241d99
commit
3fd0681a10
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ namespace :dev do
|
||||||
task :import_db do
|
task :import_db do
|
||||||
filename = "tps_prod_#{1.day.ago.strftime("%d-%m-%Y")}.sql"
|
filename = "tps_prod_#{1.day.ago.strftime("%d-%m-%Y")}.sql"
|
||||||
local_file = "/tmp/#{filename}"
|
local_file = "/tmp/#{filename}"
|
||||||
run_and_stop_if_error "scp deploy@sgmap_backup:/var/backup/production1/db/#{filename} #{local_file}"
|
run_and_stop_if_error "scp -C deploy@sgmap_backup:/var/backup/production1/db/#{filename} #{local_file}"
|
||||||
|
|
||||||
dev_env_param = "RAILS_ENV=development"
|
dev_env_param = "RAILS_ENV=development"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue