Here’s some steps for creating a scheduled backup of SharePoint using Powershell:
1. Create this PowerShell script:
Add-PSSnapin Microsoft.SharePoint.PowerShell
Backup-SPFarm -directory \\FQDN\SharePointBackup -backupmethod Full
using notepad and save the file in a folder and name it Backup.ps1
2. Start Windows Task Scheduler, and create a new task using this options:
Name: Every Day SP Backup
Trigger: Daily > Every day 00:00x
Action: Start Program PowerShell.exe with argument c:\PathToBackup.ps1
Permission: Run the Task as an account that has farm permissions and add the password + check “un whether user is logged on or not” and “run with highest privileges.”
3. Monitor the backup operation:
1. Central Administration > Backup and Restore Job Status page > Refresh the page and examine the information that is presented on the page.
2. Also take a look at the Backup and Restore History, and here you’ll find if your task completed or not
No comments:
Post a Comment