Container image for creating cron-scheduled backups with borg backup based on Alpine Linux.
Toastie f95440f5ef minor corrections | 5 months ago | |
---|---|---|
build | 5 months ago | |
scripts | 5 months ago | |
.env.template | 5 months ago | |
.gitignore | 5 months ago | |
README.md | 5 months ago | |
docker-compose.restore.yml | 5 months ago | |
docker-compose.yml | 5 months ago |
Container image for creating cron-scheduled backups with borg backup based on Alpine Linux.
docker compose build
to build the container image from ./build/Dockerfile
cp .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
docker-compose.yml
. Borg Release Notes should be consulted prior to upgrades.Very important: The following files MUST be stored along with the backup to enable decryption of the backup data
.env
-file file containing the passphrasedocker compose down
docker compose -f docker-compose.yml -f docker-compose.restore.yml run borg bash
borg mount $BORG_REPO <mount_point>
borg umount <mount_point> && exit
.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
borg break-lock /mnt/repository