Hi, I'm fairly new to OMV, Docker (compose) and Linux. So sorry in advance if I don't get all the terminology right.
I am currently running Paperless-ngx and duplicati via the Docker compose plugin on Openmediavault 7.7.24-7.
To backup all Paperless files, I use the compose schedule to stop the paperless containers and then run the compose backup feature. The docker backup folder is then backed up to another drive using BorgBackup, which is working fine, because as far as i can tell it is running as root.
I then wanted to do the same using duplicati (running in another container) but duplicati cannot access the redis and postgres folders, because they are not created by the paperless user and instead by the openmediavault-webgui and get assigned the group "root". The reason for me wanting to use duplicati is, that i want to send the backup to my offsite (externally hosted) nextcloud using WebDAV.
This is the docker_backup-folder after the backup has run:
1 = redis, 2 = postgres
(size and dates were removed to make it more readable)
drwxrws---+ 2 root users 0
drwxr-sr-x+ 2 openmediavault-webgui root 1
drwx------+ 19 openmediavault-webgui root 2
drwxr-sr-x+ 4 paperless-ngx users 3
drwxr-sr-x+ 4 paperless-ngx users 4
drwxr-sr-x+ 2 paperless-ngx users 5
drwxrwsr-x+ 2 paperless-ngx users 6
It temporarily worked, when I used (recursive) ACLs on the docker_backup folder, but when the Compose-Backup runs again, it overwrites these settings, breaking the duplicati access. I kind of got around the problem by just running the duplicati-container with PUID=0 PGID=0, instead of the appuser duplicati. But from what I read about docker, running containers with a root user is problematic. I also tried backing up the BorgBackup-Folder, but with essentially the same problem.
I would be grateful for any help or alternative suggestions on how to send this backup to nextcloud, thanks! If you need more information please let me know.