2023-09-20 21:28:43 +02:00
2023-04-28 21:37:39 +02:00
2023-09-20 21:28:43 +02:00
2023-04-28 21:37:39 +02:00
2023-09-20 21:28:43 +02:00
2023-04-28 20:04:23 +02:00
2023-04-28 21:38:34 +02:00

backupsidecar

Backup sidecar that automatically creates backups of one PVC and saves it to another PVC via restic

Function

A cronjob inside the container runs in the configured interval creating the backup and purging old backups. A notification is sent to gotify on completion of the backup or on error of either the backup or purge.

Environment Variables

ENV Variable Required Description Example Value
INTERVAL yes cronjob interval string 15 14 * * *
RESTIC_REPOSITORY yes path of the restic repository /mnt/backups/gitea
SOURCEDIR yes path of the path to backup /mnt/toBackup/
KEEPLAST yes number of increments to keep (keep in mind that the number of backups to keep correlates with the interval in which they are created) 10
RESTIC_PASSWORD yes password for the restic repository ******
RUNONSTART no set to true to force a backup at the start of the container true
GOTIFYHOST yes URL of the gotify server (without trailing slash) https://gotify.example.com
GOTIFYTOKEN yes gotify app token ******
GOTIFYTOPIC yes gotify topic to include in the notification gotify
Description
Backup sidecar that automatically creates backups of one PVC and saves it to another PVC via restic
Readme GPL-3.0 155 KiB
Languages
Shell 96.1%
Dockerfile 3.9%