Restore a sitecollection.
----------------------EXAMPLE 1----------------------
This example restores a site collection from the backup file
----------------------EXAMPLE 2----------------------
This example restores a site collection backup from the backup file
----------------------EXAMPLE 3----------------------
This example restores a site collection backup from the backup file
----------------------EXAMPLE 1----------------------
Restore-SPSite http://server_name/sites/site_name
-Path C:\Backup\site_name.bak
This example restores a site collection from the backup file
C:\Backup\site_name.bak
to the site collection URL http://server_name/sites/site_name
.----------------------EXAMPLE 2----------------------
Restore-SPSite http://server_name/sites/site_name
-Path C:\Backup\site_name.bak
-Force -DatabaseServer SQLBE1 -DatabaseName SQLDB1
This example restores a site collection backup from the backup file
C:\Backup\site_name.bak
, but overwrites the existing site collection at http://server_name/sites/site_name
while specifying that the site collection must be stored in a specific content database.----------------------EXAMPLE 3----------------------
Restore-SPSite http://www.example.com
-Path \\file_server\share\site_name.bak
-HostHeaderWebApplication http://server_name
\\file_server\share\site_name.bak
to the host-named site collection http://www.example.com on the Web application http://server_name
.
No comments:
Post a Comment