OCS 2007 Backup Script
One of the more useful items from the OCS 2007 Resource Kit book was the extras disc that contained a few Excel worksheets on setting up backups for different types of servers. Using those worksheets I created a script that automates some of the backup process for a standard edition server. I tried to make the script fairly configurable as far as file locations and naming conventions, but feel free to change it to suit your needs. What happens is this:
- A SQL backup job script is created with options for a full backup that overwrites the previous one.
- A scheduled task is created that backs up the global and pool-level settings for OCS.
- A scheduled task is created that backs up the machine-level settings for OCS.
- A scheduled task is created that runs the SQL backup job script.
All of the files from these tasks are dumped into a single folder of your choosing on a nightly basis. At that point you can do what you like with the contents. You could schedule your backup program to simply pick up this folder on a regular schedule or you could create another scheduled task that copies the folder to a file share on another machine. Just make sure you’re saving that folder collection somewhere else and you should be fine. 继续阅读