got mounting working, added needed params to exmaple docker-compose
All checks were successful
Build And Test / build (push) Successful in 42s

This commit is contained in:
Tobias Müller 2025-01-19 03:00:36 +01:00
parent fa3f93b1eb
commit 31286b4b71
2 changed files with 12 additions and 4 deletions

View File

@ -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

View File

@ -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