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

[borg] scrap exclude*, add create_options

This allows the handler to fully make use of the advanced command-line
options for "borg create", such as the replaced "exclude*" options and
others like "--read-special" and "--numeric-owner".
parent e114ff68
No related branches found
No related tags found
No related merge requests found
......@@ -70,15 +70,15 @@ exclude = /var/lib/mlocate
exclude = /var/lib/postgresql
exclude = /var/lib/mysql
## exclude directories that contain a CACHEDIR.TAG file
## define extra command-line options for the "borg create" operation.
##
## Default:
# excludecaches = no
## exclude files flagged NODUMP
## Example:
## create_options = --exclude-caches
##
## for more info see : borg help create
##
## Default:
# excludenodump = no
# create_options =
## whether to prune (remove) older backups
##
......
......@@ -27,8 +27,7 @@ setsection source
getconf init yes
getconf include
getconf exclude
getconf excludecaches no
getconf excludenodump no
getconf create_options
getconf prune yes
getconf keep 30d
getconf prune_options
......@@ -125,12 +124,8 @@ 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"
if [ ! -z $create_options ]; then
execstr="${execstr} ${create_options}"
fi
# include client-part and server-part
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment