Package: backup2l
Version: 1.4
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am using backup2l with self-made DRIVER_RAR that uses rar to compress files. 
Unfortunately rar is solid mode does not preserve file order but it sorts files 
to exploit similarities between files of the same "type". This cases backup2l 
to report thousands of errors while checking the TOC of archived backup. The 
trivial patch below works for me - it sorts both original list and the list 
returned from $CREATE_DRIVER -toc and then diffs them. I've actually used it 
for long enough to forget about this patch and be surprised when it broke after 
upgrade, so I am not sure if I recreated exactly the patch that worked for me 
so perfectly :)

*** backup2l.diff
- --- /usr/sbin/backup2l~       2005-01-04 16:10:22.000000000 +0100
+++ /usr/sbin/backup2l  2005-04-06 20:56:53.545112248 +0200
@@ -749,8 +749,8 @@
     $CREATE_DRIVER -create $NEW_BID $TMP.$ARCH_SUFFIX $TMP.files 2>&1 | sed 
's/^/  /'
     if [ "$ARCH_SUFFIX" != "" ]; then
         echo "Checking TOC of archive file (< real file, > archive entry)..."
- -        $CREATE_DRIVER -toc $NEW_BID $TMP.$ARCH_SUFFIX | eval 
"$FILTER_UNIFY_NAME" > $TMP.toc
- -        eval "$FILTER_UNIFY_NAME" < $TMP.files | diff - $TMP.toc | tee 
$TMP.error | sed 's/^/  /'
+        $CREATE_DRIVER -toc $NEW_BID $TMP.$ARCH_SUFFIX | eval 
"$FILTER_UNIFY_NAME" | sort > $TMP.toc
+        eval "$FILTER_UNIFY_NAME" < $TMP.files | sort | diff - $TMP.toc | tee 
$TMP.error | sed 's/^/  /'
     fi
 
     # Move files in place...


- -- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-cko3
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages backup2l depends on:
ii  findutils                     4.1.20-5   utilities for finding files--find,

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCVDPiy0fq9RM+TxgRAt3zAKDWYOa6gicO0Dh8v8CwIjdlwVqd5wCg0Jvn
qawLSPV/QizISIFKVqzVK0k=
=+frc
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to