Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use PowerShell to shorten SharePoint backup time

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to use PowerShell to shorten SharePoint backup time, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Microsoft SharePoint is becoming more and more popular in the enterprise, which is in sharp contrast to the boredom and dislike of it by many administrators. One reason for the anger is the way SharePoint stores all relevant data in many different places, which makes SharePoint-specific backups somewhat tricky to perform. It's not impossible to back up each separate part, but it's really troublesome.

Fortunately, programmer Jesper M. Christensen decided to do something about it. Christensen sat down and wrote a PowerShell script that made it possible to back up the entire instance of Windows SharePoint Services or Microsoft Office SharePoint Server, including the site, 12 storage, and IIS metadata. The database can be backed up by using the stsadm.exe tool.

In scheduled tasks or other tasks initiated by scripts as needed, this script called SP backup can be run manually and is available free of charge under the Microsoft Public license (Ms-PL). This script supports IIS 6.0and IIS 7.0backup and works on all versions of Windows that support SharePoint (client and server) and have PowerShell.

SP backup consists of two parts: the script itself and a XML configuration file, which the script parses to obtain information such as the backup destination (which can be a local path or server share). The two files need to be placed in the same directory, but it is entirely up to you to decide which directory they belong to.

Of course, you will need to edit the XML file to provide the appropriate parameters for your server. Some of the parameters are internal to the script and are explained only in the script's file. For example, the backup target * retention period parameter allows you to specify how many days the old backup can be retained before it is automatically deleted.

You can also set parameters to allow you to send an email and a description of the events that occurred during the backup at the end of the work. Other parameters allow you to specify a password for decrypting IIS 6.0metadata, so you can choose to store or perform a catastrophic backup on another server (the same full SharePoint backup as the Central Administration path).

Another report is also logged into the console, but there is no ready-made provision in the script to write the report to the system log. To be honest, it doesn't seem difficult to log results by using the send email function in scripting and writing event log commands. In addition, an additional feature that users require is the ability to back up GAC folders and virtual directories without performing a full advance backup (a documented process).

Note that the options exposed by the script do not make up a complete list of options available through stsadm.exe, which performs backup operations for SharePoint itself. An option that is completely useless.

Is a backup thread, and although it is recommended that those running SharePoint Server 2007 set it to 3 to increase efficiency, its default value is 1. You can add this directly to the script according to your performance requirements. If you have multiple cores on your server (there are still people now, aren't they? It is of great significance to use as much as you can.

* although the script performs backups, it does not perform storage operations, so you still need to execute the various SharePoint elements manually and separately.

The above is all the contents of the article "how to use PowerShell to shorten SharePoint backup time". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report