[SOLVED] Proxmox-backup-clinet "explicit inclusion" seems not working as I expect :-)

qupfer

Member
Sep 2, 2019
6
0
21
36
I'm pretty sure, it works as exptectet, but not as I expect :-D

I want to store a folder, but exclude an subfolder, but also include some sub-sub-folder of the excluded one. Pretty easy, but I wil provide an example

I have the following tree (I removed some leaves)
Code:
/var/snap/lxd
`-- common
    |-- lxd
    |   |-- storage-pools
    |   |   `-- default
    |   |       |-- containers
    |   |       |   |-- c1
    |   |       |   |   |-- rootfs
    |   |       |   |   `-- templates
    |   |       |   |-- c2
    |   |       |   |   |-- rootfs
    |   |       |   |   `-- templates
    |   |       |   `-- c3
    |   |       |       |-- rootfs
    |   |       |       `-- templates
    |   |       |-- containers-snapshots
    |   |       |   |-- c1
    |   |       |   |   `-- pbs
    |   |       |   |   `-- remove1
    |   |       |   |   `-- remove2
    |   |       |   |   `-- remove3
    |   |       |   |-- c2
    |   |       |   |   `-- pbs
    |   |       |   |   `-- remove1
    |   |       |   |   `-- remove2
    |   |       |   |   `-- remove3
    |   |       |   `-- c3
    |   |       |   |   `-- remove1
    |   |       |   |   `-- remove2
    |   |       |   |   `-- remove3
    |   |       |       `-- pbs

I want to store the complete folder, inclusive mountpoints....but not the subdir `containers-snapshots` with one exception. The `pbs` snaphot of each container should be stored too.


My try was to add a .pxarexclude file to `/var/snap/lxd` but in the end, it always ignore the full containers-snapshot dir. I'm pretty sure, my .pxarexclude is wrong, but I don't understood why.

This was my last try:
Code:
containers-snapshots
!containers-snapshots/**/pbs
!containers-snapshots/**/pbs/*
!/**/containers-snapshots/**/pbs/**
 
Hi,
can you try:
Code:
containers-snapshots/*/*
!containers-snapshots/*/pbs
 
  • Like
Reactions: qupfer