Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NtBackup script? Please assist

Status
Not open for further replies.

Olli1009

MIS
Jul 30, 2003
21
0
0
IL
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top