Configuring the SnapCenter repository

Backing up the SnapCenter repository helps protect it from data loss. You can back up the repository database by running the Protect-SmRepository cmdlet.

About this task

The command accomplishes the following tasks:

Steps

  1. Launch PowerShell.
  2. From the command prompt, enter the following command, and then provide credentials to connect to the SnapCenter Server: Open-SMConnection
  3. Protect the repository: Protect-SmRepository [-HostName] string[-Path] string[Schedule]Hashtable [[-RetentionCount] Int32] [[-CatalogBackupPath] string]

    The options are as follows:

    HostName
    Specifies the SnapCenter Server host name. For standalone configuration, you must specify as localhost. For network load balancing (NLB) configuration, you must provide the host name of the SnapCenter Server where the iSCSI LUN or VMDK is configured for repository protection.
    Path
    Specifies the NetApp destination disk path for storing MySQL dumps. iSCSI LUNs and VMDK are supported and RDM LUNs are not supported for repository protection.
    Schedule
    Specifies the backup schedule information.
    Options are as follows:
    ScheduleType
    Specifies the backup schedule type. Possible options are Hourly, Daily, Weekly, Monthly.
    StartTime
    Specifies the scheduled backup start time. The default is the current time.
    EndTime
    Specifies the scheduled end time.
    RetentionCount
    Specifies the number of backups to retain. By default, seven backups are retained.

Example

The following command configures the SnapCenter database on a specific host in a specific location for hourly protection:

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