Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2001 22:19:47 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-questions@freebsd.org
Subject:   Re: remote tar over ssh
Message-ID:  <9ogee3$1bgc$1@kemoauc.mips.inka.de>
References:  <20010921204749.8573@mail.rintrah.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Devin Smith <devin-freebsdquestions@rintrah.org> wrote:

> I have an Onstream DI-30 Tape drive that only runs under linux.

Doubtful.  As a misleading way of saying that there's no FreeBSD
driver it's correct, though.

> AFAIK, tar is the only linux utility I have which properly writes
> to it.

Doubtful.  tar uses plain write() calls, there's no special tape
access magic.

> fbsd$ tar -b 64 -cvf - /tmp  | ssh root@backup dd of=/dev/ht0

You don't give a blocksize to dd, so it uses its default of 512
bytes.  In fact, your kernel log...

> Sep 21 16:39:51 backup kernel: ide-tape: Reached idetape_chrdev_open 
> Sep 21 16:40:03 backup kernel: ide-tape: ht0: use 32768 bytes as block
> size (512 used)

... even says so.

> any suggestions?

fbsd$ tar -cvf - -b 64 /tmp | ssh root@backup dd bs=32k of=/dev/ht0

For better performance, replace dd with buffer.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9ogee3$1bgc$1>