add a readme

This commit is contained in:
Thomas Constans
2026-02-19 10:07:55 +01:00
parent 2e78fb23f2
commit c51ad3be43
2 changed files with 6 additions and 1 deletions

5
Readme.md Normal file
View File

@@ -0,0 +1,5 @@
# Borg backup script
deployed by ansible socle role
to exclude a given directory, drop a .nobackup file in

View File

@@ -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