Portainer Templates logo

Portainer Templates

Duplicacy Duplicacy

Container

Utility Backup

Duplicacy backs up your files to many cloud storages with client-side encryption and the highest level of deduplication

Image details

Pulls: 5k
Architecture: amd64
Image size: 17 MB
User: mediadepot
Created: Jan 22, 2020
Updated: 5 years ago
Status: active

Configuration

Type
Container
Image
mediadepot/duplicacy:latest
Ports
3875/tcp
Volumes
/config : /opt/mediadepot/apps/duplicacy/config/logs : /opt/mediadepot/apps/duplicacy/logs/cache : /opt/mediadepot/apps/duplicacy/cache/source/apps : /opt/mediadepot/apps//source/storage : /media/storage/
Env vars
TZ=America/Los_Angeles
Labels
traefik.enable=truetraefik.http.services.duplicacy.loadbalancer.server.port=3875traefik.http.routers.duplicacy.entrypoints=websecuretraefik.http.routers.duplicacy.tls.certresolver=mydnschallenge

Template by mediadepot

Standalone Install

Select an install method, to see config/commands for deploying Duplicacy

Installation method

Install on Portainer

Import all app templates into your Portainer instance, for easy 1-click deploys

  1. Ensure both Docker and Portainer are installed, and up-to-date
  2. Log into your Portainer web UI
  3. Under Settings → App Templates, paste the below URL
  4. Head to Home → App Templates, and the list of apps will show up
  5. Select Duplicacy, fill in any config options, and hit Deploy

Template Import URL

https://raw.githubusercontent.com/Lissy93/portainer-templates/main/templates.json
Show Me demo

More install options in our documentation.

Duplicacy-Web wrapper

This is a wrapper around http://duplicacy.com web GUI.
Two branches are supported:
  • latest: the classic one with the fixed version of duplicacyweb baked into the image. x8664 only.
  • mini: The container downloads and caches the correct binary of duplicacyweb for the host architecture and selected version on start. To update/downgrade to another version change the environment variable and restart the container. Supports x86x64 and arm.

Notes:
  • Arm detection is untested.
  • Download-on-demand approach was already used by duplicacyweb to fetch the updated version of a duplicacy cli engine. The mini container now extends this behavior to duplicacyweb itself making it easy to switch between versions at your cadence.

Volumes

/config -- is where configuration data will be stored. Should be backed up.
/logs -- logs will go there.
/cache -- transient and temporary files will be stored here. Can be safely deleted.

Environment variables

Common variables

USR_ID and GRP_ID: User and group ID under which the duplicacyweb will be running.
TZ: time zone. Refer to https://en.wikipedia.org/wiki/List
oftzdatabasetimezones
USR_ID and GRP_ID can be customized. Container will run as that user. By default user 0 (root) is used.

:mini only

DUPLICACY_WEB_VERSION: Specifies version of duplicacyweb to fetch and use.
To apply the changes restart the container. This makes the :mini version behave more like a thin adapter layer as opposed to true self-encompassing container.

To run

An example for :mini branch; the duplicacy
web version is selectable via environment variable: ``` bash docker run --name duplicacy-web-docker-container \ --hostname duplicacy-web-docker-instance \ --publish 3875:3875/tcp \ --env USR_ID=$(id -u) \ --env GRP_ID=$(id -g) \ --env TZ="America/Los_Angeles" \ --env DUPLICACY_WEB_VERSION="1.4.1" \ --volume ~/Library/Duplicacy:/config \ --volume ~/Library/Logs/Duplicacy/:/logs \ --volume ~/Library/Caches/Duplicacy:/cache \ --volume ~:/backuproot:ro \ saspus/duplicacy-web:mini
An example for `:latest` branch; the duplicacy_web version is baked into the container:
``` bash 
docker run  --name duplicacy-web-docker-container         \
        --hostname duplicacy-web-docker-instance          \
         --publish 3875:3875/tcp                          \
             --env USR_ID=$(id -u)                        \
             --env GRP_ID=$(id -g)                        \
             --env TZ="America/Los_Angeles"               \
          --volume ~/Library/Duplicacy:/config            \
          --volume ~/Library/Logs/Duplicacy/:/logs        \
          --volume ~/Library/Caches/Duplicacy:/cache      \
          --volume ~:/backuproot:ro                       \
                   saspus/duplicacy-web:latest 

Note, it's important to pass hostname, as duplicacy license is requested based on hostname and machine-id provided by dbus. Machine-id will be persisted in the /config directory.

