FIX: delete PostgreSQL dump before gzipping archive (#4323)

This commit is contained in:
Arpit Jalan 2016-07-12 17:53:26 +05:30 committed by Régis Hanol
parent f369d492b3
commit 166d753bd3

View File

@ -257,6 +257,8 @@ module BackupRestore
end
end
remove_tmp_directory
log "Gzipping archive, this may take a while..."
`gzip -5 #{tar_filename}`
end
@ -284,7 +286,6 @@ module BackupRestore
def clean_up
log "Cleaning stuff up..."
remove_tar_leftovers
remove_tmp_directory
unpause_sidekiq
disable_readonly_mode if Discourse.readonly_mode?
mark_backup_as_not_running