Submitted by clwheatley on Mon, 02/15/2010 - 13:50
The Delete old backups feature with scheduled backups is not working as expected. According to the documentation I should be able to create a local backup and using strftime be able to delete backups using whole days or fractions thereof.
So far this feature is not working at all, or at least, as I think I understand how it should work.
Chris
Status:
Active
Comments
Submitted by JamieCameron on Mon, 02/15/2010 - 14:24 Comment #1
What path are you using for your backup destination?
Virtualmin expects it to be either a file like /backup/domains-%d-%m-%Y.tar.gz or a directory like /backup/%d-%m-%Y . You can then set a number of days to delete the backup after on the scheduled backup form.
Submitted by clwheatley on Fri, 02/19/2010 - 12:19 Comment #2
The path is exactly like your example, however, as it is a local backup, it's under the domain's home directory/virtualmin-backup/backup/%d-%m-%Y/etc...
Submitted by JamieCameron on Fri, 02/19/2010 - 12:55 Comment #3
Was this backup created by root, or by the domain owner?
Also, if you run
ls -l
in that virtualmin-backup directory, what does it output? I am most interested in the timestamps on the sub-directories, as those are what Virtualmin looks at to determine if the backup is old enough to delete.