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 jobIdFlags
| Flag | Default | Description |
|---|---|---|
-d, --datasource | Data source to back up (id) | |
--policy | Attached backup policy to use (id; default: the highest-priority enabled one) | |
--wait | Wait until the backup finishes (Ctrl-C stops waiting, not the backup) | |
--wait-timeout | 2h0m0s | Give 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
norcube backup jobs: Run backups, list backup jobs and download their backups