Recently, the project is progressing smoothly, and the test server needs to be relocated to the formal server for the final test. Test a web application on the server. Program The official version has the physical characteristics, so in line with the "Code for your own use" principle, migrate this application to the formal server by means of backup and restoration. However, in the backup and restoration function of the management center, it is difficult to handle simple backup operations, So Google gave a summary.
Before proceeding, describe the implementation methods and technical background to be prepared. Use the stsadm command to back up files. Restore and perform the operation again.
1)Stsadm. EXE file. In Windows SharePoint Services 2.0, it is stored in c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 60 \ bin by default. The default location of version 3.0 is c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin. This is a powerful command line
Management tools cover almost all routine maintenance operations of moss. For more information, see SharePoint's powerful command line management (Chinese ). I am using this stuff mainly to back up site data.
2) SharePoint designer 2007. This stuff works with Sharepoint to design the site. I believe everyone is familiar with FrontPage. This software is used to replace it. For details about spd2007 backup, refer to backup, restore, or Mobile SharePoint sites.
Next, we will start our journey of backing up Sharepoint.
Method 1: Use the command line method to completely back up the site set or site.
- First, we use the stsadm.exe file to back up database files.
Stsadm-oBackup-URLHttp: // localhost: 18072-Filename D: \ sps-backup-2007-2-28.bak
Note: If you want to run the stsadm command in any directory, you must add the directory where the file is located to the path of the environment variable. We have backed up all the data in the SharePoint website, including pages, lists, webparts, and even any files contained in the site directory.
-
- Then copy the file to the sps-backup-2007-2-28.bak. copy the file to any directory on the target machine and run
Stsadm-oRestore-URLHttp: // localhost: 8080-Filename D: \ sps-backup-2007-2-28.bak
If a site set exists in the target location, you must delete it first, or add the parameter-overwrite and the site set is disabled. Otherwise, an exception occurs.
This is the case where the site set exists. OK. If you specify the-overwrite parameter, we add the-overwrite parameter and execute it. However, an error still occurs :-(
This is because the site set is being used as a web application. If we think that when we try to delete an MP3 file, an error is returned, this problem is easy to understand. Turn off IIS and restore it again. OK. The operation is completed successfully!
- Sometimes we do not want to back up the entire site set, but just want to back up a website under the site set, you canBackupAndRestoreChangeImportAndExport, Set the URL to the URL of the source website.
Method 2: Use sharepoint2007 to completely back up the site set or website
Summary: there are many ways to back up Sharepoint, as well as more primitive direct backup databases and copy physical files, if you have a better method, I hope you can give me some advice ~~~