Configuring portal database backups
Configure scheduled database backups of your portal subsystem.
About this task
The developer portal by default takes database backups of itself every 24 hours and stores the last three days of backups in the portal subsystem PVCs (older backups are automatically deleted). These backups are called local backups because they are stored locally rather than on remote backup servers. For disaster recovery, you must configure the portal to create and store backups on a remote server.
Supported remote servers for backup storage are:
- S3 object-store, for example:
- AWS S3.
- IBM Cloud Object Storage.
- Custom S3 storage.
Only password-based authentication is supported for S3, not authentication based on public certificates and private keys. Password-based authentication for S3 requires that you generate an access key and secret.
- SFTP
Supported credentials types:
- Username and password.
- Username and SSH-key. Only OpenSSH keys are supported.1
Important points:
- Portal database backups can be restored in the same environment where they were taken, or in a different environment that has the same network configuration, endpoints, and deployment profile. You cannot restore a portal database backup in a different network environment, form factor, or deployment profile. If you want to move your API Connect deployment to a different form factor or change endpoints, see: Migrating from v10 to v10 on a different form factor.
- Keep your portal's Infrastructure configuration backup up to date with any changes in your portals Kubernetes configuration. If a disaster occurs and you lose your portal subsystem configuration, then you cannot restore your portal database backup without first restoring the config backup.
- Take management database backups at the same time as you take portal database backups. One backup per day is recommended.
- The portal keeps a log of the last 30 days of remote backups that are taken, configured with the
backupRecordDays
property. Configure the retention policy on your remote backup server to match or exceed thebackupRecordDays
value. - To disable scheduled database backups, you must remove the entire
databaseBackup
section from the portal CR. Local backups continue to be taken in all cases.
Note: For OpenShift® users: The steps that are detailed in this topic use the Kubernetes
kubectl
command. On OpenShift, use the equivalent oc
command in its place.Procedure
What to do next
1 PuTTY style keys can be converted to
OpenSSH by using the PuTTY Key Generator (PuTTYgen) application; see https://www.puttygen.com/.