From owner-freebsd-questions@FreeBSD.ORG Tue Sep 27 15:56:06 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCD4616A41F; Tue, 27 Sep 2005 15:56:06 +0000 (GMT) (envelope-from tim@kientzle.com) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48B3643D5D; Tue, 27 Sep 2005 15:56:01 +0000 (GMT) (envelope-from tim@kientzle.com) Received: from kientzle.com (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id j8RFu0OZ089012; Tue, 27 Sep 2005 08:56:00 -0700 (PDT) (envelope-from tim@kientzle.com) Message-ID: <43396B85.1000107@kientzle.com> Date: Tue, 27 Sep 2005 08:55:49 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gareth Bailey References: <48a5f32a05090901591a16c062@mail.gmail.com> <44u0guw0ou.fsf@be-well.ilk.org> <433242E9.2060100@freebsd.org> <448xxpchum.fsf@be-well.ilk.org> <48a5f32a05092707187844b052@mail.gmail.com> <48a5f32a0509270742745a7dc@mail.gmail.com> In-Reply-To: <48a5f32a0509270742745a7dc@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: kientzle@freebsd.org, freebsd-questions Subject: Re: tar -u adds all files regardless of mod date X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2005 15:56:07 -0000 Thanks, Gareth. I'm hoping to get some time this week to backport a lot of changes from bsdtar/libarchive in -CURRENT back to 5-STABLE. I'll let you know when I get that done. Tim Gareth Bailey wrote: > Just to add, I seem to be experiencing similar behaviour using the -P option: > > # tar -P -cvf archive.tar /usr/archive/Pimani/ > .. files get added > # tar -P -uvf archive.tar /usr/archive/Pimani/ > a /usr/archive/Pimani/Pimani Presentation/multimedia/August > 2005/LM_001_PRINT_050119/Thumbs.db > a /usr/archive/Pimani/Pimani Presentation/multimedia/August 2005/26 > August/t-shirtlogomany.gif > > Result: Directory structure was static but two files were added again. > > The non-absolute path workaround worked fine: > > # cd / > # tar -cvf archive.tar usr/archive/Pimani/ > .. files added > # tar -uvf archive.tar usr/archive/Pimani/ > > Result: No files were added again (good). > > Just to bring to your attention. > > Gareth Bailey > > On 9/27/05, Gareth Bailey wrote: > >>Hi Tim, >> >> >>>5-STABLE is sufficiently different that the patch doesn't apply, >>>unfortunately. It will take me a few days to figure out whether >>>it's best to work up a different patch for 5-STABLE or whether >>>I should MFC a lot of work from 6-STABLE to 5-STABLE. >> >>Unfortunately our server is also on the 5 stable branch. >> >> >>>Please check that the following does work (without the leading '/'): >>> >>> tar -cf foo.tar usr/dir_a/dir_b >>> tar -uvf foo.tar usr/dir_a/dir_b >> >>This works just fine. Thank you for response and suggested workarounds. >> >>Gareth Bailey >> > > > >