[ale] problems with ssh to tape
Geoffrey
lists at serioustechnology.com
Mon Mar 30 17:05:54 EDT 2009
Jeff Lightner wrote:
> The "n" in name is "no rewind". When you write to a tape like that it
> leaves it at the end of the tape so your read request is for anything
> AFTER the backup. What you need to do is to rewind the tape and then do
> the read.
I am rewinding the tape, via:
mt -f /dev/nts0 asf 0
> You can make it automatically rewind at the end of a backup by using st0
> instead of nst0.
Don't want to do that, because I'm dropping multiple tar files on the
tape, something like:
for n in 1 2 3;do
ssh foo$n "tar -cf $BackupThis" | > /dev/nts0
done
>
> The reason for using a no rewind device like nst0 is to add other
> backups to the same tape without overwriting the existing backup. If
> you're not doing that then no need to use the nst0 device.
That is what we are doing.
>
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
> Geoffrey
> Sent: Monday, March 30, 2009 4:36 PM
> To: ALE
> Subject: [ale] problems with ssh to tape
>
> I'm trying to write backups directly to tape as follows:
>
> ssh $mach "tar -cf - $BackupThis" > /dev/nst0
>
> but when I try to read it from the tape I get:
>
> tar: /dev/nst0: Cannot read: Cannot allocate memory
>
> I've tried tarring directly to the tape from the local machine and that
> works fine.
>
> Anyone else tried this? Suggestions?
>
--
Until later, Geoffrey
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
- Benjamin Franklin
More information about the Ale
mailing list