Your message dated Tue, 6 Sep 2005 19:29:54 +0200
with message-id <[EMAIL PROTECTED]>
has caused the Debian Bug report #326806,
regarding storebackup: Restoring subtrees is broken
to be marked as having been forwarded to the upstream software
author(s) [EMAIL PROTECTED]

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

---------------------------------------
Received: (at 326806-forwarded) by bugs.debian.org; 6 Sep 2005 17:29:57 +0000
>From [EMAIL PROTECTED] Tue Sep 06 10:29:57 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mail3.hostpark.net [212.243.197.33] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1EChGf-0000cP-00; Tue, 06 Sep 2005 10:29:57 -0700
Received: from localhost (localhost [127.0.0.1])
        by mail3.hostpark.net (Postfix) with ESMTP id 552AF11836;
        Tue,  6 Sep 2005 19:29:56 +0200 (CEST)
Received: from mail3.hostpark.net ([127.0.0.1])
 by localhost (mail3 [127.0.0.1]) (amavisd-new, port 10124) with ESMTP
 id 06247-02; Tue,  6 Sep 2005 19:29:56 +0200 (CEST)
Received: from twoflower.prv.korn.ch (84-72-120-140.dclient.hispeed.ch 
[84.72.120.140])
        by mail3.hostpark.net (Postfix) with ESMTP id 6EE46117CA;
        Tue,  6 Sep 2005 19:29:55 +0200 (CEST)
Received: by twoflower.prv.korn.ch (Postfix, from userid 1000)
        id CF0D1A42890F; Tue,  6 Sep 2005 19:29:54 +0200 (CEST)
Date: Tue, 6 Sep 2005 19:29:54 +0200
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED],
        [EMAIL PROTECTED]
Subject: Bug#326806: storebackup: Restoring subtrees is broken
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-ripemd160;
        protocol="application/pgp-signature"; boundary="b5gNqxB1S1yM7hjW"
Content-Disposition: inline
X-Face: #IT=!jt##jq+,H7?/t"2s)h(o<l`oz:[EMAIL 
PROTECTED]&-?|i,x19;yM-<f<v,SFF4!BZ5N]ii 
b+:lZKb)d,Oew0#uM|c7`NW,DG#YlT2"t/5^~ap-TRV%6_Cje2Qq1\H12R\UB3VjMf&*,g></oLaV~ 
Pg{t9mLT_Rb="h9"u=>2dFk=\NtVMNjU}z'}{2%b_SpKKn27hSKK(8G[>S`#RQ[{^aSG~07LW|!9bi 
yM'=([4R*$E*';L
User-Agent: Mutt/1.5.9i
From: [EMAIL PROTECTED] (Arthur Korn)
X-Virus-Scanned: by amavisd-new at hostpark.net
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
        HAS_PACKAGE autolearn=ham version=2.60-bugs.debian.org_2005_01_02


--b5gNqxB1S1yM7hjW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi

Heinz-Josef, I'd like to hear your opinion on this. As you can
see in the followup on http://bugs.debian.org/326806 the
submitter has that problem with 1.19-1 too.

Nikolaus could you please provide us with some details on how
you run the backups (your config file and script if you made
your own). I'm a bit confused why you have absolute paths in
your md5sum file wherease I with a very similar setup (I
suppose) have relative paths.

ciao, 2ri

----- Forwarded message from Nikolaus Rath <[EMAIL PROTECTED]> -----

Date: Mon, 05 Sep 2005 22:36:20 +0200
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
=46rom: Nikolaus Rath <[EMAIL PROTECTED]>
Subject: Bug#326806: storebackup: Restoring subtrees is broken

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=3Den_US.UTF-8, LC_CTYPE=3Dde_DE.UTF-8 (charmap=3DUTF-8)

Versions of packages storebackup depends on:
ii  bzip2                   1.0.2-2ubuntu0.2 high-quality block-sorting fil=
e co
ii  debianutils             2.11.2           Miscellaneous utilities specif=
ic t
ii  perl                    5.8.4-6ubuntu1   Larry Wall's Practical Extract=
ion=20

-- no debconf information

----- End forwarded message -----

--=20

--b5gNqxB1S1yM7hjW
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFDHdISNgpsykSg/LgRA5yIAJ44RcV4owC/IBYnGv+sX6rrTxS0SACffuMl
e447CKXs+H5BggpL8olJ7A8=
=jdqM
-----END PGP SIGNATURE-----

--b5gNqxB1S1yM7hjW--


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

Reply via email to