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.

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

List backup status for all devices in the organization.

Terminal window
ndcli backup status [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)
Terminal window
ndcli backup status
ndcli backup status --enabled-only
ndcli backup status --status FAILED
ndcli backup status -f json

Show backup status for a specific device.

Terminal window
ndcli backup show [device]
ArgumentRequiredDescription
deviceYesDevice name
Terminal window
ndcli backup show my-firewall
ndcli backup show my-firewall -f json

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]
ArgumentRequiredDescription
deviceYesDevice name
Terminal window
ndcli backup enable my-firewall

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

Terminal window
ndcli backup disable [device]
ArgumentRequiredDescription
deviceYesDevice name
Terminal window
ndcli backup disable my-firewall

Show the current organization-level backup configuration.

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

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]
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)
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 * * *"

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

Terminal window
ndcli backup config enable
Terminal window
ndcli backup config enable

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

Terminal window
ndcli backup config disable
Terminal window
ndcli backup config disable

Delete the organization-level backup configuration entirely.

Terminal window
ndcli backup config delete
Terminal window
ndcli backup config delete

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
Terminal window
ndcli backup config test

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

Terminal window
ndcli backup encryption-key set [device]
ArgumentRequiredDescription
deviceYesDevice name
Terminal window
ndcli backup encryption-key set my-firewall

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]
ArgumentRequiredDescription
deviceYesDevice name
Terminal window
ndcli backup encryption-key remove my-firewall