From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965153AbXCOFGP (ORCPT ); Thu, 15 Mar 2007 01:06:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965180AbXCOFGP (ORCPT ); Thu, 15 Mar 2007 01:06:15 -0400 Received: from tapsys.com ([72.36.178.242]:32907 "EHLO tapsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965153AbXCOFGO (ORCPT ); Thu, 15 Mar 2007 01:06:14 -0400 X-Greylist: delayed 1240 seconds by postgrey-1.27 at vger.kernel.org; Thu, 15 Mar 2007 01:06:14 EDT Message-ID: <45F8CF68.8060400@madrabbit.org> Date: Wed, 14 Mar 2007 21:45:28 -0700 From: Ray Lee User-Agent: Thunderbird 1.5.0.10 (X11/20070307) MIME-Version: 1.0 To: Gene Heskett Cc: linux-kernel@vger.kernel.org Subject: Re: New thread RDSL, post-2.6.20 kernels and amanda (tar) miss-fires References: <200703130428.11014.gene.heskett@gmail.com> <200703132331.56140.gene.heskett@gmail.com> <2c0942db0703141449h5f6eb2e4sadf493741d67ecc0@mail.gmail.com> <200703142312.48852.gene.heskett@gmail.com> In-Reply-To: <200703142312.48852.gene.heskett@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Gene Heskett wrote: > Here is an example > [root@coyote data]# dd if=00010.coyote._lib.1 bs=32k count=1 > AMANDA: FILE 20070314104344 coyote /lib lev 1 comp .gz program /bin/tar > To restore, position tape at start of file and run: > dd if= bs=32k skip=1 | /bin/gzip -dc | /bin/tar -f - ... > > And the elipsis is an error if not removed. Then one is supposed to be > able to redirect tars output with the usual >/tmp/test/ syntax > > So: > [root@coyote data]# dd if=00010.coyote._lib.1 bs=32k > skip=1 | /bin/gzip -dc | /bin/tar -f - >/tmp/test/ > -bash: /tmp/test/: Is a directory > > which is the return from any variation in how the redirect is done. > > So what is it that am I doing wrong in the above command line?, so I can > add it to my helper scripts to be published eventually on zmanda.org. One of us is confused, and it may very well be me, but... the /bin/tar -f - >/tmp/test/ looks to me like it should fail exactly as bash says it does. the output redirect (>) will only write out to a file, not a directory. (So, /tmp/file should work, /tmp/file/ won't.) Are you trying to redirect where the files get restored? That should be done with a cd before doing the uncompress. Or am I misunderstanding what you're telling me? Ray