Backup von Container

Mansaylon

Well-Known Member
Feb 13, 2012
43
2
48
Zürich
www.elektrofahrer.ch
Hallo Zusammen
Benutzer Proxmox ja schon viele Jahre ;-)
Nun habe ich das 1. Mal einen Server (Nextcloud) in einem Container installiert. Läuft wirklich schnell und benötigt wenig Ressourcen.
Doch kann ich kein Backup davon erstellen.... bekomme folgenden Fehler:

INFO: create storage snapshot 'vzdump'
Logical volume "snap_vm-333-disk-0_vzdump" created.
INFO: creating vzdump archive '/mnt/pve/NAS-Backup/dump/vzdump-lxc-333-2023_06_05-08_03_16.tar.zst'
INFO: tar: /mnt/pve/NAS-Backup/dump/vzdump-lxc-333-2023_06_05-08_03_16.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
INFO: cleanup temporary 'vzdump' snapshot
Logical volume "snap_vm-333-disk-0_vzdump" successfully removed
ERROR: Backup of VM 333 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=/mnt/pve/NAS-Backup/dump/vzdump-lxc-333-2023_06_05-08_03_16.tmp' ./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 --rsyncable '--threads=1' >/mnt/pve/NAS-Backup/dump/vzdump-lxc-333-2023_06_05-08_03_16.tar.dat' failed: exit code 2
INFO: Failed at 2023-06-05 08:03:18
INFO: Backup job finished with errors
TASK ERROR: job errors

Alle anderen VMs werden problemlos regelmässig gesichert.
Habe ich irgend etwas übersehen?

Bye
Mansaylon
 
Hi,
der LXC user braucht die Rechte um das backup am NFS zu schreiben. Entsprechende permissions am NFS share einrichten und das Backup sollte gehen.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!