Backing up and restoring for EDB Postgres
The following example explains how to back up and restore EnterpriseDB (EDB) Postgres data with Rook Ceph®.
About this task
postgresql
section of the Netcool® Operations Insight® Custom Record definition.
Section name | Property name | Description | Default value |
---|---|---|---|
postgresql.bootstrap |
enabled |
Use this property to determine whether to bootstrap a new cluster from a preexisting backup. |
false |
postgresql.bootstrap |
clusterName |
This property is the name of the cluster to bootstrap from. The cluster must include an existing
backup that is located in your |
evtmanager-noi-postgres-cluster
|
postgresql.bootstrap |
destinationPath |
This property follows the "s3://${BUCKET_NAME}" format. |
s3://ceph-bkt-18d99a17-38ee-4798-accb-a39077bd1abd |
postgresql.bootstrap |
endpointURL |
This example property uses node port. | http://worker0.detrayer.cp.xyz.com:32252 |
postgresql.bootstrap |
# endpointURL |
If you use a local S3 bucket, the example property is
http://$AWS_HOST:$AWS_PORT . |
http://rook-ceph-rgw-my-store.rook-ceph.svc.8080 |
postgresql.bootstrap.s3Credentials |
secretName |
This property is the name of the secret that contains the relevant S3 credentials. | ceph-bucket |
postgresql.bootstrap.s3Credentials |
keyNameAccessKeyID |
This property is the name of the key in the secret with a value that matches the access key ID. | AWS_ACCESS_KEY_ID |
postgresql.bootstrap.s3Credentials |
keyNameAccessSecretKey |
This property is the name of the key in the secret with a value that matches the access secret key. | AWS_SECRET_ACCESS_KEY |
postgresql.bootstrap.s3Credentials |
keyNameAccessSessionToken |
This optional property is the name of the key in the secret with a value that matches the access session token. | |
postgresql.bootstrap.wal |
walMaxParallel |
This property indicates the number of jobs to use when bootstrapping the cluster. This property has bandwidth implications. | 1 |
postgresql.bootstrap.wal |
encryption |
Use the bucket default encryption. Options are default ,
AES256 , or aws:kms . |
default |
postgresql.bootstrap.wal |
compression |
Options are Each option has implications for speed and size. |
none |
postgresql.backups |
enabled |
Enable or disable backups. |
false |
postgresql.backups |
data |
The following settings refer to the actual data in the database and not the Write-Ahead
Logging (WAL) files:
|
default |
postgresql.backups |
destinationPath |
This property is the S3 bucket name. If you use the Backing up and restoring for EDB Postgres guide, it is the value of the BUCKET_NAME variable. |
"s3://ceph-bkt-18d99a17-38ee-4798-accb-a39077bd1abd" |
postgresql.backups |
endpointURL |
This property is the endpoint URL. If you use the Backing up and restoring for EDB Postgres guide, it is the URL of one of the workers of the cluster that has the S3 bucket hosted on it followed by the external port that is defined in the node port service. |
"http://worker0.destrayer.cp.xyz.com:32252" |
postgresql.backups |
# endpointURL |
This example uses an S3 bucket that is co-located on the same cluster as the Netcool Operations Insight installation. | "http://rook-ceph-rgw-my-store.rook-ceph.svc:8080" #
"http://$AWS_HOST:$AWS_PORT" |
postgresql.backups |
retentionPolicy |
This property indicates how long to store backups. | 12m |
postgresql.backups |
serverName |
This property is the folder name where the backups from the cluster go. If you are bootstrapping from an existing backup, the value that is provided must be distinct
from the value that is provided for the If you are not bootstrapping a cluster from an existing backup, meaning if you are creating a
new Netcool Operations Insight
installation or upgrading to version 1.6.13for the
first time, use the |
restoredCluster |
postgresql.backups.s3credentials |
secretName |
This property is the name of the secret that contains the relevant S3 credentials key. | ceph-bucket |
postgresql.backups.s3credentials |
keyNameAccessKeyID |
This property is the name of the key in the secret that has a value that matches the access ID key. | AWS_ACCESS_KEY_ID |
postgresql.backups.s3credentials |
keyNameAccessSecretKey |
This property is the name of the key in the secret with a value of the access secret key. | AWS_SECRET_ACCESS_KEY |
postgresql.backups.s3credentials |
keyNameAccessSessionToken |
This property is optional and matches the name of the key in the secret with a value of the access session token. | |
postgresql.backups.wal |
encryption |
Use the bucket default encryption with this property. Options are default ,
AES256 , or aws:kms . The bucket must support the encryption mode.
If you are unsure, use default . |
default |
postgresql.backups.wal |
compression |
Options are Each option has implications for speed and size. |
none |
postgresql.backups.wal |
walMaxParallel |
Set this property to the number of jobs to use when backing up the WAL. This property has bandwidth implications. | 1 |
postgresql.backups.endpointCA |
enabled |
Set this property to true to use a custom certificate authority (CA)
certificate. |
false |
postgresql.backups.endpointCA |
name |
This property is the name of the custom CA certificate secret. The secret must include a
key that is named |
|
postgresql.backups.onetimeBackup |
enabled |
Enable the taking of a one-time backup. You need to manually clean these properties up when you uninstall. | true |
postgresql.backups.scheduledBackup |
enabled |
Set this property to determine whether to enable taking scheduled backups. | false |
postgresql.backups.scheduledBackup |
immediate |
Set this property to determine whether to start taking backups immediately. | true |
postgresql.backups.scheduledBackup |
schedule |
This property indicates the schedule for backups. It uses the same syntax as Kubernetes job schedules. |
"0 0 0 * * *" |
postgresql.backups.scheduledBackup |
suspend |
Set this property to determine whether to suspend the taking of scheduled backups. Set this property to |
false |
postgresql.backups.scheduledBackup |
backupOwnerReference |
Use this property for the
|
none |