您的位置:首页 > 运维架构 > Shell

Copy page via powershell and not save as template

2015-07-16 16:39 337 查看
By save as template informaton of the page get lost, e.g. permissions. To avoid this, use powershell command:

Use this command to backup a site collection
Backup-SPSite -Identity "http(s)://your-site-collection-url" -Path "C:\backups\your-site-collection-backup.bak"


It's important to use an absolute path as -Path parameter.

Then create a new web application and then run the following command
Restore-SPSite "http(s)://your-new-web-application-url" -Path "C:\backups\your-site-collection-backup.bak"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: