Container image for creating cron-scheduled backups with borg backup based on Alpine Linux.
|
|
1 year ago | |
|---|---|---|
| build | 1 year ago | |
| scripts | 1 year ago | |
| .env.template | 1 year ago | |
| .gitignore | 1 year ago | |
| README.md | 1 year ago | |
| docker-compose.restore.yml | 1 year ago | |
| docker-compose.yml | 1 year ago |
Container image to create cron scheduled backups using borg backup based on Alpine Linux.
Following files MUST be stored along with the backup to enable encryption of backup data
.env-file which contains the Passphrasedocker compose build to build the container image from ./build/Dockerfilecp .env.template .env and adapt .env (parameters are explained in the template file)docker exec --rm -it borg bash -c "borg init --encryption repokey-blake2"docker-compose up -d/scripts/entry.sh is called during container startup
and installs the cronjob defined in .env variable $CRON/scripts/do-backup.sh which
docker compose downdocker compose -f docker-compose.yml -f docker-compose.restore.yml run borg bashborg mount $BORG_REPO <mount_point>borg umount <mount_point> && exit.
borg break-lock /mnt/repository