#!/bin/bash set -eu -o pipefail HOSTNAME=$(hostname) CONTAINER_NAME="borgmatic" # Some of those volumes seem useless, e.g. : # * the repository (which can be mounted within the container) # * the cache / state volumes (which can be managed volumes instead of directories) # * mounting the data to save on a precise mount point (one could have several..) podman run \ -h ${HOSTNAME} \ --detach \ --name ${CONTAINER_NAME} \ -v /home/:/mnt/home:ro \ -v ./data/repository:/mnt/borg-repository \ -v ./data/borgmatic.d:/etc/borgmatic.d/ \ -v ./data/.config/borg:/root/.config/borg \ -v /home/theenglishway/.ssh:/root/.ssh \ -v ./data/.cache/borg:/root/.cache/borg \ -v ./data/.state/borgmatic:/root/.local/state/borgmatic \ -e TZ=Europe/Paris \ ghcr.io/borgmatic-collective/borgmatic