Borgmatic¶
borgmatic is simple, configuration-driven backup software for servers and workstations. Protect your files with client-side encryption. Backup your databases too. Monitor it all with integrated third-party services.
This chart is not maintained by the upstream project and any issues with the chart should be raised here
Source Code¶
- https://projects.torsion.org/borgmatic-collective/borgmatic
- https://github.com/borgmatic-collective/docker-borgmatic
Requirements¶
Kubernetes: >=1.21.0-0
Dependencies¶
Repository | Name | Version |
---|---|---|
https://bjw-s.github.io/helm-charts | common | 1.5.1 |
Installing the Chart¶
To install the chart with the release name borgmatic
OCI (Recommended)¶
Traditional¶
helm repo add gabe565 https://charts.gabe565.com
helm repo update
helm install borgmatic gabe565/borgmatic
Uninstalling the Chart¶
To uninstall the borgmatic
deployment
The command removes all the Kubernetes components associated with the chart including persistent volumes and deletes the release.
Configuration¶
Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the bjw-s common library.
Specify each parameter using the --set key=value[,key=value]
argument to helm install
.
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
Custom configuration¶
Deploy as a CronJob¶
If you prefer to use a CronJob instead of a Deployment, set the following values:
First Time Setup¶
-
After initial chart installation, you will need to initialize the Borg repository:
-
Create an initial backup to ensure Borgmatic is configured correctly:
-
Ensure you have stored the passphrase externally to prevent data loss.
Values¶
Important: When deploying an application Helm chart you can add more values from the bjw-s common library chart here
Key | Type | Default | Description |
---|---|---|---|
configMaps.config | object | See values.yaml | Configure Borgmatic container under this key. |
configMaps.config.data."config.yaml" | string | See values.yaml | Borgmatic config. [ref] |
configMaps.config.data."crontab.txt" | string | "0 1 * * * PATH=$PATH:/usr/bin /usr/local/bin/borgmatic --stats -v 0 2>&1" | Crontab |
controller.cronjob.backoffLimit | int | 0 | Only used when controller.type: cronjob . Sets the CronJob backoffLimit. |
controller.cronjob.schedule | string | "0 * * * *" | Only used when controller.type: cronjob . Sets the backup CronJob time. |
controller.type | string | "deployment" | Set the controller type. Valid options are deployment or cronjob . |
env | object | See values.yaml | environment variables. [ref] |
env.BORG_HOST_ID | string | Deployment namespace | Borg host ID used in archive names |
image.pullPolicy | string | "IfNotPresent" | image pull policy |
image.repository | string | "ghcr.io/borgmatic-collective/borgmatic" | image repository |
image.tag | string | "1.9.3" | image tag |
persistence.data | object | See values.yaml | Configure persistence settings for the chart under this key. |
persistence.ssh | object | See values.yaml | Configure SSH credentials for the chart under this key. |
Autogenerated from chart metadata using helm-docs