Skip to content

oskapt/docker-borgmatic-container

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Borgmatic Docker container

Borg and borgmatic in an Alpine container for your backup needs.

To see which version of borg this container is using, check this page: https://pkgs.alpinelinux.org/packages?name=borgbackup and choose the highest vx.x available (i.e. not edge). Or run this container with docker pull monachus/borgmatic && docker run --rm monachus/borgmatic borg --version.

Docker image tags follow the borgmatic version, with latest corresponding to the master branch of the repository.

Usage

Typically, you'd want to use this image as the base image for your backup container and add a volume for your ssh keys, your known_hosts file, and you backup directories.

FROM monachus/borgmatic
VOLUME /data
VOLUME /root/.ssh
VOLUME /borgmatic
CMD ["-c", "/borgmatic/config.yaml"]

You would then run it with docker run --rm -v data_volume:/data:ro -v ssh_volume:/root/.ssh:ro -v borgmatic_config:/borgmatic:ro monachus/borgmatic.

The ssh_volume should contain the ssh keys to connect to the remote borg repo, and a known_hosts file to avoid the interactive message whether to accept the new ssh key on connecting to a remote host.

The image uses an entrypoint, so runtime command args are passed directly to borgmatic:

docker run --rm monachus/borgmatic --help

If the first argument does not start with a -, then it is called as an executable:

docker run --rm monachus/borgmatic borg --version

Issues

Please open an issue describing the problem or requested feature. PRs are welcome.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 74.6%
  • Shell 25.4%