add a readme
This commit is contained in:
5
Readme.md
Normal file
5
Readme.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Borg backup script
|
||||
|
||||
deployed by ansible socle role
|
||||
|
||||
to exclude a given directory, drop a .nobackup file in
|
||||
2
borg.sh
2
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
|
||||
|
||||
Reference in New Issue
Block a user