original:
function duplicity_params_conf {
# reuse cmd var from main loop
## in/exclude parameters are currently not supported on restores
if [ "$cmd" = "fetch" ] || [ "$cmd" = "restore" ] || [ "$cmd" = "status" ]; then
# filter exclude params from fetch/restore
vvv
echo "$DUPL_PARAMS" | awk '{gsub(/--(ex|in)clude[a-z-]*(([ \t]+|=)[^-][^ \t]+)?/,"");print}'
return
fi
echo "$DUPL_PARAMS"
}
function duplicity_params_conf {
# reuse cmd var from main loop
## in/exclude parameters are currently not supported on restores
if [ "$cmd" = "fetch" ] || [ "$cmd" = "restore" ] || [ "$cmd" = "status" ]; then
# filter exclude params from fetch/restore
vvv
echo "$DUPL_PARAMS" | awk '{gsub(/--(ex|in)clude[a-z-]*(([ \t]+|=)[^-][^ \t]*)?/,"");print}'
return
fi
echo "$DUPL_PARAMS"
}
DUPL_PARAMS="$DUPL_PARAMS --include /etc --include /home --include /opt/zimbra/backup --exclude /"
duply failed to remove the / after --exclude.