Wednesday, 6 November 2013

Backup and Restore a site collection in SharePoint 2010 using PowerShell

Share it Please
  1.Click "Start" button
    2.Choose the "Microsoft SharePoint 2010 Products"
    3.Click the "SharePoint 2010 Management Shell" [ run as Administrator ]
    4.Create one folder in "D" Drive Named it BackupFile

BackUp Script :-

     Backup-SPSite -Identity http://Abcd-pc:12121/sites/Sample/ -Path "D:\BackupFile\files.bak"

Restore Script:-

Restore-SPSite -Identity http://sithikspSite-pc:2222/sites/spsite -Path "D:\BackupFile\files.bak" -force

     Here.,
            http://Abcd-pc:12121/sites/Sample/   = From Site Collection url
            http://sithikspSite-pc:2222/sites/spsite = To site Site Collection url
            D:\BackupFile\ =BackupFolder url
            files.bak = BackupfileName

No comments:

Post a Comment

Followers

Follow The Author