Search This Blog

Wednesday 29 August 2012

Daily Site Backup with Windows Task Scheduler


To take SharePoint site backup daily at a specific time, you have to create a task for this in Task Scheduler. In this post I am going to explain the steps to achieve this

Scenario:
Take a SharePoint site backup daily with mail notification

Steps:
      1.       Open a notepad and write the backup script and notification details, then save the file with the extension .ps1 (PowerShell Script file)
      2.       Go to Task Scheduler
















 3.       Create a Task


















4.       Configure setting when the task should run


















5.       Configure what action should perform this task
a.       In our case we have to open the PowerShell.exe then
b.      Execute the script saved in a .ps1 file (So we have to locate the file path)
            
     
     
     














Done, now we have created a task to run the SharePoint site backup daily, to verify check the status of our task and Trigger time. 















You can download the backup script here

Thanks

No comments:

Post a Comment