X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=btrbk-run;h=a1c6963a926b445454ca1d27634a56737e2d34da;hb=709a36a78bd13e0244ab254834ff67d0c03a6f45;hp=f45fe36f5176cbec8c776d8186152c47e0ebfa88;hpb=7a82762b44f4732f6b075a0cb5d8b258f5022d12;p=distro-setup diff --git a/btrbk-run b/btrbk-run index f45fe36..a1c6963 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|kw) if [[ $HOSTNAME == "$MAIL_HOST" ]]; then targets=($HOME_DOMAIN) fi