horaceworblehat/borg-server

By horaceworblehat

Updated about 1 month ago

A dockerized Borg Backup server. GitHub: https://github.com/AnotherStranger/docker-borg-backup

Image
2

100K+

horaceworblehat/borg-server repository overview

docker-borg-backup

A dockerized Borg Backup server. For more information about Borg Backup, an excellent de-duplicating backup, refer to: https://www.borgbackup.org/

Check out the GitHub Repo for this Image: https://github.com/AnotherStranger/docker-borg-backup/

Usage

docker run \
        -e BORG_AUTHORIZED_KEYS=<ssh_authorized_key> \
        -e BORG_UID=<uid> \
        -e BORG_GID=<gid> \
        -v <borg_volume>:/var/backups/borg horaceworblehat/borg-server

Alternatively, use the Docker orchestrator of your choice.

Caution: Do NOT forget to mount a volume as /home/borg/backups/ to host the backups. Otherwise, your backups will vanish into thin air when you update the Borg container.

To persist the container's SSH host keys across container updates, mount a volume to /var/lib/docker-borg.

Supported Architectures

This image is available for the amd64, arm64, ppc64le, and s390x architectures.

Environment variables

VariableDescriptionExample
BORG_AUTHORIZED_KEYSPublic ssh keys for backups. Required.<key-one>\n<key-two>
BORG_UIDUID for the backup user.1000
BORG_GIDGID for the backup user.1000
BORG_SERVE_ADDITIONAL_ARGSAdditional CMD args to borg serve--append-only

License

The files contained in this Git repository are licensed under the following license. This license explicitly does not cover the Borg Backup and Ubuntu software packaged when running the Docker build. For these components, separate licenses apply that you can find at:

Copyright 2023 André Büsgen

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Tag summary

Content type

Image

Digest

sha256:1f1b3404e

Size

35.8 MB

Last updated

about 1 month ago

docker pull horaceworblehat/borg-server:sha-ec2a8a5b4b825efcc98e8938b8b81045b1ad8a3e