Initial import
This commit is contained in:
commit
474bcd21d1
2 changed files with 38 additions and 0 deletions
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
from debian:stretch
|
||||||
|
|
||||||
|
ARG SERVER_NAME
|
||||||
|
ARG CLIENT_NAME
|
||||||
|
ARG CLIENT_KEY
|
||||||
|
|
||||||
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y mktemp wget
|
||||||
|
|
||||||
|
RUN TF=`mktemp` &&\
|
||||||
|
wget "https://hndl.urbackup.org/Client/latest/update/UrBackupUpdateLinux.sh" -O $TF &&\
|
||||||
|
sh $TF &&\
|
||||||
|
rm $TF &&\
|
||||||
|
urbackupclientctl wait-for-backend &&\
|
||||||
|
urbackupclientctl set-settings -k internet_mode_enabled -v true -k internet_server -v ${SERVER_NAME} -k internet_server_port -v 55415 -k computername -v "${CLIENT_NAME}" -k internet_authkey -v ${CLIENT_KEY} &&\
|
||||||
|
urbackupclientctl add-backupdir --path /backup
|
||||||
|
|
||||||
|
RUN ( [ ! -e /etc/default/urbackupclient ] || sed -i 's/INTERNET_ONLY=false/INTERNET_ONLY=true/' /etc/default/urbackupclient ) &&\
|
||||||
|
( [ ! -e /etc/default/urbackupclient ] || sed -i 's/LOGLEVEL=warn/LOGLEVEL=info/' /etc/default/urbackupclient ) &&\
|
||||||
|
( [ ! -e /etc/default/urbackupclient ] || sed -i 's/RESTORE=disabled/RESTORE=server-confirms/' /etc/default/urbackupclient )
|
||||||
|
|
||||||
|
EXPOSE 35621/TCP 35622/UDP 35623/TCP
|
||||||
|
|
||||||
|
CMD ["urbackupclientbackend", "--config", "/etc/default/urbackupclient"]
|
15
README.md
Normal file
15
README.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# UrBackup Client (internet only)
|
||||||
|
|
||||||
|
These are my Docker image source files for a internet-only UrBackup client.
|
||||||
|
|
||||||
|
## Running
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run \
|
||||||
|
-p 35621:35621 -p 35622:35622 -p 35623:35623 \
|
||||||
|
-v /path/to/data:/backup/name:ro \
|
||||||
|
-e SERVER_NAME=<UrBackup server name/ip> \
|
||||||
|
-e CLIENT_NAME=<this client's name> \
|
||||||
|
-e CLIENT_KEY=<this client's auth key>
|
||||||
|
mandlm/urbackup-internet-client
|
||||||
|
```
|
Loading…
Reference in a new issue