Backup Through Power Shell Problem with MS SharePoint

Asked By 40 points N/A Posted on -
qa-featured

I have create SharePoint 2010 site collection backup through Power shell, by using the command

'Backup-SPSite "http://sitename:85" -path "C:backup.bak" –Force

and i am restoring this backup on same SharePoint 2010 server/same machine on different port by using the command

Restore–SPSite "http://sitename:81" -path "C:backup.bak" -Force

it through this error

Restore-SPSite : Your backup is from a different version of Microsoft SharePoin t Foundation and cannot be restored to a server running the current version. Th e backup file should be restored to a server with version '4.0.145.0' or later. At line:1 char:15 + Restore-SPSite <<<< "http://sitename:81" -path "C:backup.bak" -Force + CategoryInfo : InvalidData: (Microsoft.Share…dletRestoreSite: SPCmdletRestoreSite) [Restore-SPSite], SPException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRestoreS ite

I am amazed. i create the backup and restore on same SharePoint server, then why it is asking different version of Microsoft SharePoint Foundation.

Any kind of help will be appreciated.

SHARE
Answered By 20 points N/A #142779

Backup Through Power Shell Problem with MS SharePoint

qa-featured

Hi Cecelia,

Sharepoint 2010 is running on IIS 7. Web Server and backing them is very important administrative task. There are changes on the upgrade, and when you will try to restore, you need additional steps to restore your backup. Take these steps to restore the backups:

1. Verification – the user is entitled and has permission to do the task and has met the minimum requirements (see this link : https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/Add-SPShellAdmin?view=sharepoint-ps)

2. Start > All Programs > Microsoft Sharepoint 2010 products > Sharepoint 2010 Management shell.

3. Windows of a command prompt (that is PS C:), type this command and the Enter.

Restore-SpSite – Identity<Site collection URL>Path<Backup file> [-Database Server<Database server name>] [-DatabaseName<Content Database name> ] [-HostHeader<host header> ] [-Force] [-Gradual Delete]

[-Verbose]

Another way of doing this is to navigate to Central Administration > backup and restore> perform Backup and follow the wizard.

Related Questions