Hi
I tried to backup an LXC via suspend (via snapshot is working fine):
I created a new directory /root/temp and added this to /etc/vzdump.conf.
The backup fails with this output:
Can someone point me how to fix the permission denied? I have created the temp via root user login.
drwxr-xr-x 2 root root 4096 Feb 3 10:00 temp
Thx in advance!
I tried to backup an LXC via suspend (via snapshot is working fine):
I created a new directory /root/temp and added this to /etc/vzdump.conf.
The backup fails with this output:
Code:
INFO: starting new backup job: vzdump 111 --node pve2 --mode suspend --compress zstd --storage qnap2 --notes-template test --remove 0
INFO: Starting Backup of VM 111 (lxc)
INFO: Backup started at 2023-02-03 10:00:08
INFO: status = running
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: UptimeKuma
INFO: including mount point rootfs ('/') in backup
INFO: starting first sync /proc/806225/root/ to /root/temp/vzdumptmp898016_111/
INFO: first sync finished - transferred 1.33G bytes in 13s
INFO: suspending guest
INFO: starting final sync /proc/806225/root/ to /root/temp/vzdumptmp898016_111/
INFO: final sync finished - transferred 4.17M bytes in 1s
INFO: resuming guest
INFO: guest is online again after 1 seconds
INFO: creating vzdump archive '/mnt/pve/qnap2/dump/vzdump-lxc-111-2023_02_03-10_00_08.tar.zst'
INFO: tar: /root/temp/vzdumptmp898016_111/: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
ERROR: Backup of VM 111 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- 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=/root/temp/vzdumptmp898016_111/' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/root/temp/vzdumptmp898016_111/' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' . | zstd --rsyncable '--threads=1' >/mnt/pve/qnap2/dump/vzdump-lxc-111-2023_02_03-10_00_08.tar.dat' failed: exit code 2
INFO: Failed at 2023-02-03 10:00:23
INFO: Backup job finished with errors
TASK ERROR: job errors
Can someone point me how to fix the permission denied? I have created the temp via root user login.
drwxr-xr-x 2 root root 4096 Feb 3 10:00 temp
Thx in advance!
Last edited: