Anyone who's used Webmin or Virtualmin knows what wonderful tools they are for managing a Unix or Linux Apache web server. One issue that some have run into is that when scheduling backups to an FTP server, and in particular a Microsoft Windows FTP server, if you've configured Webmin/Virtualmin to delete backups older than a certain number of days those backups sometimes don't get deleted. Continue reading for the cause and the solution to this issue...
The reason those backups don't get deleted is because the way a Microsoft Windows FTP server writes the directory listing is different than the way Unix does and Webmin/Virtualmin expects it to be in the Unix style. Add to that the way Webmin/Virtualmin detects old backups is by looking at the backup name (that's why you must include the date in the backup name to enable old backup purging). The major difference is that the MS-DOS style directory listing always displays the creation date and time, but UNIX style dictates that if the file/directory was created in the current year, it will show month/day/time and that if the file/directory was created in a previous year it will display the month/day/year of creation. Microsoft gives a fairly clear explanation of this at support.microsoft.com/kb/256312.
To solve the issue, you will want to change the Directory Listing Style to UNIX style rather than MS-DOS style for your FTP server. To do that:


When testing, be aware that if you run your backup schedule task manually it doesn't delete old backups. To test, wait for the backup job to run from the schedule or adjust the schedule to have it run sooner. A good way to verify is by opening the backup log after the job has run and see if the "Deleting backups older than [x] days" message followed by a list of deleted backups appeared.Tags: webmin virtualmin microsoft internet information services ftp
Comments (0)
The Grim Admin
http://www.grimadmin.com/article.php/webmin-virtualmin-ftp-delete-backups