file exlude problem

mike wolman mike@nux.co.uk
Fri, 28 Dec 2001 16:57:50 +0000 (GMT)


Hi Ben,

I have been playing around with rdiff-backup and hit another problem
when i try to exclude all "*access.log" files rdiff-backup fails.

For example:
/usr/local/bin/rdiff-backup -v6 \
--exclude '*access.log' \
--exclude '/dev' \
--exclude '/mnt' \
--exclude '/proc' \
--exclude '/tmp' \
--remote-schema "ssh -C %s '/usr/local/bin/rdiff-backup -s'" \
mike@somehost::/ \
/home/customers/somehost

this fails with:
Traceback (most recent call last):
  File "/usr/local/bin/rdiff-backup", line 3907, in ?
    Globals.Main.Main()
  File "/usr/local/bin/rdiff-backup", line 3674, in Main
    self.misc_setup(rps)
  File "/usr/local/bin/rdiff-backup", line 3643, in misc_setup
    Globals.add_regexp(regex_string, None)
  File "/usr/local/bin/rdiff-backup", line 91, in add_regexp
    conn.Globals.add_regexp_local(regstr, mirror)
  File "/usr/local/bin/rdiff-backup", line 96, in add_regexp_local
    compiled = re.compile(regstr)
  File "/usr/local/lib/python2.2/sre.py", line 178, in compile
    return _compile(pattern, flags)
  File "/usr/local/lib/python2.2/sre.py", line 228, in _compile
    raise error, v # invalid expression
sre_constants.error: nothing to repeat
[root@store customers]# Traceback (most recent call last):
  File "/usr/local/bin/rdiff-backup", line 3907, in ?
    Globals.Main.Main()
  File "/usr/local/bin/rdiff-backup", line 3675, in Main
    self.take_action(rps)
  File "/usr/local/bin/rdiff-backup", line 3650, in take_action
    PipeConnection(sys.stdin, sys.stdout).Server()
  File "/usr/local/bin/rdiff-backup", line 1490, in Server
    self.get_response(-1)
  File "/usr/local/bin/rdiff-backup", line 1457, in get_response
    try: req_num, object = self._get()
  File "/usr/local/bin/rdiff-backup", line 1379, in _get
    assert len(header_string) == 9, \
AssertionError: Error reading from pipe (problem probably originated
remotely)


However if i run the same thing but leave out:
--exclude '*access.log' \
everything works fine - i have tried using " instead of ' with no joy.

Any suggestions?

Mike.