Date: Sun, 18 Jun 2017 13:37:22 -0700 From: David Christensen <dpchrist@holgerdanske.com> To: freebsd-questions@freebsd.org Subject: Re: tar: Failed to open '/dev/sa0' Message-ID: <a1b0e753-6ad1-5425-e41e-a6350c746b7c@holgerdanske.com> In-Reply-To: <9fa11efc8dc815b02b53565e468c7eb6@perso.pw> References: <9369978e-7041-3ef9-2cb4-66555054425b@holgerdanske.com> <9fa11efc8dc815b02b53565e468c7eb6@perso.pw>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06/18/17 13:21, Solène Rapenne wrote: > Je 2017-06-18 20:59, David Christensen skribis: >> 2017-06-18 11:53:14 dpchrist@freebsd ~ >> $ tar c .thunderbird > dpchrist-thunderbird-20170618.tar >> tar: Failed to open '/dev/sa0' > I think the syntax should be > > tar cf - .thunderbird > output.tar > > or > > tar cf output.tar .thunderbird > > /dev/sd0 is a tape device IIRC, tar assume you want to save to a tape > by default, that's why you have to use the f flag (to a file or to > standard output) Yes -- thank you: 2017-06-18 13:31:20 dpchrist@freebsd ~ $ tar cf - .thunderbird > output.tar 2017-06-18 13:31:37 dpchrist@freebsd ~ $ gtar cf - .thunderbird > output.gtar 2017-06-18 13:31:52 dpchrist@freebsd ~ $ ls -l output.* -rw-r--r-- 1 dpchrist dpchrist 223703040 Jun 18 13:31 output.gtar -rw-r--r-- 1 dpchrist dpchrist 223119360 Jun 18 13:31 output.tar I STFW yesterday, found that solution, and thought I had tried it. But, the tar command is issued over SSH by a Perl script running on another machine with the output piped to that other machine, so I must have confused myself with too many levels of indirection.... David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a1b0e753-6ad1-5425-e41e-a6350c746b7c>