I installed nextcloud into LXC and mapped the data directory to a ZFS dataset
Now when I try to backup LXC via the web GUI I get an error.
I added the directive to the lxc configuration file
but when I run lxc it crashes
Now when I try to backup LXC via the web GUI I get an error.
Code:
INFO: starting new backup job: vzdump 104 --storage backup --node local-pve --compress zstd --notes-template '{{guestname}} zaloha debian 03 104' --remove 0 --notification-mode notification-system --mode stop
INFO: filesystem type on dumpdir is 'zfs' -using /var/tmp/vzdumptmp469930_104 for temporary files
INFO: Starting Backup of VM 104 (lxc)
INFO: Backup started at 2025-11-07 17:35:24
INFO: status = running
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: debian-13-nextcloud
INFO: including mount point rootfs ('/') in backup
INFO: excluding bind mount point mp0 ('/var/www/nextcloud-data') from backup (not a volume)
INFO: stopping virtual guest
INFO: creating vzdump archive '/allpool/backup/dump/vzdump-lxc-104-2025_11_07-17_35_24.tar.zst'
INFO: tar: ./var/www/nextcloud-data: Cannot open: Permission denied
INFO: Total bytes written: 1999779840 (1.9GiB, 92MiB/s)
INFO: tar: Exiting with failure status due to previous errors
INFO: restarting vm
INFO: guest is online again after 24 seconds
ERROR: Backup of VM 104 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:33 -m g:0:100000:33 -m u:33:33:1 -m g:33:33:1 -m u:34:100034:65502 -m g:34:100034:65502 -- tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/var/tmp/vzdumptmp469930_104' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | zstd '--threads=1' >/allpool/backup/dump/vzdump-lxc-104-2025_11_07-17_35_24.tar.dat' failed: exit code 2
INFO: Failed at 2025-11-07 17:35:48
INFO: Backup job finished with errors
INFO: notified via target `mail-to-root`
TASK ERROR: job errors
Code:
/etc/pve/lxc/104.conf
Code:
lxc.conf: lxc.vzdump.exclude-path = /var/www/nextcloud-data/
but when I run lxc it crashes
Code:
vm 104 - unable to parse config: lxc.conf: lxc.vzdump.exclude-path = /var/www/nextcloud-data/