You are looking at the documentation of a prior release. To read the documentation of the latest release, please visit here.
This tutorial will give you an overview of how you can configure Stash auto-backup of the databases and the available configurable options for database auto-backup.
To configure auto-backup for a database, you have to follow the following steps:
BackupBlueprint with the template for
BackupConfiguration. Use the appropriate
Task in the
If you are using KubeDB to manage your databases, you can add the annotations to your database object. KubeDB will automatically pass those annotations to the respective
If you are not managing your database using KubeDB, you have to add the annotation in the respective
AppBinding that you have created for your database.
The following auto-backup annotations are available for the databases:
BackupBlueprint name that holds the template for
BackupConfiguration in the following annotation:
stash.appscode.com/backup-blueprint: <BackupBlueprint name>
You can also specify multiple BackupBlueprint name separated by comma (
,). For example:
stash.appscode.com/schedule: <Cron Expression>
Task through annotations. Use following format to pass parameters via annotations:
The above parameters will be added in the
spec.task.params section as bellow,
- name: key1
- name: key2
- name: key3
You can find auto-backup examples for the databases here: