Merge pull request #1998 from betagouv/frederic/download_db_dump_compressed

Enable compression for DB dump download
This commit is contained in:
LeSim 2018-05-30 15:48:47 +02:00 committed by GitHub
commit 3930e85458
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ namespace :dev do
task :import_db do
filename = "tps_prod_#{1.day.ago.strftime("%d-%m-%Y")}.sql"
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"