To use

Go to http://hostname:3875

Source

https://bitbucket.org/saspus/duplicacy-web-docker-container

Serve Duplicacy on your own domain behind Caddy, Nginx or Traefik. Fill in your domain and copy the result. It's a starting point, some apps need their own base URL or extra headers set too.

Proxying duplicacy.example.com to http://duplicacy:3875

Add this to your Caddyfile

duplicacy.example.com {
	reverse_proxy http://duplicacy:3875
}

Check the logs first

Nine times out of ten the logs tell you exactly what went wrong.

  • In Portainer, go to Containers, click the container, then Logs. Or run docker logs duplicacy
  • Exit codes help too: 137 means killed, usually out of memory. 126 or 127 means the command inside the image is broken.

Published on a random port

This template exposes 3875/tcp without setting a host port, so Docker picks a random free one on every deploy.

  • Find it in the Ports column of Portainer's container list, or with docker port duplicacy

Permission denied on volumes

If the logs show "permission denied", the app can't write to its data folder on the host.

  • Fix the ownership: sudo chown -R 1000:1000 /opt/mediadepot/apps/duplicacy/config (and the same for the other mapped folders)

Image won't pull

Test the pull directly on the host: docker pull mediadepot/duplicacy:latest

  • "manifest unknown" means the tag no longer exists. This template uses latest, so try pinning a specific version instead.
  • "toomanyrequests" is the Docker Hub rate limit. Log in with docker login to raise it.
  • "no space left on device" means a full disk. Reclaim space with docker system prune

"exec format error"

This means the image was built for a different CPU architecture than your server.

  • This image supports: amd64
  • Check yours with uname -m: x86_64 is amd64, aarch64 is arm64. Raspberry Pi and other ARM boards are the usual culprits.

Raise an issue

Found something which isn't working as it should? Here's how to report it.

A single container

Duplicacy runs as one container, the simplest kind of app here. Just the one image to pull and nothing else wired up alongside it.

The app image

An image is the app packed up ready to go, everything Duplicacy needs bundled into one download. This template pulls mediadepot/duplicacy:latest, which Docker fetches once (about 17 MB) and then starts your own copy from.

Where the image comes from

Docker pulls its images from registries, public libraries of ready-built apps. Duplicacy's comes from Docker Hub, published by mediadepot.

Version tags

The bit after the colon in the image name is the version tag. Here it's latest, which always points at the newest build, so a redeploy can bump you to a newer release without you asking. Pin a specific tag if you would rather stay on one version.

Which machines it runs on

Every image is built for particular CPU types. This one ships for amd64, so it runs on regular x86 PCs and servers, though not ARM boards like a Raspberry Pi.

Ports

A port is the door the app answers on. Here the app exposes a port but leaves the host side blank, so Docker picks a free one for you. It opens:

  • 3875, published on a random host port

Volumes

A volume is where Duplicacy keeps its files so they survive an update or a restart. Without one, anything it saves would sit inside the container and vanish the moment it's recreated. This template mounts:

  • /config from /opt/mediadepot/apps/duplicacy/config on the host
  • /logs from /opt/mediadepot/apps/duplicacy/logs on the host
  • /cache from /opt/mediadepot/apps/duplicacy/cache on the host
  • /source/apps from /opt/mediadepot/apps/ on the host
  • /source/storage from /media/storage/ on the host

Environment variables

Environment variables are the settings you hand over when you deploy, things like a password or a timezone. Duplicacy takes 1 of them, all with defaults you can leave alone or tweak:

  • TZ, defaults to America/Los_Angeles

Networking

Nothing custom is set, so Duplicacy sits on Docker's default bridge network: its own private space that reaches the outside world only through the ports it publishes.

Container name

Once it's deployed, Portainer names the container duplicacy. That's what you'll spot in the containers list and use in commands like docker logs duplicacy.

Labels

Labels are small notes pinned to the container. They don't change how Duplicacy behaves, but other tools read them, most often a reverse proxy like Traefik working out which apps to route where. This template sets:

  • traefik.enable=true
  • traefik.http.services.duplicacy.loadbalancer.server.port=3875
  • traefik.http.routers.duplicacy.entrypoints=websecure
  • traefik.http.routers.duplicacy.tls.certresolver=mydnschallenge

Portainer app templates

Zooming out, this whole page comes from a Portainer app template: a short recipe telling Portainer how to set Duplicacy up. Add the template list to Portainer once, then deploying Duplicacy is a click rather than a wall of config.