API Connect Backup Configuration¶
Backup and restore for API Connect subsystems are daily tasks that you have to manage to keep the systems healthy.
API Connect v10 uses Kubernetes operators to backup and restore databases of the subsystems.
Type of the backups are manuel and scheduled.
Manuel backups¶
For the subsystems, custom resources(CR) are used for the backup configuration.
Therefore, you create a backup custom resource(CR) manually.
An example for management subsystem in OpenShift:
- Check the subsystem is healthy in OpenShift:
- Create a backup custom resource(CR) in a backup.yaml file:
- List backups by using OpenShift cli:
Scheduled backups¶
In order to trigger backups whenever you would like to, you create a cron schedule and configure backup configurations
in the management custom resource(CR).
An example for management subsystem in OpenShift:
- Create backup secret in OpenShift to provide credentials that is used in sftp connection:
- Edit management subsystem custom resource(CR).
- Add scheduled backup configuration to management custom resource yaml file:
4) Check the backup location if the scheduled backup configuration works as expected:
Troubleshooting the backup problems¶
- Find the pod name that includes string backrest-shared-repo in OpenShift.
If you are not sure about the namespace, you can use -A option to search for all namespaces.
- Open a remote shell to pod:
- Create a tmp file in /tmp:
- SFTP to sftp server:
- Change directory to the backup location that we configured in custom resource file:
- Transfer tmp file to the sftp server backup location:
Steps to check if you face a problem during sftp connection:¶
-
Check the user has write access to the backup location that you configured.
-
Check if the sftp daemon is running or not on the sftp server.