Before you perform these procedures, confirm that you are logged on to the server that is running the SharePoint Central Administration Web site.
Procedures in this topic give steps to back up the following components:
-
Server farm
-
Web application
-
Database
-
Site collection
-
Site and subsite
-
Item-level objects
Important |
|---|
| Membership in the Administrators group on the local computer is the minimum required to complete these procedures. |
Back up a server farm by using the Stsadm command-line tool
-
On the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.
-
To back up a server farm, type the following command:
stsadm -o backup -directory <\\server name\folder name> -backupmethod full
where \\server name\folder name is the Universal Naming Convention (UNC) path to the backup folder.
-
If the backup completes successfully, the command window displays the following text:
Completed with 0 warnings.
Completed with 0 errors.
Backup completed successfully.
---------------------------------------------------------
Operation completed successfully.
-
If there are errors or warnings, or if the backup does not complete successfully, review the spbackup.log file in the folder that you specified in step 2.
Back up a Web application by using the Stsadm command-line tool
-
On the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.
-
If you do not already know what node you want to back up, type the following command:
stsadm –o backup –showtree
Note |
|---|
| Items enclosed by square brackets ([ ]) cannot be directly selected for backup but are backed up when their parent item is selected. |
-
To back up a Web application, type the following command:
stsadm -o backup -directory <\\server name\folder name> -backupmethod full -item <Web application name>
where \\server name\folder name is the UNC path to the backup folder and where Web application name is the name of the Web application that you want to back up. You might use the full farm path notation as displayed by the showtree parameter or the name of the component in the path if it has a unique name — for example, Windows SharePoint Services Web Application\SharePoint-80.
-
If the backup completes successfully, the command window displays the following text:
Completed with 0 warnings.
Completed with 0 errors.
Backup completed successfully.
---------------------------------------------------------
Operation completed successfully.
-
If there are errors or warnings, or if the backup does not complete successfully, review the spbackup.log file in the folder that you specified in step 3.
Back up a database by using the Stsadm command-line tool
-
On the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.
-
If you do not already know what node you want to back up, type the following command:
Stsadm –o backup –showtree
Note |
|---|
| Items enclosed by square brackets ([ ]) cannot be directly selected for backup but are backed up when their parent item is selected. |
-
To back up a database, type the following command:
Stsadm -o backup -directory <\\server name\folder name> -backupmethod full -item <database name>
where \\server name\folder name is the UNC path to the backup folder and where database name is the name of the component that you want to back up. You might use the full farm path notation as displayed by the -showtree parameter or the name of the component in the path if it has a unique name — for example, Farm\Windows SharePoint Services Web Application\SharePoint - 12345\WSS_Content_123456ef789g0.
-
If the backup completes successfully, the command window displays the following text:
Completed with 0 warnings.
Completed with 0 errors.
Backup completed successfully.
---------------------------------------------------------
Operation completed successfully.
-
If there are errors or warnings, or if the backup does not complete successfully, review the spbackup.log file in the folder that you specified in step 3.
Back up a site collection by using the Stsadm command-line tool
-
On the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.
-
Type the following command:
stsadm -o backup -url <URL name> -filename <\\server. name\folder name\file name> [-overwrite]
where URL name is the URL of the site collection that you want to back up, and where \\server name\folder name\file name is the UNC path to the backup folder and the name of the file you are backing up to. If there is an existing file for the backup, use the -overwrite parameter to overwrite the existing file.
-
If the backup completes successfully, the command window displays the following text:
Operation completed successfully.
-
If the backup does not complete successfully, the command line provides additional details about the failure. Most commonly, an incorrect URL or file name was given.
For more information about the backup operation, see Backup: Stsadm operation (Office SharePoint Server).
To back up a site or subsite by using the Stsadm command-line tool
You can use the export operation to save a site or subsite. You can then use the import operation to import the site or subsite to the same or another server at a later time. Although using the export operation saves data for you, it is not the same as using the backup operation. You cannot save a workflow, alerts, features, solutions, or Recycle-Bin state by using the export operation. If you want a full-fidelity backup, use the backup operation to back up the site collection as described in the "Back up a site collection by using the Stsadm command-line tool" procedure earlier in this article.
Backup a site or sub-site by using the Stsadm command-line tool
-
On the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.
-
Type the following command:
stsadm -o export -url <URL name> -filename <export file name>
where URL name is the URL of the site or subsite that you want to back up, and where export file name is the name of the export file.
-
If the export completes successfully, the command window displays the following text:
Operation completed successfully.
-
If there are errors or warnings, or if the export does not complete successfully, see the export file name.export.log file for the file that you specified in step 2.
For more information about the export operation, see Export: Stsadm operation (Office SharePoint Server).
Back up item-level objects by using the Stsadm command-line tool
The following table lists operations that you can use to back up specific Microsoft Office Project Server 2007 items by using the Stsadm command-line tool.
|
This operation
|
Backs up this item-level object
|
| Projcatgroupbackup | Category and group settings |
| Projcustfieldsbackup | Enterprise custom fields and lookup tables |
| Projeglobalbackup | Enterprise global project |
| Projerpbackup | Enterprise Resource Pool and Calendar data |
| Projonlinebackup | Project |
| Projsyssettingsbackup | System settings |
| Projviewsbackup | View definitions |
These command-line operations do not back up the physical files of a database. Instead, they create backups of specific items in the database. These items are backed up from the Office Project Server 2007 Published database to the Office Project Server 2007 Archive database. For more information about using the Stsadm command-line tool with Office Project Server 2007, see Operations for the Stsadm command-line tool in Microsoft Office Project Server 2007.