mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: ensure we always remove old backups
This commit is contained in:
parent
45ab42dea9
commit
a726f5efea
@ -47,8 +47,6 @@ module BackupRestore
|
||||
create_archive
|
||||
|
||||
after_create_hook
|
||||
|
||||
remove_old
|
||||
rescue SystemExit
|
||||
log "Backup process was cancelled!"
|
||||
rescue Exception => ex
|
||||
@ -59,6 +57,7 @@ module BackupRestore
|
||||
"#{@archive_basename}.tar.gz"
|
||||
ensure
|
||||
notify_user rescue nil
|
||||
remove_old rescue nil
|
||||
clean_up
|
||||
@success ? log("[SUCCESS]") : log("[FAILED]")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user