From owner-freebsd-questions@FreeBSD.ORG Tue Sep 27 14:42:25 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 0BEC916A41F for ; Tue, 27 Sep 2005 14:42:25 +0000 (GMT) (envelope-from gjbailey@gmail.com) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C11343D62 for ; Tue, 27 Sep 2005 14:42:24 +0000 (GMT) (envelope-from gjbailey@gmail.com) Received: by qproxy.gmail.com with SMTP id p36so557043qba for ; Tue, 27 Sep 2005 07:42:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cXQ4kDjQdN+eQ167KjHFlglmhqwaHwoE02GoTroGEVjeMw9v4LsGmsjbeVwLWd9awagv1tCdZR6rOi/EBZMpIMRp6lyYJUAHZ15gwNGsGcRWdzs+HrXCWEebS63SbHa6ZuuTxpTWT5tzB2v0WcDLGrjDI5c9hQr6ieL1MshDqOs= Received: by 10.65.159.8 with SMTP id l8mr682115qbo; Tue, 27 Sep 2005 07:42:23 -0700 (PDT) Received: by 10.65.107.8 with HTTP; Tue, 27 Sep 2005 07:42:23 -0700 (PDT) Message-ID: <48a5f32a0509270742745a7dc@mail.gmail.com> Date: Tue, 27 Sep 2005 16:42:23 +0200 From: Gareth Bailey To: freebsd-questions In-Reply-To: <48a5f32a05092707187844b052@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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> Cc: kientzle@freebsd.org 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 Reply-To: Gareth Bailey List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2005 14:42:25 -0000 Just to add, I seem to be experiencing similar behaviour using the -P optio= n: # 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 >