This commit is contained in:
Austen Adler 2017-11-28 16:21:03 -05:00
parent 6fb403a091
commit 0ddb5f420b
2 changed files with 10 additions and 5 deletions

View File

@ -134,16 +134,16 @@
# xev might be helpful to find names for keys
# close notification
close = mod4+m
#close = mod4+m
# close all notifications
close_all = mod4+shift+m
#close_all = mod4+shift+m
# redisplay last message(s)
history = mod4+n
#history = mod4+n
# context menu
context = mod4+shift+i
#context = mod4+shift+i
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.

View File

@ -19,7 +19,12 @@ b-create() {
if command -v sudo > /dev/null; then
SUDO="$(command -v sudo)"
fi
"$SUDO" "/home/stonewareslord/syncthing/me/backup/$(hostname)/backup"
local IGNORE_FILE="/tmp/$(uuidgen)"
cat /home/stonewareslord/syncthing/me/backup{,/"$(hostname)"}/nobackup > "$IGNORE_FILE"
if [[ -f "/home/stonewareslord/syncthing/me/backup/$(hostname)/mount" ]]; then
"$SUDO" "/home/stonewareslord/syncthing/me/backup/$(hostname)/mount"
fi
"$SUDO" borg create -vpsx --exclude-caches --compression lzma,7 --exclude-from "$IGNORE_FILE" $BORG_REPO::$(hostname)-$(uuidgen) / /boot
}
b-rename() {
borg rename -v "$BORG_REPO::$1" "$2"