From c51ad3be43e69c3f55dcc726421373b91ae1f3d8 Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Thu, 19 Feb 2026 10:07:55 +0100 Subject: [PATCH] add a readme --- Readme.md | 5 +++++ borg.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 Readme.md diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..557d218 --- /dev/null +++ b/Readme.md @@ -0,0 +1,5 @@ +# Borg backup script + +deployed by ansible socle role + +to exclude a given directory, drop a .nobackup file in diff --git a/borg.sh b/borg.sh index 6e7ae97..049e11f 100755 --- a/borg.sh +++ b/borg.sh @@ -54,7 +54,7 @@ case $1 in ret=$? ;; (*) - ${borg} create --compression lzma,5 $REPOSITORY::$(hostname)_${TODAY} ${src} + ${borg} create --exclude-if-present .nobackup --compression lzma,5 $REPOSITORY::$(hostname)_${TODAY} ${src} ret=$? test -d $(dirname $statusfile) && echo $ret > $statusfile if [ $ret -eq 0 ] ; then