Pages

Thursday 12 September 2013

Backup and Restore SharePoint 2013 Farm using Power Shell

Hi All,


For taking backup for you SharePoint farm you can flow below URLs from MS.





Example for taking backup:
Backup-SPFarm -Directory C:\Backup -BackupMethod full -BackupThreads 10 -Force
make sure backup folder should exist before executing the command.

Example for Restoring backup:
Restore-SPFarm -Directory C:\Backup -BackupId 12345678-90ab-cdef-1234-567890abcdef -RestoreMethod overwrite -RestoreThreads 10 -Force
BackupID

In above command replace "12345678-90ab-cdef-1234-567890abcdef" with your backup id.
The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890abcdef.
It Specifies the GUID of the backup package that is to be restored. Each backup package has a unique GUID associated with it. The GUID can be seen by using the Get-SPBackupHistory cmdlet to view the backup history. If this parameter is not specified, the most recent backup package in the path that is specified with the Directory parameter is used.
or check for XML created in backup folder.

Refer below links :
Backup-SPFarm

http://technet.microsoft.com/en-us/library/ff607881.aspx
 


No comments:

Post a Comment