lib/backup/adapter/assets.rb in backup-1.3.2 vs lib/backup/adapter/assets.rb in backup-1.3.3
- old
+ new
@@ -16,20 +16,23 @@
# Compresses the .tar file using Gzip
# - Encrypt
# Encrypts the backup file
# - Transfer
# Initializes the transfer to either S3 or using SSH
- # - Records
+ # - Record
# Records the Backup Data to the Backup SQLite3 database
# - Remove Temp Files
# Removes temporary files after the process is complete
def run
- archive
- compress
- encrypt
- transfer
- record
- remove_temp_files
+ begin
+ archive
+ compress
+ encrypt
+ transfer
+ record
+ ensure
+ remove_temp_files
+ end
end
private
# Archives the assets into a .tar file and stores it
\ No newline at end of file