Back Up a Configuration Database
Scenario/Problem: You want to back up a configuration database within your SQL Server.
Solution: Use the Backup-SPConfigurationDatabase
cmdlet with the Directory
parameter.
The Backup-SPConfigurationDatabase
cmdlet enables you to perform a backup on a configuration database, placing the backup files in the directory specified. Listing 7.10 shows an example.
Backup-SPConfigurationDatabase -Directory F:\Backups
This cmdlet already knows which configuration database the current server and SharePoint farm are using. Use the -DatabaseServer
and -DatabaseName
parameters to specify the actual configuration database name and location.
If you are ...
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.