Skip to main content
SnapCenter 5.0 cmdlets

New-SmBackup

Contributors

Initiates a new Snapshot copy job.

Syntax

New-SmBackup [-Resources]  <Hashtable[]>  [-DatasetName]  <String>  [-ResourceGroupName]  <String>  [-Policy]  <String>  [-Auth]  <String>  [-IsScheduled]  <Boolean>  [-ClusterName]  <String>  [-SMSBaseUrl]  <String>  [-IsNLBHost]  <Boolean>  [-ScheduleName]  <String>  [-ScheduleType]  <SmSchedulerType>  [-Guid1]  <String>  [-Guid2]  <String>  [-SnapShotLabel]  <SmSPSnapShotLabel>  [-HostName]  <String>  [-VerifyOnSecondary]  <>  [-EnableVerification]  <>

Detailed Description

Initiates a new Snapshot copy job on the provided resource or the resources mapped to the provided resource group.

Parameters

Name Description Required? Pipeline Input Default Value

Resources

Specifies the resource which you want to backup. For Oracle Application Volume resource, format is -Resources @{"Host"="host1";"Application Volume"="appVol1"}

false

true (ByPropertyName)

DatasetName

Names the dataset you want to back up.

false

false

ResourceGroupName

false

false

Policy

Specifies the policy you want to use for the backup operation.

true

false

Auth

This parameter is for internal use only.

false

false

IsScheduled

Internal switch to determine Cmdlet invocation by scheduler.

false

false

ClusterName

Internal switch for identifying the cluster host.

false

false

SMSBaseUrl

Internal switch that points to the SMS Base URL.

false

false

IsNLBHost

Internal switch that indicates whether this host is part of NLB.

false

false

ScheduleName

Internal switch that indicates schedule name.

false

false

ScheduleType

false

false

Guid1

false

false

Guid2

false

false

SnapShotLabel

false

false

HostName

Determines the host name (FQDN) for which the backup job has been scheduled.

false

false

VerifyOnSecondary

Specifies whether verification is enabled on secondary storage.

false

false

EnableVerification

Specifies whether verification of backups is enabled. Values are either $True or $False.

false

false

Examples

Example 1: Backing up a resource group

 New-SMBackup -ResourceGroupName FullOnlineDataset1 -Policy FullBackupPolicy

This example syntax backs up the specified resource group.

Example 2: Backing up resources

 New-SMBackup -Policy FullBackupPolicy -Resources @{"Host"="scspr0101826001-sumanr.lab.netapp.com";"Oracle Database"="ong"}

This example syntax backs up the specified resources.

Example 3: Enabling verification of a backup

 New-SMBackup -EnableVerification $true -VerifyOnSecondary $true -Policy FullBackupPolicy -Resources @{"Host"="scspr0101826001-sumanr.lab.netapp.com";"Oracle Database"="ong"}

This example syntax backs up the specified resources and verifies the backup when it completes.

Example 4: Triggering a new backup of the HANA resource

 New-SMBackup -Resources @{"Host"="schana02.gdl.englab.netapp.com";"Uid"="MDC\R57";"PluginName"="hana"} -Policy "HANAPOLICY"

This example backs up the specified resources.

Name: Backup of Resource Group 'schana02_gdl_englab_netapp_com_hana_MDC_R57' with policy 'HANAPOLICY'
Id  : 25
StartTime   : 02-Oct-19 21:49:46
EndTime :
IsCancellable   : False
IsRestartable   : False
IsCompleted : False
IsVisible   : True
IsScheduled : False
PercentageCompleted : 0
Description :
Status  : Queued
Owner   :
Error   :
Priority: None
Tasks   : {}
ParentJobID : 0
EventId : 0
JobTypeId   : 0
ApisJobKey  :
ObjectId: 0
PluginCode  : SCC
PluginName  : PluginCreator
HostId  : 0
RoleId  :
JobIds  : {}

Example 5: Backing up an Oracle Application Volume Resource

 New-SMBackup -Policy ndvpolicy -Resources @{"Host"="R809278EA03V1.HNK2.com";"Application Volume"="appVol1"}

This example syntax backs up the specified Oracle Application Volume resource.

Example 6: Triggering a new backup of the UnixFileSystems resource

 New-SMBackup -ResourceGroupName "RG_PS_linuxfs201_LVM1_12648" -Policy "BackupPS_linuxfs201_LVM1_12648"

This example backs up the specified resources.

			Name: Backup of Resource Group 'RG_PS_linuxfs201_LVM1_12648' with policy
								  'BackupPS_linuxfs201_LVM1_12648'
			Id  : 2759
			StartTime   : 12/12/2023 8:29:33 AM
			EndTime :
			IsCancellable   : False
			IsRestartable   : False
			IsCompleted : False
			IsVisible   : True
			IsScheduled : False
			PercentageCompleted : 0
			Description :
			Status  : Queued
			Owner   :
			Error   :
			Priority: None
			Tasks   : {}
			ParentJobID : 0
			EventId : 0
			JobTypeId   : 0
			ApisJobKey  :
			ObjectId: 0
			PluginCode  : SCC
			PluginName  : PluginCreator
			HostId  : 0
			RoleId  :
			JobIds  : {}
			ScsJobId: