Today, I tried to SharePoint2010 the website backup and restore, search some documents from the Internet to see, and then try their own, feel and 2007 of the operation is not too much difference, with you to share the way you try the command line and database methods, 2007 of their common is also the two ways.
1, command line way, on the server side, all Programs-Microsoft SharePoint products-sharepoint Management Shell OK
Back up the site command: Backup-spsite http://localhost:10086-Path C:\100861.bak
Restore Web Site command: Restore-spsite http://localhost:10087-Path C:\10086.bak-Force-DatabaseServer Sharepoint2010-databasename Wss_content_10087test
The simple introduction of this command Backup-spsite/restore-spsite is the name of the operation, we need to back up or restore, of course, the introduction of the site and export, you can search the Management Shell command; followed by the site collection of the url,- Path is represented by paths, followed by the physical path of the file; The restored commands are databaseserver the database server, followed by the server's machine name, and then databasename the database name followed by the database name of the site collection. Restore time, but also add-force, is to overwrite the previous site collection.
Feel this command line compared to before, there is a little bit unsatisfactory place, that is, the success of the operation is not prompted, failure will prompt the wrong, feeling or not enough humanity, to everyone cut a map, is my backup and restore when running the map, you can refer to.
Backup diagram
Restore diagram