start.sh 716 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. set -eu -o pipefail
  3. HOSTNAME=$(hostname)
  4. CONTAINER_NAME="borgmatic"
  5. # Some of those volumes seem useless, e.g. :
  6. # * the repository (which can be mounted within the container)
  7. # * mounting the data to save on a precise mount point (one could have several..)
  8. podman run \
  9. -h ${HOSTNAME} \
  10. --replace \
  11. --detach \
  12. --name ${CONTAINER_NAME} \
  13. -v /home/:/mnt/home:ro \
  14. -v ./data/repository:/mnt/borg-repository \
  15. -v ./data/borgmatic.d:/etc/borgmatic.d/ \
  16. -v /home/theenglishway/.ssh:/root/.ssh \
  17. -v borg_config:/root/.config/borg \
  18. -v borg_cache:/root/.cache/borg \
  19. -v borgmatic_state:/root/.local/state/borgmatic \
  20. -e TZ=Europe/Paris \
  21. ghcr.io/borgmatic-collective/borgmatic