X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=btrbk-run;h=1137a72b9c85bc434bf7168ea46c331cd8c7016f;hb=95eb9558206f8287febab80dd3f51d168a3ca831;hp=cd6b7e89061fed28b6dbdaa4a9d11afbd1e15461;hpb=70204395df8a9bd29f359126b5dbc06685cd589d;p=distro-setup diff --git a/btrbk-run b/btrbk-run index cd6b7e8..1137a72 100644 --- a/btrbk-run +++ b/btrbk-run @@ -245,7 +245,7 @@ else prospective_mps=(/i) ;; *) - prospective_mps=(/a /q) + prospective_mps=() if [[ $source ]]; then source_state="$(ssh $source cat /a/bin/bash_unpublished/source-state)" eval "$source_state" @@ -263,6 +263,9 @@ else fi fi fi + # note: put q last just in case its specific retention options were to + # affect other config sections. I havent tested if that is the case. + prospective_mps+=(/a /q) ;; esac fi @@ -422,7 +425,6 @@ snapshot_create onchange snapshot_preserve 18h 14d 8w 24m snapshot_preserve_min 2h snapshot_dir btrbk - # so, total backups = ~58 target_preserve 18h 14d 8w 24m target_preserve_min 2h @@ -454,6 +456,18 @@ EOF volume $vol subvolume $sub EOF + case $sub in + q) + # q has sensitive data i dont want to backup for so long + cat >>/etc/btrbk.conf <