SharePoint PowerShell Command Series (1) Backup-spsite & Restore-spsite

Source: Internet
Author: User

These two commands are probably the first PowerShell commands that everyone touches, one is to back up the site collection and the other is to restore the site collection.

Backup-spsite Example
Backup-spsite Http://site_name-Path C:\Backup\site_name.bak
Parameters
  • Force: Overwrite existing backup
  • Nositelock: Sets whether the site collection can read and write when the backup is set. If this parameter is not specified, the site collection is set to read-only during the backup and the site collection is restored to its original state after the backup is complete.
Restore-spsite Example
Restore-spsite Http://site_name-Path C:\Backup\site_name.bak
Parameters
  • Force: Overwrites a site collection on an existing URL address
  • Contentdatabase: Specifies which content database to restore to; If you do not specify a content database that will use the maximum capacity of unused site collections, its database state is ready.
  • Databaseserver & DatabaseName: Specifying the data server name and data name

Enjoy SharePoint

SharePoint PowerShell Command Series (1) Backup-spsite & Restore-spsite

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.