https://github.com/bebehei/borgbackup-docker
borgbackup server inside a dockercontainer
https://github.com/bebehei/borgbackup-docker
Last synced: 11 months ago
JSON representation
borgbackup server inside a dockercontainer
- Host: GitHub
- URL: https://github.com/bebehei/borgbackup-docker
- Owner: bebehei
- Created: 2017-06-01T19:05:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-16T17:00:45.000Z (over 8 years ago)
- Last Synced: 2025-06-21T05:31:11.847Z (12 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# borgbackup server docker image
minimalistic docker image to contain a borg server
## running
docker run --rm \
-v $PWD/data:/home \
-v $PWD/ssh:/etc/ssh \
-p 22:22 \
bebehei/borg
## User management
**root login is not enabled**
Create a new folder in your home volume manually and chmod the folder to the UID and GID. Also add an SSH-Key to your user.
### Example
To add a user with the name `backup` and the UID/GID 1000. In this case, the file `id_rsa.pub` contains the pubkey and the data-folder is the `/home`-volume.
mkdir -p data/backup/.ssh
cp id_rsa.pub data/backup/.ssh/authorized_keys
chown -R 1000:1000 data/backup
## Volumes
- Volume `/home/`
- Contains the data for different users
- Volume `/etc/ssh`
- Contains the keys of sshd. Mount it to have them persisted.