We're about to officially kick off our Symantec BackupExec migration accross our enterprise. One unfortunate side-effect is that when I run the scripts to import the previous B2D media into our "media sets" - it resets the modify date on all of them and it messes with our retention policies.
So, here's what I'm thinking to get around this particular problem.
I'd like to just run a batch file that reads the "modify" date/time of the *.bkf files, determine the last date it was run, and then just completely nuke any files that are older than the last successful backup. I *could* just go to town and delete ALL backup files on disk, as we also do backups to tape - but I'd like to consider this an exercise to see if I can't pull it off *with your guys' help of course*.
Here's what I'm working with so far, but I realize it's probably WAY off base. If somebody could point me in the right direction, it would be really appreciated. (This batch was copied from a site a while back, and I apologize in I can't remember for the life of me which one).
for /f "tokens=*" %%a in ('dir /b /od 2^>NUL') do set strModDate=%%a
if "%strModDate%"=="" goto :eof