From owner-freebsd-current@FreeBSD.ORG Fri Feb 18 09:47:20 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 599E416A4CE; Fri, 18 Feb 2005 09:47:20 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3E2043D2F; Fri, 18 Feb 2005 09:47:17 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.44 (FreeBSD)) id 1D24jA-000F3A-Nr; Fri, 18 Feb 2005 12:47:13 +0300 From: Vladimir Grebenschikov To: "current@freebsd.org" In-Reply-To: <20050217195547.GA33893@troutmask.apl.washington.edu> References: <4214F3C2.4020102@alumni.rice.edu> <20050217195547.GA33893@troutmask.apl.washington.edu> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Fri, 18 Feb 2005 12:47:11 +0300 Message-Id: <1108720031.1172.8.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: Robert Watson cc: Steve Kargl Subject: Re: Change tar to GNU X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2005 09:47:20 -0000 =F7 =DE=D4, 17/02/2005 =D7 11:55 -0800, Steve Kargl =D0=C9=DB=C5=D4: > On Thu, Feb 17, 2005 at 01:42:58PM -0600, Jon Noack wrote: > > Robert Watson wrote: > > >On Thu, 17 Feb 2005, Kaspars wrote: > > >> I have backup script build with tar and -newer options. > > >>on FreeBSD 4.x it worked and i see: > > >>$tar --version > > >>tar (GNU tar) 1.13.25 > > >> > > >>on FreeBSD 5.3 not working and I found: > > >>$tar --version > > >>bsdtar 1.01.011, libarchive 1.01.013 > > >>Copyright (C) 2003-2004 Tim Kientzle > > >> > > >>So I understand that you change own tar to make different licence.=20 > > >> > > >>I just thinking what is proper way to update tar to GNU tar to make > > >>working again my script?=20 > > > > > > > > >You can install the GNU tar as a package; however, it would be quite > > >helpful if you could describe the problem in a little more detail so t= hat > > >the bug, if any, can be fixed. > >=20 > > I think the issue is simply that the --newer option does not exist in=20 > > bsdtar. A very brief glance at the bsdtar man page didn't reveal any=20 > > replacement. > >=20 >=20 > This is a Unix-like OS, so command pipes are possible. >=20 > find $PATH -newermt 20050214 | xargs tar cf new.tar This is invalid example, xargs can invoke tar multiple times and override archive, it should be as minimum -x key for xargs to fail in case of too many files find $PATH -newermt 20050214 | xargs -x tar cf new.tar --=20 Vladimir B. Grebenchikov vova@fbsd.ru