New-SmServerBackup
Creates a SnapCenter Server backup.
Syntax
New-SmServerBackup [-TargetPath] <String> [-TakeConfigBackupinHosts] <SwitchParameter>
Detailed Description
Backups the SnapCenter Server at specified path.
Parameters
| Name | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|
TargetPath |
Specify the path where SnapCenter Server backup should be created. |
true |
true (ByPropertyName) |
|
TakeConfigBackupInHosts |
Take backup of configs in all hosts. |
false |
false |
Examples
Example 1: Creating a SnapCenter Server backup
New-SmServerBackup -TargetPath E:\Data
This example creates a SnapCenter Server backup.
Name: SnapCenter Server backup
Id : 55
StartTime : 8/30/2023 5:48:43 PM
EndTime : 8/30/2023 5:48:43 PM
IsCancellable : False
IsRestartable : False
IsCompleted : False
IsVisible : True
IsScheduled : False
PercentageCompleted : 100
Description :
Status : Running
Owner :
Error :
Priority: None
Tasks : {Precheck validation}
ParentJobID : 0
EventId : 0
JobTypeId : 0
ApisJobKey :
ObjectId: 0
PluginCode : NONE
PluginName : NONE
HostId : 0
RoleId :
JobIds : {}
ScsJobId:
Example 2: Creating SnapCenter Server backup and host configuration files
New-SmServerBackup -TargetPath E:\Data -TakeConfigBackupInHosts
This example backs up the SnapCenter Server and the configuration files from all the hosts.
Name: SnapCenter Server backup
Id : 55
StartTime : 8/30/2023 5:48:43 PM
EndTime : 8/30/2023 5:48:43 PM
IsCancellable : False
IsRestartable : False
IsCompleted : False
IsVisible : True
IsScheduled : False
PercentageCompleted : 100
Description :
Status : Running
Owner :
Error :
Priority: None
Tasks : {Precheck validation}
ParentJobID : 0
EventId : 0
JobTypeId : 0
ApisJobKey :
ObjectId: 0
PluginCode : NONE
PluginName : NONE
HostId : 0
RoleId :
JobIds : {}
ScsJobId: