dotfiles/.local/bin/scripts/barg
2021-11-07 04:07:25 +01:00

6 lines
281 B
Bash
Executable file

#!/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