Backing up your Database
Each database has unique backup requirements; Cloud allows you to define a backup strategy for your database depending on your needs.
Using pgBackRest for Backups
pgBackRest is a reliable backup provider for large databases and enterprise-level applications. pgBackRest can perform ad hoc backups, archive WAL, and perform custom backups that support a wide variety of scenarios.
pgBackRest backups cannot be downloaded, and can currently only be used to restore data to the same database from which the backup was taken.
When you create a database using pgBackRest as your backup provider, a backup repository is initialized using the provided Backup Store on each configured node; that repository is then utilized by pgBackRest to store data for each node. Backup repositories enable the re-use of Backup Stores across multiple databases, with paths being used to keep data separate. These paths are configured to ensure no collision of data occurs:
/databases/<database_id>/<backup_repository_id>/<node_name>
When you perform a restore with the pgBackRest repository, a new backup repository is established for the database across all nodes. The newly restored database does not overwrite any existing backup data, ensuring you can attempt a fresh restore from your original backup if needed.
Customizing Backup Details for pgBackRest
If you use pgBackRest as the backup provider for your database, you can edit the backup configuration details or define additional backup configurations for use by your databases. Any changes to the backup configuration must be performed before the database is deployed.
- To open the
Edit Backup Configurationdialog and edit the backup configuration, select the pencil icon in the upper-right corner of the backup details dialog. - To open the
Add Backup Configurationdialog and define a new backup configuration, select the+ New Configurationbutton.

Select options on the Add or Edit dialog to customize your backup and
retention policy:
- Specify a node where this configuration will apply, or choose
All nodesto apply this configuration to any nodes in the database where a node-specific configuration is not provided.
A default backup configuration is provided that includes schedules that
describe a once-daily full backup and an hourly incremental backup; you can
use options in the Backup Schedules section to add new schedules and
delete from existing schedules to refine a backup strategy that suits your
workload:
- To remove a schedule from the configuration, select the
Xto the right of a schedule. - To define a new schedule, provide a user-friendly identifier for a new
schedule in the
IDfield. -
Select a
Backup Typefor the new schedule; choose:Fullto schedule a complete backup of the specified nodes.Incrementalto backup modifications to the database since the last backup of any type (whether full, differential, or incremental).Differentialto backup changes to the database since the last full backup.
-
Provide a Cron expression that details the times and days that backups will be taken in the
Frequencyfield.
When you've defined the schedule, click the + icon to the right of the
schedule definition. This will open another set of fields where you can add
another schedule if desired.
Use the Repository Storage field to identify where backups will be stored:
- Choose
Backup Storeto select a pre-configured backup store from the drop-down in theBackup Storefield. - Choose
Custom Repositoryto specify details of a custom storage location for backups on your Cloud Provider. If you choose to use a custom repository definition, you will be required to add provider-specific information for your Cloud storage, and ensure that your cluster has the correct IAM permissions to read and write to the storage.
Use the Repository Retention selectors to specify how many backups you
would like to retain in storage:
- Use the
Typeselector to indicate if you would like to measure how long a backup is stored by length oftimeor backupcount. - Use the
Number of days/Number of full backupsindicators to specify the storage retention. - Optionally, provide a user-friendly identifier for the configuration in
the
IDfield.
Select the Save Configuration button when you've finished providing
backup configuration details.
Warning
Incremental and differential backups will be retained only as long as the full backup that provides their baseline.
Taking a Backup
To take a database backup, select Backup from the drop-down Actions
menu in the upper-right corner of the Backups dialog.

When the Backup Database popup opens:
- Optionally, specify a
Backup Nameto identify the backup. - Use the
Target Nodesdrop-down to select one or more nodes to be included in the backup. -
Specify the type of backup in the
Backup Typefield. Choose:Fullto do a complete backup of the selected database and nodes.Incrementalto backup only those items that have changed since the last backup.Differentialto backup any items that have changed since the last Full backup.
Use the Reset icon to clear the fields, or select the Backup Database
button to start the backup.