Skip to content
Snippets Groups Projects
Commit 54cc8c6b authored by Jérôme Charaoui's avatar Jérôme Charaoui
Browse files

[borg] support for --exclude-caches and --exclude-nodump

parent fcdbaa34
Branches
Tags
No related merge requests found
......@@ -74,6 +74,16 @@ exclude = /var/lib/mlocate
exclude = /var/lib/postgresql
exclude = /var/lib/mysql
## exclude directories that contain a CACHEDIR.TAG file
##
## Default:
# excludecaches = no
## exclude files flagged NODUMP
##
## Default:
# excludenodump = no
######################################################
## destination section
## (where the files are copied to)
......
......@@ -30,6 +30,8 @@ getconf keepweekly 4
getconf keepmonthly -1
getconf include
getconf exclude
getconf excludecaches no
getconf excludenodump no
setsection dest
getconf user
......@@ -123,6 +125,14 @@ if [ ! -z $bwlimit ]; then
execstr="${execstr} --remote-ratelimit=${bwlimit}"
fi
if [ "$excludecaches" == "yes" ]; then
execstr="${execstr} --exclude-caches"
fi
if [ "$excludenodump" == "yes" ]; then
execstr="${execstr} --exclude-nodump"
fi
# include client-part and server-part
execstr="${execstr} ${excludes} $execstr_repository::$execstr_archive ${includes}"
debug "$execstr"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment