备份站点
Backup-SPSite -Identity <Site collection name> -Path <backup file> [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose]
那么就按照上面的代码敲吧(注意要有管理员的身份)
命令是:
backup-spsite -identity http://portal.sih.com.cn -Path c:\yanpeng\SIH_bak\2012-01-12.bak
还原站点
Restore-SPSite -Identity <Site collection URL> -Path <Backup
file> [-DatabaseServer <Database server name>]
[-DatabaseName <Content database name>] [-HostHeader <Host
header>] [-Force] [-GradualDelete] [-Verbose]
命令是:
restore-spsite -identity http://*** -Path c:\yanpeng\SIH_bak\2012-01-12.bak -Force