Skip to main content
SnapCenter 4.7 cmdlets

Protect-SmRepository

Contributors

Sets the configuration that is required to create a backup of the SnapCenter database.

Syntax

Protect-SmRepository [-HostName]  <String>  [-Path]  <String>  [-Schedule]  <Hashtable>  [-RetentionCount]  <Int32>

Detailed Description

Sets the configuration that is required to create a backup of the SnapCenter database.

Parameters

Name Description Required? Pipeline Input Default Value

HostName

Specifies the SnapCenter database host name. If the SnapCenter database is hosted by a failover cluster instance (FCI), then specify the FCI owner host name.

true

true (ByPropertyName)

Path

Specifies the NetApp destination disk path where MySQL dumps are stored. Virtual disks are not supported.

true

true (ByPropertyName)

Schedule

Specifies in a hash table the schedule to use when backing up the repository. For example: -Schedule @{"ScheduleType"="hourly";"StartTime"="10/21/2016 5:18 PM"}

true

true (ByPropertyName)

RetentionCount

Specifies the number of backups to retain. By default, 7 backups are retained.

false

true (ByPropertyName)

Examples

Example 1: Configuring a database backup for MySQL DB

 Protect-SmRepository -HostName NB-MVA-DEV057.nbsdsm.mycompany.netapp.in -Path E:\DATA -Schedule @{"ScheduleType"="hourly";"StartTime"="10/21/2016 5:18 PM"}

This example syntax configures an hourly backup for the file system specified and uses the Path argument to indicate the NetApp disk path where the repository DB dumps will be placed.