mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
FIX: ensure we always remove old backups
This commit is contained in:
parent
45ab42dea9
commit
a726f5efea
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue