Restore-SPFarm

joys mothobi
joys mothobi used Ask the Experts™
on
I have configured a new web application server and sql server for development. I want to restore the SP production backup to the new server. Am using Powershell to run the Restore-SPfarm command but am getting an error message : Restore-SPFarm : The restore job failed. For more information, see the error
log that is located in the backup directory.
At line:1 char:1
+ Restore-SPFarm -Directory \\SPserver\SharePoint_Backup\Daily_Backups\
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Share...dletRestoreFarm:
   SPCmdletRestoreFarm) [Restore-SPFarm], SPException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRestoreF
   arm


Please help...
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
SQL / SharePoint Engineer
Commented:
Maybe you could locate the log and share it with us?  I can't tell from the error message; it could be anything, up to and including an incorrect path to the backup files.
Walter CurtisSharePoint AED
Distinguished Expert 2018
Commented:
Just putting the pieces together from your information, maybe the backup you have is just a site collection backup. (Seems that you have a folder named Daily_Backup and it seems that a site collection would be daily, not a full farm backup.)

Maybe try Restore-SPSite in the new farm. Here is some information about that cmdlet:

https://technet.microsoft.com/en-us/library/ff607788.aspx

Hope that helps...
Walter CurtisSharePoint AED
Distinguished Expert 2018

Commented:
Information provided is accurate and correct.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial