@@if not defined BORGCACHE @@define BORGCACHE root/\\.cache/borg @@endif @@if not defined BORGCONFIG @@define BORGCONFIG root/\\.config/borg @@endif # define BORGBACKHOST, BORGBACKPATH and BORGBACKREPOS either here on in an earlier file /@@{BORGCACHE}(/(keys|security))?$ d VarDir-n !/@@{BORGCACHE}/@@{SHA256SUM}$ d !/@@{BORGCACHE}/@@{SHA256SUM}/(README|chunks|config|files|lock\\.roster|pre12-meta)$ f !/@@{BORGCACHE}/@@{SHA256SUM}/(chunks\\.archive\\.d|lock\\.exclusive|txn\\.active)$ d !/@@{BORGCACHE}/@@{SHA256SUM}/chunks\\.archive\\.d/@@{SHA256SUM}(\\.compact(\\.integrity)?)?$ f !/@@{BORGCACHE}/@@{SHA256SUM}/lock\\.exclusive/@@{HOSTNAME}\\.[[:digit:]]+\\-0$ f !/@@{BORGCACHE}/@@{SHA256SUM}/txn.active/(chunks|config|files)$ f /@@{BORGCACHE}/keys$ d VarDir @@if defined BORGBACKHOST @@if defined BORGBACKPATH @@if defined BORGBACKUPREPOS !/@@{BORGCACHE}/keys/@@{BORGBACKHOST}__@@{BORGBACKPATH}_@@{BORGBACKREPOS}\\.[[:digit:]]$ f @@undef BORGBACKHOST @@undef BORGBACKPATH @@undef BORGBACKREPOS @@endif @@endif @@endif !/@@{BORGCONFIG}/security/@@{SHA256SUM}$ d !/@@{BORGCONFIG}/security/@@{SHA256SUM}/(key-type|location|manifest-timestamp|nonce|tam_required)$ f