locked
Restore .Bak file on different server SharePoint 2010 RRS feed

  • Question

  • I have site collection backup in form of .bak file. I am trying to restore that on another server with different domain, after specifying the path of the folder (Format \\<name of server>\<shared folder>), I am getting the error Chose a different directory path.

    Thursday, November 7, 2013 8:37 PM

All replies

  • Hi Rashim,

    Please follow the steps below.

    Backup/Restore from one server to another or from one Site Collection to another (with PowerShell command)

    In some cases, you have developed a SharePoint site collection in your dev or stg machine and now you want to move the site with data from dev/stg to production. In such cases the process shown in the section “Backup/Restore in the same server and same site  collection” will not work. The recommended way is to use PowerShell command to take backup and restore the backup.

    Backup a Site collection with PowerShell command

    In SharePoint 2010, PowerShell command Backup-SPSite is used for taking backup. you can get details of the command from the msdn link. The following command will backup the site collection ‘http://myserver’.

    Backup-SPSite -Identity http://myserver -Path "c:\backup\file.bak"

    Restore a Site Collection with PowerShell command

    To restore site collection you’ll use the following command. Use –Force if you want to overwrite the existing site collection

    Restore-SPSite -Identity http://myserver -Path "c:\backup\file.bak"

    However, once I had restored the backup I could not access the site. The problem was that I needed to deploy the custom SharePoint solution. So in case of site collection migration (with backup/restore) from one server to another or from one site collection to another, the steps should be:

    1. Restore the backup.

    2. If your source site collection (from where you taken backup) uses custom SharePoint solution, then deploy the solution in the destination site collection (where you are restoring the backup). If you try to access the site without deploying solution then you may get the site non-functional.

    3. Now you can try to access the site.

    The important point here is that if you take backup from one server to another and restore it, the custom solution related to backup doesn’t go with backup. So after restoring backup you need to manually deploy the solution on the destination server. Then it’ll hopefully work.

    And find the reference link.

    http://ranaictiu-technicalblog.blogspot.se/2010/06/sharepoint-2010-backuprestore-with.html

    Regards,

    Jayant


    jayant prabhakar

    Thursday, November 7, 2013 9:05 PM
  • one important thing to be noted plus the above.

    Your both farm should be on same build level otherwise its not gonna work. 

    if different version then sql back up is the option.


    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

    Thursday, November 7, 2013 9:19 PM