CLI reference

norcube backup jobs run

Back up a data source now

Not verified yet

Queues a backup of the data source right away, outside its schedule. It uses the attached policy you name with --policy, or the data source's highest-priority enabled policy.

The backup counts towards your Backup usage like a scheduled one. With --wait the command waits until the job finishes and exits 1 (code job_failed) when it didn't succeed, so a script can stop on a failed backup.

Usage

norcube backup jobs run [flags]

Examples

norcube backup jobs run --datasource 9f8e7d6c-…
norcube backup jobs run -d 9f8e7d6c-… --policy 1a2b3c4d-… --wait
norcube backup jobs run -d 9f8e7d6c-… -o json --query jobId

Flags

FlagDefaultDescription
-d, --datasourceData source to back up (id)
--policyAttached backup policy to use (id; default: the highest-priority enabled one)
--waitWait until the backup finishes (Ctrl-C stops waiting, not the backup)
--wait-timeout2h0m0sGive up waiting after this long (the job keeps running on the server)

Every command also takes the global flags: --profile, --org, -o, --query, --debug and more.

See also

On this page