CLI reference
norcube backup datasources create
Add a database to back up
Not verified yet
Adds a data source: a database Norcube Backup backs up. Give its connection string with --connection-uri-file (a file, - for standard input), never on the command line, so it stays out of shell history; it is stored encrypted and never shown again. A role that can read every table is enough for backups.
Nothing is backed up until a policy is attached
(norcube backup policies attach).
Usage
norcube backup datasources create [flags]Examples
norcube backup datasources create --name prod-db --engine postgres --environment prod --connection-uri-file db.uri
printenv DATABASE_URL | norcube backup datasources create --name prod-db --engine postgres --environment prod --connection-uri-file -Flags
| Flag | Default | Description |
|---|---|---|
--connection-uri-file | Read the database connection string from this file (- for standard input) | |
--engine | Database engine: postgres, mongodb | |
--environment | Environment: prod, staging, dev, test | |
--name | Name shown in lists | |
--region | eu-central-1 | Region the backups are processed in: eu-central-1 |
Every command also takes the global flags: --profile, --org, -o, --query, --debug and more.
See also
norcube backup datasources: Manage Norcube Backup data sources