diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake index 2d482af6..5d3f753f 100644 --- a/lib/tasks/backup.rake +++ b/lib/tasks/backup.rake @@ -165,6 +165,7 @@ namespace "cms" do rescue Exception => e raise "Error copying files to s3: " + e.to_s end + FileUtils.rm("#{RAILS_ROOT}/backup/#{backup_dir}.tar.gz") else raise 'Invalid Backup server type' end