.pxarexclude ignoring leading slash

May 17, 2022
12
1
8
I am confused as it seems that my proxmox-backup-client does ignore lines in the .pxarexclude file starting with a slash '/'.

I have put the following .pxarexclude file in a subdirectory that is being backed up:
Code:
/test1
/test2/
/test3/*
test4/
test5/*

the resulting backup has the following directories and files in that subdirectory:
Code:
test1/file
test2/file
test3/file
test5

so test4 is fully excluded and test5 is empty.

There is a note in the client documentation: "Patterns without a leading <span>/</span> will also match in subdirectories,while patterns with a leading <span>/</span> will only match in the current directory."

So I would expect that /test2/ should exclude the test2 directory and /test3/* should create an empty test3 directory in the backup?
It seems that the entries starting with a slash '/' are being ignored?

I am using the debian bookworm version of the client, so it is version 3.4.1.

Thanks for any hints what I am misinterpreting.
 
With version 3.4.7 this seems now to work as expected with the leading slashes
Whereas if I have in a subdirectory (which is not being excluded/mentioned) another .pxarexclude file with a folder with a leading slash, that folder won't be excluded. And I do not want to exclude all folders with that name in subfolders so I need the leading slash to match only the top directory.

Anyone else having this issue with the leading slashes?