From owner-freebsd-questions@FreeBSD.ORG Fri Sep 9 18:33:48 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 7D16916A420 for ; Fri, 9 Sep 2005 18:33:48 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4A2243D77 for ; Fri, 9 Sep 2005 18:33:40 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 31512 invoked from network); 9 Sep 2005 18:33:40 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 9 Sep 2005 18:33:39 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 987DB71; Fri, 9 Sep 2005 14:33:37 -0400 (EDT) Sender: lowell@be-well.ilk.org To: gjbailey@gmail.com References: <48a5f32a05090901591a16c062@mail.gmail.com> From: Lowell Gilbert Date: 09 Sep 2005 14:33:37 -0400 In-Reply-To: <48a5f32a05090901591a16c062@mail.gmail.com> Message-ID: <44u0guw0ou.fsf@be-well.ilk.org> Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Fri, 09 Sep 2005 18:33:48 -0000 Gareth Bailey writes: > I have a directory I want to backup at /usr/dir_a/dir_b. > I want to back the content of this dir to /usr/backups/dir_b > so I tried the following: > > # cd /usr/backups/dir_b > # tar -cf dir_b.tar /usr/dir_a/dir_b > > Now I have dir_b.tar which is 65MB in size. > If i then try to update modified files by doing this: > > # tar -uf dir_b.tar /usr/dir_a/dir_b > > and I end up with dir_b.tar being 130MB (double size) which > should not be the case since no files have been modified in > /usr/dir_a/dir_b. > > I do not get this problem if I do the same in the /usr/dir_a > directory. In the /usr/dir_a dir the tar file remains the same > size. > > I would much appreciate some input! [This essentially adds up to doing # tar -cf foo.tar $target_path and then immediately # tar -uvf foo.tar $target_path shows an update.] You didn't list any information about your system, so I don't even know whether you're using the Gnu tar or the libarchive one, which has been standard for a few months now. However, I'm seeing something like that on RELENG_5, with the new tar. It isn't happening to all files, though, and I haven't figured out why it's picking the files it is...