none
Restore-SPSite question RRS feed

  • Вопрос

  • I've SP2010 farm without SP1 or any upgrades

    The question is why i can't restore deleted site collection on the same content database?

    So i created site collection, backup it, delete and now i'm trying to restore it on same ContentDB.

    PS C:\Users\sp_admin> Restore-SPSite http://sp2010/sites/a1 -Path C:\SitesBackup\a1.bak -force
    
    Confirm
    Are you sure you want to perform this action?
    Performing operation "Restore-SPSite" on Target "http://sp2010/sites/a1".
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
    PS C:\Users\sp_admin> Restore-SPSite http://sp2010/sites/a1 -Path C:\SitesBackup\a1.bak -force
    
    Confirm
    Are you sure you want to perform this action?
    Performing operation "Restore-SPSite" on Target "http://sp2010/sites/a1".
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
    Restore-SPSite : The operation that you are attempting to perform cannot be completed successfully.  No content databases in the web application were
     available to store your site collection.  The existing content databases may have reached the maximum number of site collections, or be set to read-
    only, or be offline, or may already contain a copy of this site collection.  Create another content database for the Web application and then try the
     operation again.
    At line:1 char:15
    + Restore-SPSite <<<<  http://sp2010/sites/a1 -Path C:\SitesBackup\a1.bak -force
        + CategoryInfo          : InvalidData: (Microsoft.Share...dletRestoreSite:SPCmdletRestoreSite) [Restore-SPSite], InvalidOperationException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRestoreSite
    


    get-help Restore-SPSite
    The Restore-SPSite cmdlet performs a restoration of the site collection to a location specified by the Identity parameter. A content database may only contain one copy of a site collection. If a site collection is backed up and restored to a different URL location within the same Web application, an additional content database must be available to hold the restored copy of the site collection.

    Maybe i already have a copy of this site collection. but why, i have deleted this site collection?

    sorry for my English

    • Изменено 8eugene 6 октября 2011 г. 9:05
    6 октября 2011 г. 8:51

Ответы