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

FlagDefaultDescription
--connection-uri-fileRead the database connection string from this file (- for standard input)
--engineDatabase engine: postgres, mongodb
--environmentEnvironment: prod, staging, dev, test
--nameName shown in lists
--regioneu-central-1Region the backups are processed in: eu-central-1

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

See also

On this page