utomate or delay backup of your farm
Tip: |
---|
To run the Stsadm command-line tool, you must be a member of the Administrators group on the local computer. When using Task Scheduler, ensure that the system date and time on your computer are accurate. To verify or change this information, double-click the time indicator on the taskbar. |
Create a batch file
Click Start, and then click Run.
Type notepad, and then click OK.
In Notepad, type the following text:
@echo off echo =============================================================== echo Back up the farm to C:\backup echo =============================================================== cd %COMMONPROGRAMFILES%\Microsoft Shared\web server extensions\12\BIN @echo off stsadm.exe -o backup -directory "\backup" -backupmethod full echo completed
Note: Change "C:\backup" and "\backup" to the name of your backup shared folder.
In Notepad, on the File menu, click Save As.
In the Save As box, select the folder where you want to keep your batch file.
Using the ".bat" file name extension, type the name of the file in the File name box, for example,backup_batch.bat.
In the Save as type box, click All files.
Click Save.
Schedule a backup
Start the Scheduled Task Wizard, and then click Next.
Click Browse, navigate to the batch file that you just created, and then click Open.
Type a name for your task, for example, backup_batch.
Select how often you want this task performed (for example, weekly), and then click Next.
To automatically perform this backup periodically, select an interval such as Weekly or Monthly. To perform this backup one time, or to delay a single backup, select One time only.
Choose a time and start date for your backup.
Type a name and password for a user, and then click Next. This task will run as if it were started by that user.
Click Finish.
To configure advanced settings for the task, select the Open advanced properties for this task when I click Finish check box in the final page of the wizard. This opens the properties dialog box for the task when you clickFinish. You can then change the program being run on the Task tab, fine-tune the schedule on the Scheduletab, customize settings on the Settings tab, or set user and group permissions on the Security tab.
No comments:
Post a Comment