From 535065a9adb323a8dd0a5844fbbae916ce3ced5b Mon Sep 17 00:00:00 2001 From: Harri Lahtinen Date: Fri, 27 Mar 2020 14:48:30 +0200 Subject: [PATCH] borg-stuff --- .config/Scripts/backup.sh | 2 +- .config/borg/exclude-list | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .config/borg/exclude-list diff --git a/.config/Scripts/backup.sh b/.config/Scripts/backup.sh index f07be42..ee5a469 100755 --- a/.config/Scripts/backup.sh +++ b/.config/Scripts/backup.sh @@ -16,7 +16,7 @@ TAG=daily # create borg backup archive -borg create ssh://borg@$HOST:2222/backup/arch::$TAG'-{now:%Y-%m-%d}' $HOME --exclude $HOME/.cache --exclude $HOME/Downloads +borg create ssh://borg@$HOST:2222/backup/arch::$TAG'-{now:%Y-%m-%d}' $HOME --exclude-from ${HOME}'/.config/borg/exclude-list' diff --git a/.config/borg/exclude-list b/.config/borg/exclude-list new file mode 100644 index 0000000..f51d2cc --- /dev/null +++ b/.config/borg/exclude-list @@ -0,0 +1,7 @@ +/home/hate/.cache +/home/hate/.mozilla +/home/hate/.local/share/Trash +/home/hate/Downloads +/home/hate/Videos +/home/hate/.config/chromium +/home/hate/.config/google-chrome