locked
Restore a backup RRS feed

  • Question

  • I copied a backup file  xxx.bak on a server and try to to restore it with following command in power shell.

    Restore -SPSite -Identity http://vishnu -Path c:\xxx.bak -Force

    getting error as follows

    The term 'Restore' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spe
    lling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:8
    + Restore <<<<  -SPSite -Identity http://vishnu -Path c:\xxx.bak -Force
        + CategoryInfo          : ObjectNotFound: (Restore:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

     

    Tuesday, February 22, 2011 7:55 AM

Answers

  • try

     

    stsadm -o restore -filename "e:\abc\xyz.bak" -url  "http://serverName:port/sites/sitecollectionRoot"  -overwrite

    • Proposed as answer by hemantrhtk Tuesday, February 22, 2011 10:04 AM
    • Marked as answer by Aaron Han - MSFT Friday, February 25, 2011 1:36 AM
    Tuesday, February 22, 2011 8:44 AM
  • thnx..

    Restore -SPSite  should be Restore-SPSite .No space in betwn

    • Proposed as answer by hemantrhtk Tuesday, February 22, 2011 10:04 AM
    • Marked as answer by Aaron Han - MSFT Friday, February 25, 2011 1:36 AM
    Tuesday, February 22, 2011 9:56 AM

All replies

  • try

     

    stsadm -o restore -filename "e:\abc\xyz.bak" -url  "http://serverName:port/sites/sitecollectionRoot"  -overwrite

    • Proposed as answer by hemantrhtk Tuesday, February 22, 2011 10:04 AM
    • Marked as answer by Aaron Han - MSFT Friday, February 25, 2011 1:36 AM
    Tuesday, February 22, 2011 8:44 AM
  • thnx..

    Restore -SPSite  should be Restore-SPSite .No space in betwn

    • Proposed as answer by hemantrhtk Tuesday, February 22, 2011 10:04 AM
    • Marked as answer by Aaron Han - MSFT Friday, February 25, 2011 1:36 AM
    Tuesday, February 22, 2011 9:56 AM