dotfiles/.local/bin/scripts/barg

7 lines
292 B
Plaintext
Raw Normal View History

2021-11-07 03:05:53 +00:00
#!/bin/sh
# Backup root filesystem with borg
cd /
sudo borg create --progress --stats \
2021-11-07 03:19:01 +00:00
$(echo $IGNOREDIRS_PURE -x 'software-challenge/*/build' -x 'emacs/.local' | sed 's|-x \([^ ]\+\)|-e "*/\1" -e \1|g') \
/mnt/backup/borg::$(cat /etc/hostname)-system-$(date -u +"%y%m%d") etc home root