Member_2_4371340
asked on
How to Script a Daily Windows Server 2008 Command-Line System State Backup
My Windows Server 2008 Domain Controller has a 20GB C:\, and I have added a second 20GB D:\ drive for Daily System State backups (ONLY!).
Brief Story: After having witnessed a disaster at another company using 3rd party backup tools, I now know that a Veeam/vRanger/BackupExec backup will not backup Active Directory on a Windows 2008 correctly, so I want to script a daily System State backup using the Windows Server 2008 Backup feature. The GUI forces you to backup the whole server, when I only want the System State part.
The following command will run a System State backup to the server's D: drive:
BUT I want a script that does the following:
1. Script kicks off every day at 13:00
2. Checks for existing System State backups, if any exist, then delete
3. After existing backup is deleted, the a new System State backup should begin
4. On completion, a simple "System State backup was completed on" %Date%, %Time%" is appended to a text/log file e.g. D:\SysStateBkp.log
Has anyone completed a similar task before, or have any ideas?
Thanks,
Fin
Brief Story: After having witnessed a disaster at another company using 3rd party backup tools, I now know that a Veeam/vRanger/BackupExec backup will not backup Active Directory on a Windows 2008 correctly, so I want to script a daily System State backup using the Windows Server 2008 Backup feature. The GUI forces you to backup the whole server, when I only want the System State part.
The following command will run a System State backup to the server's D: drive:
WBADMIN START SYSTEMSTATEBACKUP -backuptarget:D:
BUT I want a script that does the following:
1. Script kicks off every day at 13:00
2. Checks for existing System State backups, if any exist, then delete
3. After existing backup is deleted, the a new System State backup should begin
4. On completion, a simple "System State backup was completed on" %Date%, %Time%" is appended to a text/log file e.g. D:\SysStateBkp.log
Has anyone completed a similar task before, or have any ideas?
Thanks,
Fin
You should be able to do this with Task Scheduler.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That weblink was very helpful in assisting us write a custom Powershell script to automate the creation of Windows DC system state backups.