Skip to content

Set-VCFBackupConfiguration

Synopsis

Configures or updates the backup configuration details for backing up NSX and SDDC Manager.

Syntax

Set-VCFBackupConfiguration [-json] <String> [<CommonParameters>]

Description

The Set-VCFBackupConfiguration cmdlet configures or updates the backup configuration details for backing up NSX and SDDC Manager.

Examples

Example 1

Set-VCFBackupConfiguration -json (Get-Content -Raw .\samples\backup-restore\backupSpec.json)

This example shows how to configure the backup configuration.

Sample JSON: Configure Backup Settings
{
    "backupLocations": [ {
        "directoryPath": "/backups/sfo-vcf-01/",
        "password": "VMw@re1!",
        "port": 22,
        "protocol": "SFTP",
        "server": "secure.rainpole.io",
        "sshFingerprint": "<!!SSH-FINGERPRINT!!>",
        "username": "svc-vcf-bck"
    } ],
    "encryption": {
        "passphrase": "VMw@re1!VMw@re1!"
    }
}

Parameters

-json

Specifies the JSON specification to be used.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Common Parameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.