Hi guys,
We have a backup script that runs daily and performs different backup tasks with NtBackup.
There is a remote site with a DC in it on which we want to backup the system state+several folders to a local disk.
What i need to insert in a script is some sort of "If, then" line, which will delete the old copies of the .bkf files, up to 3 days back.
Thus, if a backup was performed on 20-th of the month, i want the script to delete all previos .bkf files and will leave only the last 3 backups, from 17,18,19 of the month.
Does anyone have any clue what is the syntax i should use to perform such operation?
I'm quite clueless when it comes to scripts.
Any help would be highly appreciated,
Thanx!
We have a backup script that runs daily and performs different backup tasks with NtBackup.
There is a remote site with a DC in it on which we want to backup the system state+several folders to a local disk.
What i need to insert in a script is some sort of "If, then" line, which will delete the old copies of the .bkf files, up to 3 days back.
Thus, if a backup was performed on 20-th of the month, i want the script to delete all previos .bkf files and will leave only the last 3 backups, from 17,18,19 of the month.
Does anyone have any clue what is the syntax i should use to perform such operation?
I'm quite clueless when it comes to scripts.
Any help would be highly appreciated,
Thanx!