From 31286b4b7131a1781a1f74f8ce09e00286b5239d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20M=C3=BCller?= Date: Sun, 19 Jan 2025 03:00:36 +0100 Subject: [PATCH] got mounting working, added needed params to exmaple docker-compose --- docker-compose/docker-compose.yml | 13 +++++++++++-- docker/src/helper_scripts/mount-backup | 3 +-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index 5ce5fb8..61e4cd1 100644 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -11,8 +11,17 @@ services: - /run:exec volumes: - ./pbsconfig/:/root/.config/proxmox-backup/ - # Note - if you want to restore backups make sure to change to read write below. - # See the 'restore-backup' command inside the container. - ./backups/test1:/backups/test1:ro - ./backups/test2:/backups/test2:ro - ./backups/test3:/backups/test3:ro + - type: bind + source: /restore + target: /restore + bind: + propagation: rshared + cap_add: + - SYS_ADMIN + devices: + - /dev/fuse:/dev/fuse + security_opt: + - apparmor:unconfined \ No newline at end of file diff --git a/docker/src/helper_scripts/mount-backup b/docker/src/helper_scripts/mount-backup index ee6fd94..ef86a69 100644 --- a/docker/src/helper_scripts/mount-backup +++ b/docker/src/helper_scripts/mount-backup @@ -60,8 +60,7 @@ if [[ "$selection" -ge 1 && "$selection" -le "${#backups[@]}" ]]; then echo "DEBUG: $MOUNTCMD" MOUNTCMD+=" /restore" $(${MOUNTCMD}) - read -p "Enter command to test: " debugcmd - $(${debugcmd}) + echo "Dont forget to unmount when finished (just umount /path/on/the/host i.e. /restore)" else echo "Ungültige Auswahl. Abbruch." exit 1