vzdump errors with bindfs mounts

Kptn_Pmx

New Member
Mar 13, 2022
3
0
1
70
Hello,

I use mount points in my home directory with bindfs which point to other directories in the file system.
This way I can easily access protected files and directories through an easier way.

It seems Proxmox Backup does not like this way of doing.

I am getting "failed to open /home/my_user/my_dirs/: Permission denied" error message and vzdump continues to dump the image.

I tried several methods to prevent vzdump from trying to dump these directories but without success:
- I added a .pxarexclude file excluding the whole directory
- I tried to exclude in the dump command the directory
- As root the bindfs mount points are accessible

Here is the command I run:

Bash:
vzdump 5013 --exclude-path '/home/my_user/my_dirs' --compress zstd --dumpdir /tmp/ --mode snapshot

And here is the result:
Bash:
INFO: starting new backup job: vzdump 5013 --dumpdir /tmp/ --exclude-path /home/dbi/my_dirs --compress zstd --mode snapshot
INFO: Starting Backup of VM 5013 (lxc)
INFO: Backup started at 2022-07-22 12:16:51
INFO: status = running INFO: CT Name: pmx-5013
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump' failed to open /home/my_user/my_dirs: Permission denied
Logical volume "snap_vm-5013-disk-0_vzdump" created.
INFO: creating vzdump archive '/tmp/vzdump-lxc-5013-2022_07_22-12_16_51.tar.zst'
...
INFO: Failed at 2022-07-22 12:16:53 INFO: Backup job finished with errors

Not being an expert I guess I'm not doing it right. Could someone point me to the solution or provide me some hints.

Thanks in advance.

Denis
 

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!