Public | Automated Build

Last pushed: 5 months ago
Short Description
This docker container provides urbackup server fronted by Nginx webserver on Ubuntu 16.04.
Full Description

docker_urbackup / urbackup_auto

This docker container provides urbackup server fronted by Nginx webserver on Ubuntu 16.04.

To run the container execute:

docker run --privileged -d --name urbackup --restart=always -p 443:443 -p 55415:55415 -p 35623:35623/udp -v /etc/localtime:/etc/localtime:ro -v /<path>/urbackup/certs:/opt/urbackup/certs -v /<path>/urbackup/log:/opt/urbackup/log -v /<path>/urbackup/BACKUP:/media/BACKUP -v /<path>/urbackup/var:/var/urbackup -e URBACKUP_DOMAIN_NAME=<urbackup.domain.com> ajeeth/urbackup_auto:2.1.18

Setup the following directory structure on Host before running the above command.

/<path>/urbackup/certs
/<path>/urbackup/log
/<path>/urbackup/var
/<path>/urbackup/BACKUP

Add certificate and key named as domain.crt and domain.key to /<path>/urbackup/certs. This will be picked up and used by Nginx webserver. Be sure to match the certificate domain to the URBACKUP_DOMAIN_NAME argument while running the container.

/<path>/urbackup/var contains urbackup database installation, server_ident.pub and server_ident.key files.

/<path>/urbackup/BACKUP is location where that file and image backups are stored. This partition should be sized as per your backup requirements.


Running arbitary urbackupsrv commands

Arbitary commands can be run by passing the command argument to the variable RUNCMD.

Following example passes remove-unknown to urbackupsrv. After execution, docker container exits and is removed.

docker run --privileged --rm --name urbackup2 -v /etc/localtime:/etc/localtime:ro -v /<path>/urbackup/log:/opt/urbackup/log -v /<path>/urbackup/BACKUP:/media/BACKUP -v /<path>/urbackup/var:/var/urbackup -e URBACKUP_DOMAIN_NAME=<urbackup.domain.com> -e RUNCMD=remove-unknown ajeeth/urbackup_auto:2.1.18

docker hub url: https://hub.docker.com/r/ajeeth/urbackup_auto

git hub url: https://github.com/ajeeth/docker_urbackup

Docker Pull Command
Owner
ajeeth
Source Repository

Comments (3)
ripnik
10 months ago

Hi ajeeth; Works like a charm!
but not with <args> :(
like -e RUNCMD='cleanup -a 0%'

Many Thanks for your help!

ajeeth
10 months ago

Hi ripnik

Added a way to run "urbackupsrv remove-unknown". Please try it out and let me know.

Also added iputils-ping & net-tools to container.

ripnik
10 months ago

Hi.
Thanks again! I move to your new repo, but it’s still the same :( How do you run "urbackupsrv remove-unknown" ??

Any advice is welcome.

Btw. Iputils-ping & net-tools are also helpful on the backup server ;)