Back up or restore a website

Source: Internet
Author: User
ArticleDirectory
    • Restore the website in Active Directory Account creation mode
Back up or restore a website

Back up website

You can use the stsadm.exe command line tool to back up or restore websites. The stsadm.exe tool uses the following parameters.

Parameters Required? Description
-Filename Yes The name of the backup file. For example, backup. dat
-URL Yes The URL of the website. For example, http ://SERVER_NAME/Site
-Overwrite No Overwrite any existing backup file or website. If this parameter is not specified and a backup file or website exists, the backup will be stopped.

FilenameParameters can use any of the following types of information:

    • File name, such as backup. dat
    • Path on the local hard drive, suchLocal_drive:\Path_name\File_name. Dat
    • Path on network sharing, for example \\Share\Folder\File_name. Dat

NoteBefore backing up a website, we recommend that you generate a list of websites and identify the websites to be backed up. To generate a list of websites on the server, you can useEnumsitesOperation. UseEnumsitesCommand to generate a website list, which can help achieve automatic backup. For example, you can includeEnumsites, Analyze the website list, and then create a backup with the website list.EnumsitesThe operation uses the following syntax:Stsadm.exe-O enumsites-URLURL

To perform simple website backup, use the following syntax:

 
Stsadm.exe-O backup-URL http ://SERVER_NAME/Site-FilenameFile_name.dat

To back up a website and overwrite existing backup files, use the following syntax:

 
Stsadm.exe-O backup-URL http ://SERVER_NAME/Site-FilenameLocal_drive:\Path_name\File_name. Dat-overwrite

Restore website

To restore the website, use the stsadm.exe command line toolRestoreOperation.RestoreThe operation uses the following parameters:

Parameters Required? Description
-Filename Yes The name of the backup file. For example, backup. dat
-URL Yes The URL of the website. For example, http ://SERVER_NAME/Site
-Overwrite No Overwrite any existing backup file or website. If this parameter is not specified and a backup file or website exists, the recovery will stop.

There are three options for restoring a website from backup.

    • You can restore a website on an existing website.

      Key PointsUse this option with caution. When you overwrite an existing website, it will be completely covered. Websites cannot be merged. When the website is overwritten, any existing website content and existing website permissions will be deleted.

    • You can restore a website to a new website on the same server.

      This is a recommended option. When you restore a website to a new website on the same server, you can copy data from the recovered website and paste it back to the original website. Use this method if the website is restored to recover data.

      NoteIn order for the recovery operation to work properly, you must correctly configure the paths included and excluded from the virtual server. If the website is restored to a new website, make sure that the path included for the website is created before the website is restored if necessary.

    • The website can be restored to a separate server. The server should be separately installed with Windows SharePoint services that use the configuration database copy from the original server.

      This is a more complex situation, but with it, you can set two versions of the same website like the previous option, but you can use the unused website deletion function to automatically delete the website after a specific period of time.

      NoteTo restore a specific list or list item from a website backup, use this method to restore the website, and then copy the list or item from the recovered website to the original website.

To restore a website from a backup file to a new website or a separate server, use the following syntax:

 
Stsadm.exe-O restore-URL http ://SERVER_NAME/Site-FilenameFile_name. Dat

To restore a website from a backup file shared by the server and overwrite any existing website in the new location, use the following syntax:

Stsadm.exe-O restore-URL http ://SERVER_NAME/Site-Filename \\Share \ Folder \ file_name. Dat-overwrite
Restore the website in Active Directory Account creation mode

When you restore a website that runs in Active Directory Account creation mode, the target website must also run in Active Directory Account creation mode. In addition, the website running in the inactive directory Account creation mode cannot be restored to the server running in the Active Directory Account creation mode.

Key Points

    • Do not run the original website and the recovered website at the same time. This creates security risks because users from backup websites are allowed to have full access to the restored website and all user management changes made to one website will be applied to another website.
    • When deleting the original or recovered website, make sure that you specify-Deleteusers falseOtherwise, the users in the two websites will be deleted from the Active Directory Service. For example:Stsadm-O deletesites-deleteusers false

From: http://www.suifenhe.gov.cn/_vti_bin/help/2052/sps/html/wsapbkst.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.