In my project, every one taking the Adhoc backup on different folder which was created an issue to cleanup backup files to find and cleanup. We proposed a standard format as F:\AdhocBackup\Until\YYYYMMDD
Eg: F:\AdhocBackup\Until\200250823
The two scripts below can to achieve the above requirements
- Create subfolder while taking the backup
- Cleanup the folder files -> It should create in Job and schedule every day
Note: Add the backup script as per your standard while taking the backup