[Python-apps-team] Bug#623336: rdiff-backup: --max-file-size breaks --exclude instructions

Zachary Palmer zep_debbug at bahj.com
Tue Apr 19 13:13:03 UTC 2011

Package: rdiff-backup
Version: 1.2.8-6
Severity: normal

Running rdiff-backup with --max-file-size breaks the behavior of --exclude.
Excluded files are still included when --max-file-size is used.  For an example
of this behavior, execute the following (bash) commands:

	mkdir temp
	cd temp
	mkdir -p src src/{a,b}
	touch src/{a,b}/file
	rdiff-backup --include=src/a --exclude=src/* src good-backup
	rdiff-backup --max-file-size 104857600 --include=src/a --exclude=src/* src bad-backup

The first command creates the backup we would expect: it only includes the 'a'
directory and not the 'b' directory.  The second backup should therefore
behave the same; the only difference is the maximum file size of 100MB, which
we clearly have not exceeded.  Nonetheless, the bad-backup directory contains
a backup of directory 'b' as well.

This is of particular annoyance because backupninja relies on rdiff-backup's
include/exclude behavior in this way.  This makes it impossible to use
"options=--max-file-size 104857600" to exclude files over 100MB when using
rdiff-backup in a backupninja session.  This is not a problem with the
backupninja helper, though, as shown by the session above.

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rdiff-backup depends on:
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  librsync1               0.9.7-7          rsync remote-delta algorithm libra
ii  python                  2.6.6-3+squeeze6 interactive high-level object-orie
ii  python-support          1.0.10           automated rebuilding support for P

Versions of packages rdiff-backup recommends:
ii  python-pylibacl               0.5.0-3    module for manipulating POSIX.1e A
ii  python-pyxattr                0.5.0-3    module for manipulating filesystem

rdiff-backup suggests no packages.

-- no debconf information

More information about the Python-apps-team mailing list