Date: Fri, 18 Feb 2005 12:47:11 +0300 From: Vladimir Grebenschikov <vova@fbsd.ru> To: "current@freebsd.org" <current@freebsd.org> Cc: Steve Kargl <sgk@troutmask.apl.washington.edu> Subject: Re: Change tar to GNU Message-ID: <1108720031.1172.8.camel@localhost> In-Reply-To: <20050217195547.GA33893@troutmask.apl.washington.edu> References: <Pine.NEB.3.96L.1050217192913.38170c-100000@fledge.watson.org> <4214F3C2.4020102@alumni.rice.edu> <20050217195547.GA33893@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
В чт, 17/02/2005 в 11:55 -0800, Steve Kargl пишет: > 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. > > >> > > >>I just thinking what is proper way to update tar to GNU tar to make > > >>working again my script? > > > > > > > > >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 that > > >the bug, if any, can be fixed. > > > > I think the issue is simply that the --newer option does not exist in > > bsdtar. A very brief glance at the bsdtar man page didn't reveal any > > replacement. > > > > This is a Unix-like OS, so command pipes are possible. > > 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 -- Vladimir B. Grebenchikov vova@fbsd.ru
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1108720031.1172.8.camel>
