New-ApplianceBackupJob
This cmdlet starts a file-based backup job for a vCenter Server system to a backup server.
Syntax
-BackupServerType <String>
-FolderPath <String>
[-BackupServerPassword <SecureString>]
[-BackupServerPort <Int32>]
[-BackupServerUsername <String>]
[-Description <String>]
[-OptionalBackupParts <ApplianceBackupPart[]>]
[-Password <SecureString>]
[-Server <VIServer>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
String | named |
|
The IP or FQDN of the backup server to be used for the backup. | required |
|
String | named |
|
The type of the backup server. Currently supported types are FTP, HTTP, FTPS, HTTPS, SCP, SFTP, NFS, SMB | required |
|
String | named |
|
A folder path on the backup server where the backup will be created. It must be an empty or non-existing folder. In case the folder doesn't exist it will be created. | optional |
|
SecureString | named |
|
Password for the given backup server. If unset, authentication will not be used for the specified backup server. | optional |
|
Int32 | named |
|
The backup server port to be used for the backup. | optional |
|
String | named |
|
Username for the given backup server. If unset, authentication will not be used for the specified backup server. | optional |
|
String | named |
|
Provides a custom comment to the backup job. If unset, the comment will be empty. | optional |
|
ApplianceBackupPart[] | named |
|
A list of optional backup parts that will be included in the backup job. You can use Get-ApplianceBackupPart -OptinalOnly to retrieve a list of the available parts. | optional |
|
SecureString | named |
|
You can set a password for encryption of a backup. The password must adhere to the following requirements. The length must be at least 8 characters but not more than 20 characters. It must include at least one uppercase letter, lowercase letter, numeric digit, and special character (i.e. any character different from [0-9,a-z,A-Z]). Only visible ASCII characters are permitted (no spaces). If no password is specified, the backup will not be encrypted. | optional |
|
VIServer | named |
|
Specifies the vCenter Server system on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default server. Note: This cmdlet can only run on a single vCenter Server at a time since a specific folder on the backup server can only hold a single server backup. |
Output
VMware.VimAutomation.ViCore.Interop.V1.Appliance.Backup.ApplianceBackupJob
Examples
Example 1
Starts a backup job for a vCenter Server system that is going to be stored at an FTP server in the /backups/manual_backup_1 folder and encrypted with a password. Only mandatory backup parts are included since no optional backup parts have been specified.
Example 2
Starts a backup job for a vCenter Server system that is going to be stored at an FTP server in the /backups/manual_backup_1 folder and encrypted with a password. All mandatory and optional backup parts are included.
Related Commands
ApplianceBackupJob