mirror of
https://github.com/edv-pi/pbs-client-docker.git
synced 2025-04-20 07:52:56 +02:00
got mounting working, added needed params to exmaple docker-compose
All checks were successful
Build And Test / build (push) Successful in 42s
All checks were successful
Build And Test / build (push) Successful in 42s
This commit is contained in:
parent
fa3f93b1eb
commit
31286b4b71
@ -11,8 +11,17 @@ services:
|
|||||||
- /run:exec
|
- /run:exec
|
||||||
volumes:
|
volumes:
|
||||||
- ./pbsconfig/:/root/.config/proxmox-backup/
|
- ./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/test1:/backups/test1:ro
|
||||||
- ./backups/test2:/backups/test2:ro
|
- ./backups/test2:/backups/test2:ro
|
||||||
- ./backups/test3:/backups/test3: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
|
@ -60,8 +60,7 @@ if [[ "$selection" -ge 1 && "$selection" -le "${#backups[@]}" ]]; then
|
|||||||
echo "DEBUG: $MOUNTCMD"
|
echo "DEBUG: $MOUNTCMD"
|
||||||
MOUNTCMD+=" /restore"
|
MOUNTCMD+=" /restore"
|
||||||
$(${MOUNTCMD})
|
$(${MOUNTCMD})
|
||||||
read -p "Enter command to test: " debugcmd
|
echo "Dont forget to unmount when finished (just umount /path/on/the/host i.e. /restore)"
|
||||||
$(${debugcmd})
|
|
||||||
else
|
else
|
||||||
echo "Ungültige Auswahl. Abbruch."
|
echo "Ungültige Auswahl. Abbruch."
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user