From owner-freebsd-questions Wed Apr 23 14:01:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA23113 for questions-outgoing; Wed, 23 Apr 1997 14:01:31 -0700 (PDT) Received: from militzer.me.tuns.ca (militzer.me.tuns.ca [134.190.50.153]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA23108 for ; Wed, 23 Apr 1997 14:01:27 -0700 (PDT) Received: from localhost (bemfica@localhost) by militzer.me.tuns.ca (8.8.5/8.8.4) with SMTP id SAA06635 for ; Wed, 23 Apr 1997 18:00:29 -0300 (ADT) Date: Wed, 23 Apr 1997 18:00:28 -0300 (ADT) From: Antonio Bemfica Reply-To: Antonio Bemfica To: freebsd-questions@freebsd.org Subject: tar options Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Could a kind soul help me figure out how to copy a tar file from a tape? I know how to extract it alright ("tar xvpf /dev/nrst0" does it), but then I have to tar it all again into a file (and I don't have enough space for it all anyway). I just want to pipe it - I tried what seemed to be all the possible combinations, with no success: tar xvpOf /dev/nrst0 | tar cvzf file.tar.gz - tar xvpf /dev/nrst0 -C - | tar cvzf file.tar.gz tar xvp --to-stdout -f /dev/nrst0 | tar cvz -f file.tar.gz - tar xvpf /dev/nrst0 -C - | tar cvzf file.tar.gz - etc... I realize this is not strictly a FreeBSD related question (eventhough the machine is a FreeBSD box), so my apologies in advance. Antonio