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