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

rdiff: support reading include/exclude patterns from files.

parent 34e439ea
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ garcondumonde@riseup.net ...@@ -21,7 +21,7 @@ garcondumonde@riseup.net
Martin Krafft madduck@debian.org -- admingroup patch Martin Krafft madduck@debian.org -- admingroup patch
Anarcat -- lotsa patches Anarcat -- lotsa patches
Jamie McClelland -- cstream patches Jamie McClelland -- cstream patches
ale -- ldap cleanup ale -- ldap cleanup, rdiff support for reading include/exclude from files
Sami Haahtinen <ressu@ressukka.net> Sami Haahtinen <ressu@ressukka.net>
Matthew Palmer -- mysql enhancements Matthew Palmer -- mysql enhancements
romain.tartiere@healthgrid.org -- ldap fixes romain.tartiere@healthgrid.org -- ldap fixes
......
version 0.9.9 -- UNRELEASED
handler changes
rdiff:
. Support reading include/exclude patterns from files using the
"include @/etc/backup_includes" syntax (Closes Roundup bug
#2370). Thanks to ale for the patch.
version 0.9.8 -- September 12, 2010 version 0.9.8 -- September 12, 2010
backupninja changes backupninja changes
. Added GZIP_OPTS option, defaulting to --rsyncable, so that this . Added GZIP_OPTS option, defaulting to --rsyncable, so that this
......
...@@ -219,7 +219,10 @@ SAVEIFS=$IFS ...@@ -219,7 +219,10 @@ SAVEIFS=$IFS
IFS=$(echo -en "\n\b") IFS=$(echo -en "\n\b")
for i in $exclude; do for i in $exclude; do
str="${i//__star__/*}" str="${i//__star__/*}"
execstr="${execstr}--exclude '$str' " case "$str" in
@*) execstr="${execstr}--exclude-globbing-filelist '${str#@}' " ;;
*) execstr="${execstr}--exclude '$str' " ;;
esac
done done
IFS=$SAVEIFS IFS=$SAVEIFS
# includes # includes
...@@ -228,7 +231,10 @@ IFS=$(echo -en "\n\b") ...@@ -228,7 +231,10 @@ IFS=$(echo -en "\n\b")
for i in $include; do for i in $include; do
[ "$i" != "/" ] || fatal "Sorry, you cannot use 'include = /'" [ "$i" != "/" ] || fatal "Sorry, you cannot use 'include = /'"
str="${i//__star__/*}" str="${i//__star__/*}"
execstr="${execstr}--include '$str' " case "$str" in
@*) execstr="${execstr}--include-globbing-filelist '${str#@}' " ;;
*) execstr="${execstr}--include '$str' " ;;
esac
done done
IFS=$SAVEIFS IFS=$SAVEIFS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment