Below is the Power Shell script to Take a backup of Service application in SP 2013
$currentDateTime = (Get-Date -Format yyyy-MM-dd-HH-mm)
$SrvAppFolder = Test-Path "\\$env:computername\SPServiceApplicationBackup\"
#add sharepoint snapin
Add-PSSnapin microsoft.sharepoint.powershell
#Backup Service Applications
#Excel Services Application
Backup-SPFarm -Directory $backupSAFolder -BackupMethod Full -Item "Farm\Shared Services\Shared Services Applications\Excel Services Application"
#Secure Store Service
Backup-SPFarm -Directory $backupSAFolder -BackupMethod Full -Item "Farm\Shared Services\Shared Services Applications\Secure Store Service"
Backup-SPFarm -Directory $backupSAFolder -BackupMethod Full -Item "Farm\Shared Services\Shared Services Proxies\Secure Store Service"
No comments:
Post a Comment