[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <45F8CF68.8060400@madrabbit.org>
Date: Wed, 14 Mar 2007 21:45:28 -0700
From: Ray Lee <ray@...rabbit.org>
To: Gene Heskett <gene.heskett@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: New thread RDSL, post-2.6.20 kernels and amanda (tar) miss-fires
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
-
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