Skip to content
Snippets Groups Projects
Commit f7488968 authored by intrigeri's avatar intrigeri
Browse files

rsync: generate excludes command-line snippet the same way as the duplicity handler does.

The latter has a robust history wrt. dealing with excludes / glob / quoting
etc., let's use that instead of the shiny new sed-based way.
parent cd3abeab
No related branches found
No related tags found
No related merge requests found
...@@ -275,8 +275,15 @@ function eval_config { ...@@ -275,8 +275,15 @@ function eval_config {
mv=move_files mv=move_files
fi fi
excludes=`echo "$exclude" | @SED@ -e "s/^/--exclude='/g" -e "s/ /' --exclude='/g" -e "s/$/'/"` set -o noglob
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for i in $exclude; do
str="${i//__star__/*}"
excludes="${excludes} --exclude='$str'"
done
IFS=$SAVEIFS
set +o noglob
} }
function rotate_short { function rotate_short {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment