Skip to content
Snippets Groups Projects
Commit ded35b56 authored by Christopher Gervais's avatar Christopher Gervais
Browse files

Fix restic excludes.

parent 6a04f4be
No related branches found
No related tags found
No related merge requests found
......@@ -61,11 +61,18 @@ if [[ "$backup" == "yes" ]]; then
debug "No exclusion patterns defined."
else
debug "Files matching the following patterns will be excluded from backups:"
set -f
for e in $exclude
do
exclude_options="$exclude_options --exclude $e"
exclude_options="$exclude_options --exclude=$e"
debug "==> $e"
done
if [ -d $repo ]; then
# Avoid infinite recursion if we try to backup a local repository.
exclude_options="$exclude_options --exclude=$repo"
debug "==> $repo"
fi
set +f
fi
if [ -z "$tag" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment