This is a very simple container containing restic.
It exists to bolt to another container for purposes of backing up its volumes.
I evaluated stash which would have been perhaps simpler, but it does not support rest api repositories.
There are four environment variables:
The container can be run with a single parameter 'auto', in which
case it will start cron and run every RESTIC_INTERVAL hours. Or, you
can run it with parameters directly to restic (e.g. docker run --rm -it IMAGE snapshots)
The intended use is to backup a Kubernetes pod. Imagine a pod:
apiVersion: v1
kind: Pod
metadata:
name: MyThing
spec:
restartPolicy: Never
volumes:
- name: backup
emptyDir: {}
containers:
- name: MyThing
image: MyImage
volumeMounts:
- name: backup
mountPath: /var/backups/dir
- name: backup
image: cr.agilicus.com/corp-tools/restic-backup
environment:
- RESTIC_PASSWORD: MYPASS
RESTIC_REPOSITORY: https://USER:MYPASS@URL/USER
RESTIC_INTERVAL: 4
RESTIC_HOSTNAME: MyThing
volumeMounts:
- name: backup
mountPath: /var/backups/dir
In this case, we will take a snapshot every 4 hours of /var/backups/dir, which is shared between MyThing and the backup container.
Content type
Image
Digest
sha256:841e8268e…
Size
99.6 MB
Last updated
about 1 year ago
docker pull agilicus/restic-backup