jherve 1 месяц назад
Родитель
Сommit
430b9e6903
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      start.sh

+ 4 - 4
start.sh

@@ -7,18 +7,18 @@ 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} \
+  --replace \
   --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 \
+  -v borg_config:/root/.config/borg \
+  -v borg_cache:/root/.cache/borg \
+  -v borgmatic_state:/root/.local/state/borgmatic \
   -e TZ=Europe/Paris \
   ghcr.io/borgmatic-collective/borgmatic