| 1 |
@@if not defined BORGCACHE |
| 2 |
@@define BORGCACHE root/\\.cache/borg |
| 3 |
@@endif |
| 4 |
@@if not defined BORGCONFIG |
| 5 |
@@define BORGCONFIG root/\\.config/borg |
| 6 |
@@endif |
| 7 |
# define BORGBACKHOST, BORGBACKPATH and BORGBACKREPOS either here on in an earlier file |
| 8 |
/@@{BORGCACHE}(/(keys|security))?$ d VarDir-n |
| 9 |
!/@@{BORGCACHE}/@@{SHA256SUM}$ d |
| 10 |
!/@@{BORGCACHE}/@@{SHA256SUM}/(README|chunks|config|files|lock\\.roster|pre12-meta)$ f |
| 11 |
!/@@{BORGCACHE}/@@{SHA256SUM}/(chunks\\.archive\\.d|lock\\.exclusive|txn\\.active)$ d |
| 12 |
!/@@{BORGCACHE}/@@{SHA256SUM}/chunks\\.archive\\.d/@@{SHA256SUM}(\\.compact(\\.integrity)?)?$ f |
| 13 |
!/@@{BORGCACHE}/@@{SHA256SUM}/lock\\.exclusive/@@{HOSTNAME}\\.[[:digit:]]+\\-0$ f |
| 14 |
!/@@{BORGCACHE}/@@{SHA256SUM}/txn.active/(chunks|config|files)$ f |
| 15 |
/@@{BORGCACHE}/keys$ d VarDir |
| 16 |
@@if defined BORGBACKHOST |
| 17 |
@@if defined BORGBACKPATH |
| 18 |
@@if defined BORGBACKUPREPOS |
| 19 |
!/@@{BORGCACHE}/keys/@@{BORGBACKHOST}__@@{BORGBACKPATH}_@@{BORGBACKREPOS}\\.[[:digit:]]$ f |
| 20 |
@@undef BORGBACKHOST |
| 21 |
@@undef BORGBACKPATH |
| 22 |
@@undef BORGBACKREPOS |
| 23 |
@@endif |
| 24 |
@@endif |
| 25 |
@@endif |
| 26 |
!/@@{BORGCONFIG}/security/@@{SHA256SUM}$ d |
| 27 |
!/@@{BORGCONFIG}/security/@@{SHA256SUM}/(key-type|location|manifest-timestamp|nonce|tam_required)$ f |
| 28 |
|