Sign inSign up

epicsoft/borgbackup

By epicsoft

•Updated 6 days ago

Simple BorgBackup Docker Image

Image
Networking
Databases & storage
7

10K+

epicsoft/borgbackup repository overview

⁠Simple BorgBackup Docker Image

This Docker image is managed and kept up to date by epicsoft LLC⁠.

A simple Docker image with BorgBackup⁠ and based on official Alpine image⁠.

⁠Versions

edge based on alpine:edge - build weekly

latest based on alpine:latest - build weekly

3.24 stable based on alpine:3.24 - build weekly

The Docker images use the official Alpine Linux⁠ Docker image as the base image.

Installs the current BorgBackup⁠ version from the Alpine Linux packages⁠ depending on the Apline Linux

⁠Additional Alpine packages

Alpine packages are installed in the current image in the latest version - https://pkgs.alpinelinux.org/packages⁠

  • py3-packaging
  • libffi-dev
  • openssl-dev
  • ca-certificates

⁠Examples

⁠Start container

Displays the version and help from BorgBackup

docker run --rm epicsoft/borgbackup:latest
> borgbackup version 1.4.4
> usage: borg [-V] [-h] [--critical] [--error] [--warning] [--info] [--debug]
> ...
⁠Initialize a repository

After entering the password, the repository is created in the /target directory.

docker run --rm -it --name borg \
  -v /tmp/backup/target:/target \
  -v /tmp/backup/source:/source:ro \
  epicsoft/borgbackup:latest init --encryption=repokey /target
> Enter new passphrase:
> ...
⁠Create a backup

Creates a backup using the passed password and displays the statistics

docker run --rm -it --name borg \
  -e BORG_PASSPHRASE=secret \
  -v /tmp/backup/target:/target \
  -v /tep/backup/source:/source:ro \
  epicsoft/borgbackup:latest create /target::archiveName /source --stats
> ------------------------------------------------------------------------------
> Archive name: archiveName
> Archive fingerprint: db079cc945a5c0f9ae874ee5705f5754298cd024443fdee790dc7cf9b92cae27
> ...
⁠Show backups

Show all backups as a list. This example displays an additional backup.

docker run --rm -it --name borg \
  -e BORG_PASSPHRASE=secret \
  -v /tmp/backup/target:/target \
  -v /tmp/backup/source:/source:ro \
  epicsoft/borgbackup:latest list /target
> Monday                               Wed, 2018-05-23 18:12:30 [09206c98a0d86435169e8d2c6ab40965971dd466998537b12d75b19c455394b1]
> archiveName                          Wed, 2018-05-23 18:14:52 [db079cc945a5c0f9ae874ee5705f5754298cd024443fdee790dc7cf9b92cae27]

⁠License

MIT License see LICENSE⁠

Please note that the MIT license only applies to the files created by epicsoft LLC. Other software may be licensed under other licenses.

Tag summary

Content type

Image

Digest

sha256:73f5e6556…

Size

23.6 MB

Last updated

6 days ago

docker pull epicsoft/borgbackup