From 7a31182526b3b4e38ec20ef5eae149b950d90f01 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sun, 7 Nov 2021 04:05:53 +0100 Subject: [PATCH] bin/barg: add --- .local/bin/scripts/barg | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .local/bin/scripts/barg diff --git a/.local/bin/scripts/barg b/.local/bin/scripts/barg new file mode 100755 index 0000000..c3ff8c4 --- /dev/null +++ b/.local/bin/scripts/barg @@ -0,0 +1,6 @@ +#!/bin/sh +# Backup root filesystem with borg +cd / +sudo borg create --progress --stats \ + $(echo $IGNOREDIRS_PURE -x 'software-challenge/*/build' -x 'emacs/.local' | sed 's|-x \([^ ]\+\)|-e */\1 -e \1|g') \ + /mnt/backup/borg::$(hostname)-system-$(date -u +"%y%m%d") etc home root