I'm having troubles with the setup I've created on a Virtualmin scheduled backup. It doesn't seem to be removing the backup directories of old backups I inform it to remove after X number of days. The email report states -
"Deleting backups older than 1 days .. .. no backups to delete were found"
Yet there's directories spanning many days there. If I set the scheduled backup to "Single archive file" with strftime on it removes those compressed files. But sadly it doesn't remove directories for some strange reason. I wish to use the newer "One file per server" backup format. The backups are being stored on the server itself for testing purposes until I can get it working.
The current setup I have is the following -
Local file or directory - /root/backup/%d-%m-%Y This names a newly created directory with the current date, several compressed files inside for each domain named "site1.tar.gz", "site2.tar.gz" for example.
Use strftime = yes
Transfer files after they've backed up = yes
Backup format - One file per server
Create destination directory = yes
Delete old backups after 1 day.
Any assistance in getting the system to remove old backup directories will be greatly appreciated.