Restoring a SnapCenter database repository backup

You can restore the SnapCenter repository by running the Restore-SmRepositoryBackup cmdlet.

Steps

  1. Launch PowerShell.
  2. From the command prompt, enter the following cmdlet, and then provide credentials to connect to the SnapCenter Server: Open-SMConnection
  3. Restore the respository backup using the Restore-SmRepositoryBackup cmdlet and options: Restore-SmRepositoryBackup [-HostName] string [-BackupName] string [[-SMSbaseUrl] string] [[-RestoreFileSystem]]

    The options are as follows:

    HostName
    The SnapCenter Server host name. For standalone configurations, you must specify as localhost. For network load balancing (NLB) configurations, you must provide the host name of the SnapCenter Server where the iSCSI LUN or VMDK is configured for repository back ups.
    SMSbaseUrl
    The SnapCenter Server URL. This URL is required when you are executing the PowerShell cmdlet from a repository host.
    BackupName
    The name of the backup that is to be restored.
    RestoreFileSystem

    Optional. This parameter is used when your backup files are corrupted or accidentally deleted from iSCSI LUN. For VMDK, you must manually restore the accidentally deleted or corrupted backups from ONTAP Snapshot copies.

Example

The following cmdlet restores the SnapCenter MySQL database repository from the backups existing on either iSCSI LUN or VMDK:

C:\PS>Restore-SmRepositoryBackup -BackupName MYSQL_DS_SC_Repository_mva-x3550-s09_09-15-2016_10.32.00.4445
The following cmdlet restores the SnapCenter MySQL database when backup files are deleted accidentally in the iSCSI LUN. For VMDK manually restore the backup from ONTAP Snapshot copies.
C:\PS>Restore-SmRepositoryBackup -BackupName MYSQL_DS_SC_Repository_mva-x3550-s09_09-15-2016_10.32.00.4445 -RestoreFileSystem