I seem to be having a permissions issue -- all files/folders on the share I use for the data storage need to have UID / GID of 34 / 34 else I get permissions errors when I back up.
On the above example, where I manually chmodded the directory for VM3007 to nobody/users, the backup fails with
ERROR: Backup of VM 3007 failed - VM 3007 qmp command 'backup' failed - backup connect failed: command error: Permission denied (os error 13)
This does not impede the functionality of PBS itself, however trying to access these files from other containers (e.g. duplicati) to do a backup means the files are not readable.
I've tried adding PUID / PGID options to the container, doesn't seem to help. Is there a way to make PBS run as nobody/users?
docker run
-d
--name='proxmox-backup-server'
--net='host'
-e TZ="Europe/Berlin"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="unraid"
-e HOST_CONTAINERNAME="proxmox-backup-server"
-e 'TZ'='Europe/Zurich'
-e 'PUID'='99'
-e 'PGID'='100'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.webui='https://[IP]:[PORT:8007]'
-l net.unraid.docker.icon='https://raw.githubusercontent.com/devzwf/unraid-docker-templates/main/images/pbs-logo.jpg'
-v '/mnt/user/appdata/pbs/etc':'/etc/proxmox-backup':'rw'
-v '/mnt/user/appdata/pbs/logs':'/var/log/proxmox-backup':'rw'
-v '/mnt/user/appdata/pbs/lib':'/var/lib/proxmox-backup':'rw'
-v '/mnt/user/PBS/':'/backups':'rw'
--restart unless-stopped
--memory=2g
--mount type=tmpfs,destination=/run 'ayufan/proxmox-backup-server:v2.3.2'
Any help is appreciated.