Skip to content

backup

Backup management commands for NDCLI. These commands allow you to configure, enable, and monitor device configuration backups to S3-compatible storage.

Commands

CommandDescription
backup statusList all device backup statuses
backup showShow specific device backup status
backup enableEnable backup for a device
backup disableDisable backup for a device
backup config showShow backup configuration
backup config setCreate or update backup configuration
backup config enableEnable backup configuration
backup config disableDisable backup configuration
backup config deleteDelete backup configuration
backup config testTest S3 connection
backup encryption-key setSet device-specific encryption key
backup encryption-key removeRemove device encryption key override

backup status

List backup status for all devices in the organization.

Terminal window
ndcli backup status [flags]

Flags

FlagTypeDefaultDescription
--statusstringFilter by backup status: SUCCESS, FAILED, IN_PROGRESS
--enabled-onlyboolfalseShow only devices with backup enabled
--pageint1Page number
--per-pageint30Items per page (1–100)

Examples

Terminal window
ndcli backup status
ndcli backup status --enabled-only
ndcli backup status --status FAILED
ndcli backup status -f json

backup show

Show backup status for a specific device.

Terminal window
ndcli backup show [device]

Arguments

ArgumentRequiredDescription
deviceYesDevice name

Examples

Terminal window
ndcli backup show my-firewall
ndcli backup show my-firewall -f json

backup enable

Enable backup for a specific device. The device will be included in future backup runs according to the organization backup schedule.

Terminal window
ndcli backup enable [device]

Arguments

ArgumentRequiredDescription
deviceYesDevice name

Examples

Terminal window
ndcli backup enable my-firewall

backup disable

Disable backup for a specific device. The device will be excluded from future backup runs.

Terminal window
ndcli backup disable [device]

Arguments

ArgumentRequiredDescription
deviceYesDevice name

Examples

Terminal window
ndcli backup disable my-firewall

backup config show

Show the current organization-level backup configuration.

Terminal window
ndcli backup config show

Examples

Terminal window
ndcli backup config show
ndcli backup config show -f json

backup config set

Create or update the organization-level backup configuration. Sensitive values (S3 secret key, encryption key) are prompted interactively if not provided as flags.

Terminal window
ndcli backup config set [flags]

Flags

FlagTypeDefaultDescription
--s3-endpointstringS3 endpoint URL
--s3-bucketstringS3 bucket name
--s3-folderstringFolder path (prefix) within the bucket
--s3-key-idstringS3 access key ID
--s3-access-keystringS3 secret access key (prompts if not provided)
--schedulestringCron schedule expression (e.g., 0 2 * * *)
--encryption-keystringEncryption key (prompts if not provided)

Examples

Terminal window
# Interactive setup (sensitive values prompted)
ndcli backup config set \
--s3-endpoint https://s3.example.com \
--s3-bucket my-backups \
--s3-folder netdefense \
--s3-key-id AKIAIOSFODNN7EXAMPLE \
--schedule "0 2 * * *"

backup config enable

Enable the organization-level backup configuration. Backups will run on schedule for all enabled devices.

Terminal window
ndcli backup config enable

Examples

Terminal window
ndcli backup config enable

backup config disable

Disable the organization-level backup configuration. No backups will run while disabled.

Terminal window
ndcli backup config disable

Examples

Terminal window
ndcli backup config disable

backup config delete

Delete the organization-level backup configuration entirely.

Terminal window
ndcli backup config delete

Examples

Terminal window
ndcli backup config delete

backup config test

Test the S3 connection using the current backup configuration. Verifies connectivity and write permissions without creating an actual backup.

Terminal window
ndcli backup config test

Examples

Terminal window
ndcli backup config test

backup encryption-key set

Set a device-specific encryption key, overriding the organization default for that device.

Terminal window
ndcli backup encryption-key set [device]

Arguments

ArgumentRequiredDescription
deviceYesDevice name

Examples

Terminal window
ndcli backup encryption-key set my-firewall

backup encryption-key remove

Remove a device-specific encryption key override. The device will revert to using the organization-level encryption key.

Terminal window
ndcli backup encryption-key remove [device]

Arguments

ArgumentRequiredDescription
deviceYesDevice name

Examples

Terminal window
ndcli backup encryption-key remove my-firewall