From owner-freebsd-questions Tue Sep 19 22:43:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 26A4737B422 for ; Tue, 19 Sep 2000 22:43:08 -0700 (PDT) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Tue, 19 Sep 2000 22:41:40 -0700 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id e8K5ga018018; Tue, 19 Sep 2000 22:42:36 -0700 (PDT) (envelope-from cjc) Date: Tue, 19 Sep 2000 22:42:31 -0700 From: "Crist J . Clark" To: igorr@crosswinds.net Cc: FreeBSD questions Subject: Re: GNU tar on FreeBSD Message-ID: <20000919224231.P367@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <20000920080632.A11387@linux.rainbow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000920080632.A11387@linux.rainbow>; from igor@raduga.dyndns.org on Wed, Sep 20, 2000 at 08:06:32AM +0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Sep 20, 2000 at 08:06:32AM +0400, Igor Roboul wrote: > Hello, > I have one question about GNU tar on FreeBSD. > > It has -T option which gives file name from which tar will get file list. > On GNU/Linux I can use command: > "find $f ! -name $f -type f -newer /usr/local/etc/backup/last_`basename $f` \ > | tar czT - -f $STORAGE_DIR/$bf.tgz" > > On FreeBSD I got tar: "too many args with -T option" > > Ok, I tried > find [...] >file > and then tar cz -T file -f $STORAGE_DIR/$bf.tgz and got > > tar: can't add file -Ttar (child): : No such file or directory > can't open archive /dev/rsa0 : Device not configured > > One thing I can not understand. We have GNU tar. We have GNU gzip, but why > I cant get same results? > I can rewrite my backup process with cpio (it gets file names from stdin by > default) But "WHY?" Because on every tar(1) I have ever used has the 't' option do what you ask. Again, 't' not 'T.' You coulda RTFM. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message