Let the next backup job overwrite the sqldump

This commit is contained in:
Raphael Sofaer 2011-08-18 08:34:05 -07:00
parent fca2be5c5d
commit f3932132d3

View file

@ -36,7 +36,6 @@ namespace :backup do
if file.write File.open("/tmp/backup/" + tar_name)
puts("event=backup status=success type=mysql")
`rm /tmp/backup/#{tar_name}`
`rm -rf /tmp/backup/mysql/`
files = mysql_container.objects
files.sort!.pop(NUMBER_OF_DAYS * 24)