[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <200703150230.33141.gene.heskett@gmail.com>
Date: Thu, 15 Mar 2007 02:30:33 -0400
From: Gene Heskett <gene.heskett@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Ray Lee <ray@...rabbit.org>
Subject: Re: New thread RDSL, post-2.6.20 kernels and amanda (tar) miss-fires
On Thursday 15 March 2007, Ray Lee wrote:
>Gene Heskett wrote:
>> Here is an example
>> [root@...ote 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=<tape> 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@...ote 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
No, apparently its me that's been running with a fubar'd understanding.
I was certain that tar (or bash) should have been able to put the
recovered files IN the directory /tmp/test but that turns out to need
more options after the '-f -' section of that sample line I posted.
Thanks. A bunch..
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Mal: "You are very much lacking in imagination."
Zoe: "I imagine that's so, sir."
--Episode #8, "Out of Gas"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists