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:
BackupBlueprintwith the template for
BackupConfiguration. Use the appropriate
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:
BackupBlueprintname that holds the template for
BackupConfigurationin the following annotation:
stash.appscode.com/backup-blueprint: <BackupBlueprint name>
stash.appscode.com/schedule: <Cron Expression>
Taskthrough annotations. Use following format to pass parameters via annotations:
params.stash.appscode.com/key1: value1 params.stash.appscode.com/key2: value2,value3 params.stash.appscode.com/key3: ab=123,bc=234
The above parameters will be added in the
spec.task.params section as bellow,
task: name: postgres-backup-13.1-v1 params: - name: key1 value: value1 - name: key2 value: value3,value3 - name: key3 value: ab=123,bc=234
You can find auto-backup examples for the databases here: