Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Sep 2000 22:42:31 -0700
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        igorr@crosswinds.net
Cc:        FreeBSD questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: GNU tar on FreeBSD
Message-ID:  <20000919224231.P367@149.211.6.64.reflexcom.com>
In-Reply-To: <20000920080632.A11387@linux.rainbow>; from igor@raduga.dyndns.org on Wed, Sep 20, 2000 at 08:06:32AM %2B0400
References:  <20000920080632.A11387@linux.rainbow>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000919224231.P367>