X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=btrbk-run;h=5ff83260022c20d1eeec2217ae8392b61653b69d;hb=65351382939fa95fb1e05d7d83eb58d27c3c6133;hp=f45fe36f5176cbec8c776d8186152c47e0ebfa88;hpb=7a82762b44f4732f6b075a0cb5d8b258f5022d12;p=distro-setup diff --git a/btrbk-run b/btrbk-run index f45fe36..5ff8326 100755 --- a/btrbk-run +++ b/btrbk-run @@ -13,6 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. + +# todo: remove old leaf subvols, like keep up to 1 month or something. + set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR @@ -78,7 +81,7 @@ echo -e "$0: options: conf_only=$conf_only\ndry_run=$dry_run\nresume_arg=$resume # set default targets if [[ ! -v targets ]]; then case $HOSTNAME in - x2) + x2|fz) if [[ $HOSTNAME == "$MAIL_HOST" ]]; then targets=($HOME_DOMAIN) fi