Backup and Restore in SharePoint 2010
2011-05-25 11:15
441 查看
参考资料:
http://www.mssharepointtips.com/tip.asp?id=1040
http://www.mssharepointtips.com/tip.asp?id=1045
首先要新建一个网站集,然后通过Windows PowerShell:
在“开始”菜单上单击“所有程序”。
单击“Microsoft SharePoint 2010 产品”。
单击“SharePoint 2010 Management Shell”。
在 Windows PowerShell 命令提示符(即 PS C:\>)处,键入以下命令,然后按 Enter:
那么就按照上面的代码敲吧(注意要有管理员的身份)
我敲的命令是: backup-spsite -identity http://***:8000 -Path c:\backup\a.bak -force
还原的方法和备份的地方一样
我敲的命令是:
restore-spsite -identity http://*** -Path c:\backup\a.bak -databaseserver MossDB(这个是数据库的机器名) -databaseName Wss_Content -force
会问你是否要还原,默认Y回车就可以了。
除了一个webpart好像出错了(修改了一下webconfig),其他的都恢复成我测试环境的样子了,恩,这样效率提高了很多,可以交差了。(工作流的数据库没有拷贝回来,所以也同样恢复了一下)
if ($ != jQuery) {
$ = jQuery.noConflict();
}
var isLogined = true;
var cb_blogId = 72179;
var cb_entryId = 2043463;
var cb_blogApp = "myheaven";
var cb_blogUserGuid = "25b9b545-bb7a-df11-ba8f-001cf0cd104b";
var cb_entryCreatedDate = '2011/5/11 17:47:00';
http://www.mssharepointtips.com/tip.asp?id=1040
http://www.mssharepointtips.com/tip.asp?id=1045
首先要新建一个网站集,然后通过Windows PowerShell:
在“开始”菜单上单击“所有程序”。
单击“Microsoft SharePoint 2010 产品”。
单击“SharePoint 2010 Management Shell”。
在 Windows PowerShell 命令提示符(即 PS C:\>)处,键入以下命令,然后按 Enter:
Backup-SPSite -Identity <Site collection name> -Path <backup file> [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose]
那么就按照上面的代码敲吧(注意要有管理员的身份)
我敲的命令是: backup-spsite -identity http://***:8000 -Path c:\backup\a.bak -force
还原的方法和备份的地方一样
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:\backup\a.bak -databaseserver MossDB(这个是数据库的机器名) -databaseName Wss_Content -force
会问你是否要还原,默认Y回车就可以了。
除了一个webpart好像出错了(修改了一下webconfig),其他的都恢复成我测试环境的样子了,恩,这样效率提高了很多,可以交差了。(工作流的数据库没有拷贝回来,所以也同样恢复了一下)
if ($ != jQuery) {
$ = jQuery.noConflict();
}
var isLogined = true;
var cb_blogId = 72179;
var cb_entryId = 2043463;
var cb_blogApp = "myheaven";
var cb_blogUserGuid = "25b9b545-bb7a-df11-ba8f-001cf0cd104b";
var cb_entryCreatedDate = '2011/5/11 17:47:00';
相关文章推荐
- Backup and restore of FAST Search for SharePoint 2010
- How to hide my site and my document link in the right-top corner of sharepoint 2010
- Writing and Hosting a Web Service in the SharePoint 2010 Demo Virtual Machine
- Force stop and then start a full crawl on all content sources in a SharePoint 2010 farm using PowerShell(转)
- Get the SharePoint groups in Infopath 2010 and SharePoint 2010 by current user without any code
- Disabling Mobile Web Page Access in SharePoint Server 2010 and SharePoint Foundation 2010
- Add Ribbon button and menu item in Sharepoint 2010
- Create custom Task List and Forms in SharePoint 2010 with Visual Studio 2012
- Co-authering in Word 2010 and SharePoint 2010
- sharepoint Backup and Restore using STSADM
- Adding and Deploying Solutions with PowerShell in SharePoint 2010
- 记录一个:Create, Update, Delete and Copy Item Activity in SharePoint 2010 Workflow
- SharePoint Use backup, restore and export
- 【转】How to install and configure SharePoint Server 2010 SP1 on the existing SP 2010 Farm
- Backup a farm by using SharePoint 2013 Central Administration and the Error Solution
- Step By Step Guide to configure the “Replicating directory changes” for SharePoint 2010 and 2013
- 好文推荐:Development Tools and Techniques for Working with Code in Windows SharePoint Services 3.0
- Fix SharePoint 2013 Site in Read only mode after an interrupted backup
- FW:Data View Web Parts and Ghosting in SharePoint Version 2
- Installing SharePoint 2010 on Windows Server 2008 R2 – which server roles and features do I need?