Updated README.md
This commit is contained in:
parent
40f2ee6244
commit
f6f0b5b253
23
README.md
23
README.md
|
|
@ -5,27 +5,6 @@
|
||||||
|
|
||||||
My take on a Borgbackup Server as a Docker container to faciliate the backing up of remote machines using [Borgbackup](https://github.com/borgbackup)
|
My take on a Borgbackup Server as a Docker container to faciliate the backing up of remote machines using [Borgbackup](https://github.com/borgbackup)
|
||||||
|
|
||||||
### Dockerfile
|
|
||||||
```
|
|
||||||
FROM alpine:latest
|
|
||||||
MAINTAINER b3vis
|
|
||||||
#Install Borg & SSH
|
|
||||||
RUN apk add openssh sshfs borgbackup supervisor --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/
|
|
||||||
RUN adduser -D -u 1000 borg && \
|
|
||||||
ssh-keygen -A && \
|
|
||||||
mkdir /backups && \
|
|
||||||
chown borg.borg /backups && \
|
|
||||||
sed -i \
|
|
||||||
-e 's/^#PasswordAuthentication yes$/PasswordAuthentication no/g' \
|
|
||||||
-e 's/^PermitRootLogin without-password$/PermitRootLogin no/g' \
|
|
||||||
/etc/ssh/sshd_config
|
|
||||||
COPY supervisord.conf /etc/supervisord.conf
|
|
||||||
RUN passwd -u borg
|
|
||||||
EXPOSE 22
|
|
||||||
CMD ["/usr/bin/supervisord"]
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
I personally like to split my ssh keys out of the main container to make updates and management easier. To achieve this I create a persistent storage container;
|
I personally like to split my ssh keys out of the main container to make updates and management easier. To achieve this I create a persistent storage container;
|
||||||
|
|
@ -40,7 +19,7 @@ docker create \
|
||||||
--volumes-from borg-keys-storage \
|
--volumes-from borg-keys-storage \
|
||||||
-v path/to/backups:/backups \
|
-v path/to/backups:/backups \
|
||||||
-p 2022:22 \
|
-p 2022:22 \
|
||||||
b3vis/borg-server
|
ghcr.io/b3vis/borg-server
|
||||||
```
|
```
|
||||||
|
|
||||||
### Note
|
### Note
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue