VE Builtin Backup - How NOT to back up NAS data drive

Fylb

New Member
Mar 26, 2024
4
0
1
Hello,
I have a VE VM running Open Media Vault for NAS software that runs great. I want to back it up but when I fire up the backup job it wants to backup the data drive of the NAS as well as the system drive which results in an unacceptable backup file size. How can I set the backup to backup the VM's system drive and not the data drive? I don't see any settings in the GUI that allow me to do that.

Thanks much,
Phil
 
Hi Phil,

go to your VM, select hardware, double-click the disk you do not wish to backup and remove the checkbox "Backup". This will exclude this disk from the backup.

(The disk you below see is included.)

1728538661017.png

Br,
Richard
 
Hi Richard,
Thanks for the reply. That worked. The backup runs but errors out on a permissions problem. The attached log has the error about mid-way. If you wouldn't mind, I would very much appreciate it if you could look at it and give me a clue?

Thanks,
Phil
 

Attachments

So you are referring to:
INFO: Starting Backup of VM 102 (lxc)
INFO: Backup started at 2024-10-10 12:47:51
INFO: status = running
INFO: CT Name: piVPN
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
Logical volume "snap_vm-102-disk-0_vzdump" created.
INFO: creating vzdump archive '/mnt/pve/Prox_Backup/dump/vzdump-lxc-102-2024_10_10-12_47_51.tar.zst'
INFO: tar: /mnt/pve/Prox_Backup/dump/vzdump-lxc-102-2024_10_10-12_47_51.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
INFO: cleanup temporary 'vzdump' snapshot
Logical volume "snap_vm-102-disk-0_vzdump" successfully removed.
ERROR: Backup of VM 102 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/Prox_Backup/dump/vzdump-lxc-102-2024_10_10-12_47_51.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 '--threads=1' >/mnt/pve/Prox_Backup/dump/vzdump-lxc-102-2024_10_10-12_47_51.tar.dat' failed: exit code 2
INFO: Failed at 2024-10-10 12:47:52

With the most interesting being "INFO: tar: /mnt/pve/Prox_Backup/dump/vzdump-lxc-102-2024_10_10-12_47_51.tmp: Cannot open: Permission denied".

Seems some one logged that issue before. The link below might help.
https://forum.proxmox.com/threads/tmp-cannot-open-permission-denied.87730/