Sign inSign up

uroni/urbackup-server

By uroni

•Updated 26 days ago

A multiarch docker image for a UrBackup server

Image
96

10M+

uroni/urbackup-server repository overview

⁠Multiarch (amd64/arm64(aarch64)) docker images for UrBackup server.

Pulling the :latest tag should automatically grab the right image for your arch.

Most of the original code is based on the image by Whatang⁠

⁠Running

⁠If you want to use docker run command:

For PGID and PUID please enter the UID/GID of the user who should own the files outside the container.

docker run -d \
                --name urbackup \
                --restart unless-stopped \
                -e PUID=1000 \  
                -e PGID=100  \
                -e TZ=Europe/Berlin \
                -v /path/to/your/backup/folder:/backups \
                -v /path/to/your/database/folder:/var/urbackup \
                --network host \
                uroni/urbackup-server:latest

For BTRFS-Support add --cap-add SYS_ADMIN to the command above

For ZFS support add --device /dev/zfs to the command above

Add -e ZFS_IMAGE=tank/images and -e ZFS_FILES=tank/files to the command above if you want to set the ZFS dataset via an ENV variable instead of mounting /etc/urbackup/dataset*

If you want to externally bind-mount the www-folder add -v /path/to/wwwfolder:/usr/share/urbackup

⁠Or via docker-compose (compatible with stacks in Portainer):

docker-compose.yml

version: '2'

services:
  urbackup:
    image: uroni/urbackup-server:latest
    container_name: urbackup
    restart: unless-stopped
    environment:
      - PUID=1000 # Enter the UID of the user who should own the files here
      - PGID=100  # Enter the GID of the user who should own the files here
      - TZ=Europe/Berlin # Enter your timezone
      # Uncomment the next lines if you want to set the ZFS datasets via ENV variables instead of mounting /etc/urbackup/dataset*
      #- ZFS_IMAGE=tank/images
      #- ZFS_FILES=tank/files
    volumes:
      - /path/to/your/database/folder:/var/urbackup
      - /path/to/your/backup/folder:/backups
      # Uncomment the next line if you want to bind-mount the www-folder
      #- /path/to/wwwfolder:/usr/share/urbackup
    network_mode: "host"
    # Uncomment the following two lines if you're using BTRFS support
    #cap_add:
    #  - SYS_ADMIN
    # Uncomment the following two lines if you're using ZFS support
    #devices:
    #  - /dev/zfs:/dev/zfs
  

After running the container Urbackup should be reachable on the web interface on port :55414

⁠Building locally

Please use the provided build.sh script:

./build.sh

On default the script will build a container for amd64 with the most recent stable version.

To build for other architectures the script accepts following argument: ./build.sh [ARCH] [VERSION]

[ARCH] can be amd64, i386, armhf or arm64; [Version] can be an existing version of UrBackup-server

For example if you want to build an image for version 2.4.10 on armhf use the following command:

./build.sh armhf 2.4.10

Tag summary

Content type

Image

Digest

sha256:3abc48685…

Size

70.8 MB

Last updated

26 days ago

docker pull uroni/urbackup-server