Package: dirvish Version: 1.2.1-1.1 Severity: normal
I setup a USB external drive mounted as /mnt/sdb8/, then put a directory named dirvish on that drive. As I wanted to separate the mount point from the bank name, I then created a symlink - "ln -s /mnt/sdb8/dirvish /dirvish". In /etc/dirvish/master.conf, I put only one bank - /dirvish. Backups worked fine. However, I eventually noticed that nothing was expiring. I ran dirvish-expire manually and saw no errors, but no expired backups either. Experimenting with a copy of the dirvish-expire script, I realized that the find() function was only calling findop() once - for the "/dirvish" directory. When I changed the bank entry in the master.conf file from "/dirvish" to "/mnt/sdb8/dirvish", expires started working normally. I'm not sure of the best fix - according to the perldoc page, by default find() doesn't follow symlinks. You can pass the 'follow' or 'follow-fast' options, but then you have to worry about either symlink cycles or repeated findop() calls for the same file. Alternately, you could just detect the situation and warn the end user. I pulled the patchset for the ustable version, and it didn't appear to change anything that would fix this issue. I did not test it. I'd rather give you a patch w/ this bug report, but it's going to be awhile before I'd have time to work on it any, and I wanted to get the bug report in w/ the workaround. And I'd have to learn some Perl too.... 8-) later! horkan -- System Information: Debian Release: 6.0.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 3.3.0ghs1 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages dirvish depends on: ii libtime-modules-perl 2006.0814-2 Various Perl modules for time/date ii libtime-period-perl 1.20-8 Perl library for testing if a time ii perl 5.10.1-17squeeze3 Larry Wall's Practical Extraction ii perl-modules 5.10.1-17squeeze3 Core Perl modules ii rsync 3.0.7-2 fast remote file copy program (lik Versions of packages dirvish recommends: ii ssh 1:5.5p1-6+squeeze2 secure shell client and server (me dirvish suggests no packages. -- Configuration Files: /etc/cron.d/dirvish changed: 4 2 * * * root /etc/dirvish/dirvish-cronjob -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org