Exclude not working?

Peter Baumann <siprbaum-t+0fs1LuQyGVdxy9aTz+TW+fIWL0DMyzU2kT9rkj4NY@public.gmane.org> Fri, 21 Jan 2005 12:27:51 +0100
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
Hi

I have following problem:


/etc/hdup/hdup.conf
  [... sniping not relevant part ..]

  [mars]
  dir = /
  log = yes
  exclude = ^/proc, \
          ^/var/spool/news, \
          ^/var/tmp/*, \
          ^/tmp/*

  one filesystem = yes
  compression = gzip



Running the following command

  hdup -c /etc/hdup/hdup.conf -V -V -V -V  monthly mars

produces following output:

  hdup: mars: STARTING BACKUP.
  hdup: No user given, defaulting to: operator.
  hdup: No protocol path given, defaulting to: /usr/bin/ssh.
  hdup: No tar option given, defaulting to: .
  hdup: No mcrypt path given, defaulting to: /usr/bin/mcrypt.
  hdup: No gpg path given, defaulting to: /usr/bin/gpg.
  hdup: Creating LOCK.
  hdup: Using inclist /mnt/hdg7/Backup/mars/etc/inclist.monthly.
  hdup: WARNING: Cannot enter the directory: /proc/8581/fd!
  hdup: WARNING: Cannot enter the directory: /proc/8581/task!
  hdup: Files and directories found 27.
  hdup: Running: /bin/tar cpf -  --sparse  --files-from /mnt/hdg7/Backup/mars/etc/filelist --listed-incremental /mnt/hdg7/Backup/mars/etc/inclist.monthly --ignore-failed-read  --one-file-system  |/bin/gzip -6 > /mnt/hdg7/Backup/mars/2005-01-21/mars.2005-01-21.monthly.tar.gz.
  /bin/tar: /proc/12293/wchan: Warning: Cannot stat: No such file or directory
  /bin/tar: /proc/12293/mounts: Warning: Cannot stat: No such file or directory

[pressing Ctrl-C to abort because hdup wants to include /proc]


This is debian version of hdup2

dpkg -l hdup|grep hdup

ii  hdup           2.0.4-1        Filesystem duplicator and backup


Summary:

Something must be wrong with hdup, because /proc is another filesystem,
and should be excluded by the option 'one filesystem = yes' and/or by my
exclude statement.

Feel free to contact me if further information is needed.

Grettings,
  Peter Baumann