Package: storebackup Version: 1.18.4-2 Severity: important Tags: patch
If there's a backup directory: /mnt/backup/$TIMESTAMP/home/foo/* /mnt/backup/$TIMESTAMP/other/* /mnt/backup/$TIMESTAMP/files/* and I want to restore only /home/foo, I tried to run # storeBackupRecover -r /mnt/backup/$TIMESTAMP/home/foo -t . unfortunately, this command restores nothing. This is because in line 245 of storeBackupRecover the path has been broken into backup directory (/mnt/backup/$TIMESTAMP) and restoreTree (home/foo). Note that the later is relative. Unfortunately, this relative path is then compared with the absolute path in the MD5 backup info file (line 316) which of course never matches. So please either change line 316 from if ($restoreTree eq '' or "$restoreTree/" eq substr($f, 1, $lrestoreTree + 1) to if ($restoreTree eq '' or "$restoreTree/" eq substr($f, 0, $lrestoreTree + 1) (making both paths relative) or provide some other means to specify the restore path when there are absolute paths in the MD5 file. Best regards, Nikolaus Rath -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.12.emp8 Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Versions of packages storebackup depends on: ii bzip2 1.0.2-2ubuntu0.2 high-quality block-sorting file co ii debianutils 2.11.2 Miscellaneous utilities specific t ii perl 5.8.4-6ubuntu1 Larry Wall's Practical Extraction -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]