First Copy the below Script from echo off to echo off in Notepad and change the URL's and save Ext as .bak
Back up schedule: ext- .bak :
----------------------------------------
@echo off
@echo——————————————————–
@echo This script will backup your site: [SITE COLLECTION Backup]
@echo——————————————————–
cd \Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN
@echo Backup process starts
stsadm -o backup -url http://abcsite-filename C:\spbackup\SharePoint2010backup.bak -overwrite
@echo backup completed
@echo off
Now, follow the steps below to create the tasks for Task Scheduler to automate the execution of backup files - let's assume we will full-backup weekly and diff-backup daily.
Back up schedule: ext- .bak :
----------------------------------------
@echo off
@echo——————————————————–
@echo This script will backup your site: [SITE COLLECTION Backup]
@echo——————————————————–
cd \Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN
@echo Backup process starts
stsadm -o backup -url http://abcsite-filename C:\spbackup\SharePoint2010backup.bak -overwrite
@echo backup completed
@echo off
Now, follow the steps below to create the tasks for Task Scheduler to automate the execution of backup files - let's assume we will full-backup weekly and diff-backup daily.
1 - Open Tools > Tasks Scheduler
2 - In the center pane, right-click, and click Create Basic Task
3 - Assign the task a meaningful name - such as SharePoint-BackupFullWeekly
4 - Choose "Weekly " on the When do you want the task to start screen
5 - Specify the parameter for the weekly task schedule
6 - Choose "Start a program" from the what action do you want the task to perform
7 - On the start a program screen type in the command as the screenshot below. The Task scheduler is intelligent enough to recognize that you want to run PowerShell and that you supplied arguments.
Repeat the steps above to create a task for the diff backup.
No comments:
Post a Comment