Backup schlägt fehl ...

drnicolas

Renowned Member
Dec 8, 2010
185
7
83
Ich habe jetzt schon mehrere erfolglose Versuche gehabt einen Container zu sichern.

Der Container enthält im wesentlichen ein unter Docker laufendes paperless.

Dies ist der Meldungstext der mir leider nichts sagt:

INFO: starting new backup job: vzdump 106 --notes-template '{{guestname}}' --storage hp-nas-nfs --compress zstd --node pve-main --mode snapshot --notification-mode auto --remove 0
INFO: Starting Backup of VM 106 (lxc)
INFO: Backup started at 2024-05-05 18:14:43
INFO: status = running
INFO: CT Name: paperless-NGX
INFO: including mount point rootfs ('/') in backup
INFO: including mount point mp0 ('HDD') in backup
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: paperless-NGX
INFO: including mount point rootfs ('/') in backup
INFO: including mount point mp0 ('HDD') in backup
INFO: temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf
INFO: starting first sync /proc/92853/root/ to /mnt/pve/hp-nas-nfs/dump/vzdump-lxc-106-2024_05_05-18_14_43.tmp
ERROR: Backup of VM 106 failed - command 'rsync --stats -h --numeric-ids -aH --delete --no-whole-file --sparse --one-file-system --relative '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' /proc/92853/root//./ /proc/92853/root//.HDD /mnt/pve/hp-nas-nfs/dump/vzdump-lxc-106-2024_05_05-18_14_43.tmp' failed: exit code 23
INFO: Failed at 2024-05-05 18:54:33
INFO: Backup job finished with errors
INFO: notified via target `mail-to-root`
TASK ERROR: job errors


Kann mir jemand einen Tip geben?
 
Sieht so aus als wenn du Backups auf ein NAS machst. Bei VMs und privilegierten LXCs braucht UID 0 Schreibrechte auf dein NAS. Bei unprivilegierten LXCs brauchen UID 0 + 100000 Schreibrechte.
Also entweder dafür sorgen, dass da auch UID 100000 auf das NAS schreiben kann oder alternativ in deiner /etc/vzdump.conf die Zeile "tmpdir" auskommentieren und auf einen lokalen Ordner verweisen lassen wo UID 0 und 100000 schreiben dürfen (z.B. nach "/tmp" was 777 Rechte hat, wo also jeder alles darf...dann muss dein Root-Dateisystem aber auch genug Platz für das Backup haben um es temporär zu speichern).
 
Last edited: