dependabot[bot] 43a9e73cc9 Bump docker/setup-buildx-action from 2.0.0 to 2.1.0 (#30) | hace 2 años | |
---|---|---|
.github | hace 2 años | |
CHANGELOG.md | hace 3 años | |
Dockerfile | hace 2 años | |
Makefile | hace 3 años | |
README.md | hace 3 años | |
borgbackup-package-log.url | hace 2 años | |
docker-compose.yml | hace 3 años | |
entrypoint.sh | hace 3 años | |
openssh-package-log.url | hace 2 años | |
openssh-release-notes.url | hace 3 años | |
sshd_config | hace 3 años |
Single-user OpenSSH server restricted to BorgBackup backend
$ sudo docker run --name borgbackup_sshd \
-v ssh_host_keys:/etc/ssh/host_keys:rw \
-v /somewhere:/repository:rw \
--tmpfs /home/borg/.ssh:mode=1777,size=16k \
--tmpfs /tmp:mode=1777,size=1M \
-p 2200:2200 \
-e SSH_CLIENT_PUBLIC_KEYS="$(cat ~/.ssh/id_*.pub)" \
-e SSH_CLIENT_PUBLIC_KEYS_APPEND_ONLY="$(cat optional-append-only-keys.pub)" \
--read-only --security-opt=no-new-privileges --cap-drop=ALL \
docker.io/fphammerle/borgbackup-sshd
$ borg init --encryption=editme ssh://borg@127.0.0.1:2200//repository
$ borg create --stats ssh://borg@127.0.0.1:2200//repository::{hostname}-{utcnow} \
~/documents ~/photos ...
sudo docker
may be replaced with podman
.
Pre-built docker images are available at https://hub.docker.com/r/fphammerle/borgbackup-sshd/tags (mirror: https://quay.io/repository/fphammerle/borgbackup-sshd?tab=tags)
Annotation of signed git tags docker/*
contains docker image digests: https://github.com/fphammerle/docker-borgbackup-sshd/tags
Detached signatures of images are available at https://github.com/fphammerle/container-image-sigstore
(exluding automatically built latest
tag).
git clone https://github.com/fphammerle/docker-borgbackup-sshd
docker-compose up --build