Nextcloud AIO v11.2.1 running in a Proxmox LXC via Docker with
sudo docker run --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 8080:8080 --env APACHE_PORT=11000 --env APACHE_IP_BINDING=0.0.0.0 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config --volume /var/run/docker.sock:/var/run/docker.sock:ro nextcloud/all-in-one:latest
I want to set up Borg backups to get automatic updates. I want to store it to my NAS.
Mount point on both Proxmox host and the LXC at /mnt/nc-backups
like this in the .conf file:
mp0: /mnt/nc-backups,mp=/mnt/nc-backups
The folder is writable from both the host and the LXC. I set this path in the AIO GUI as a Local Backup Location. Backup fails with:
2025-07-07T10:49:24.760776294Z mkdir: can't create directory '/mnt/borgbackup/borg': Permission denied
2025-07-07T10:49:25.566506973Z Repository /mnt/borgbackup/borg does not exist.
2025-07-07T10:49:25.600153684Z Initializing repository...
2025-07-07T10:49:26.105452004Z using builtin fallback logging configuration
2025-07-07T10:49:26.297343438Z 33 self tests completed in 0.19 seconds
2025-07-07T10:49:26.304938765Z Local Exception
2025-07-07T10:49:26.304959312Z Traceback (most recent call last):
2025-07-07T10:49:26.304962361Z File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 5391, in main
2025-07-07T10:49:26.304964923Z exit_code = archiver.run(args)
2025-07-07T10:49:26.304967167Z ^^^^^^^^^^^^^^^^^^
2025-07-07T10:49:26.304969349Z File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 5309, in run
2025-07-07T10:49:26.304971885Z rc = func(args)
2025-07-07T10:49:26.304974077Z ^^^^^^^^^^
2025-07-07T10:49:26.304976255Z File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 176, in wrapper
2025-07-07T10:49:26.305002160Z with repository:
2025-07-07T10:49:26.305004512Z ^^^^^^^^^^
2025-07-07T10:49:26.305006660Z File "/usr/lib/python3.12/site-packages/borg/repository.py", line 215, in __enter__
2025-07-07T10:49:26.305008972Z self.create(self.path)
2025-07-07T10:49:26.305011154Z File "/usr/lib/python3.12/site-packages/borg/repository.py", line 306, in create
2025-07-07T10:49:26.305013506Z os.mkdir(path)
2025-07-07T10:49:26.305015667Z PermissionError: [Errno 13] Permission denied: '/mnt/borgbackup/borg'
2025-07-07T10:49:26.305017898Z
2025-07-07T10:49:26.305020089Z Platform: Linux 437b3cb87156 6.8.12-11-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-11 (2025-05-22T09:39Z) x86_64
2025-07-07T10:49:26.305022388Z Linux: Unknown Linux
2025-07-07T10:49:26.305024576Z Borg: 1.4.0 Python: CPython 3.12.11 msgpack: 1.0.8 fuse: llfuse 1.5.1 [pyfuse3,llfuse]
2025-07-07T10:49:26.305026815Z PID: 35 CWD: /
2025-07-07T10:49:26.305028989Z sys.argv: ['/usr/bin/borg', 'init', '--debug', '--encryption=repokey-blake2']
2025-07-07T10:49:26.305031283Z SSH_ORIGINAL_COMMAND: None
2025-07-07T10:49:26.305033447Z
2025-07-07T10:49:26.339539953Z Could not initialize borg repository.
Any tips? Thanks!