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:
And here is the result:
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
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