Last active
September 9, 2023 11:53
-
-
Save Jabb0/81f9a3153941ffd2c3998c0954bad6d7 to your computer and use it in GitHub Desktop.
Dockerized Borgbackup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2.1" | |
services: | |
server: | |
image: borgbackup:latest | |
hostname: borgbackupserver | |
environment: | |
# Used because of file system permissions of mounted storage | |
- PUID=<UID> | |
- PGID=<GID> | |
# SSH username | |
- USER_NAME=borgbackup | |
- TZ=Europe/Berlin | |
# public key that is allowed. Multiple possible. See linuxserver/openssh-server | |
- PUBLIC_KEY=<SSH pub key> # e.g. ssh-rsa ABCDEF... | |
- SUDO_ACCESS=false #optional | |
- PASSWORD_ACCESS=false #optional | |
ports: | |
- 3333:3333 # Port you like | |
restart: unless-stopped | |
volumes: | |
# Where to store the backups | |
- "/volume1/BorgBackups:/mounted_backups:rw" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM linuxserver/openssh-server:latest | |
RUN apk add borgbackup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment