Automating Microsoft Backup

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Automating Microsoft Backup

Post by Marcus Tettmar » Thu Mar 12, 1998 12:00 am

Contributed By: Richard Heaton [email protected]
Submitted On: 12/03/98

This script runs Microsoft backup using a previously saved backup.set
and after it has run, it changes the name of the backup file to read
today's date for quick identification.

Please note that the file should be created as the backup set name with
_00.Qic on the end (ie. Backup_00.Qic ) and this is what the last line
of the script renames. So if you use a different name for the backup set
(ie. example.set) you should change the path in line 8 to d:example.set
and also change the last line to rename the file d:example_00.Qic

The script deletes any previous backups made today before running the
backup (line 7) but you may pefer to keep in which case you should
remove this line.

Day>Date
Month>Month
Year>Year
ConCat>Date, %Month%
ConCat>Date, %Year%
ConCat>Date, Backup
DeleteFile>d:\\%date%.QIC
RunProgram>c:\program files\accessories\ackup.exe d:\ackup.set
WaitWindowOpen>Microsoft Backup
Wait>1
Press Enter
WaitWindowOpen>Untitled - Microsoft Backup
WaitWindowClosed>Untitled - Microsoft Backup
WaitWindowOpen>Untitled - Microsoft Backup
WaitWindowClosed>Untitled - Microsoft Backup
Wait>2
MoveFile>d:\ackup_00.Qic,d:\\%Date%.Qic

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts