Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

can i use tar command to do remote tape copy & how

40 views
Skip to first unread message

Panasert Engineering

unread,
Oct 28, 1996, 3:00:00 AM10/28/96
to

Presently I have 3 RS/6000 system and a tape drive. I'm planning to fix
it to one of the system permanently.

If I want to perform a tape copy for a remote system from that having
the tape drive, can i use tar command? If it's possible, what is the
command line look like

Thank you
Vincent Mak


Steve McDougall

unread,
Oct 28, 1996, 3:00:00 AM10/28/96
to

Panasert Engineering <masp...@singnet.com.sg> wrote:

>Thank you
>Vincent Mak


Vincent,

I am not sure if the AIX tar command supports the remote tape
format (you may need to check the manual entry for this). If it
does, the format of the command will be something like this:

tar -cf <tapehost>:/dev/rmt0 <fileset>

where <tapehost> is the name (or address) of the 6000 with the
tape drive attached, and <fileset> is the files you want to back
up.

If you don't have any luck with the tar command, I suggest you
use the AIX backup command (using the by-inode) option. I know
for certain that this utility supports remote tape protocol. In
addition to this, the restore command has a really handy
interactive option for getting specific files back from an
archive. If you have further queries, please e-mail me.

Steve McDougall (prs...@ozemail.com.au)
Overseas Technical Infrastructure Support
Australian Dept of Immigration and Multicultural Affairs


Stan Driggs

unread,
Oct 30, 1996, 3:00:00 AM10/30/96
to masp...@singnet.com.sg

Steve McDougall wrote:

>
> Panasert Engineering <masp...@singnet.com.sg> wrote:
>
> >If I want to perform a tape copy for a remote system from that having
> >the tape drive, can i use tar command? If it's possible, what is the
> >command line look like
>
> >Vincent Mak

>
> If you don't have any luck with the tar command, I suggest you
> use the AIX backup command (using the by-inode) option. I know
> for certain that this utility supports remote tape protocol. In
> addition to this, the restore command has a really handy
> interactive option for getting specific files back from an
> archive. If you have further queries, please e-mail me.
>
> Steve McDougall (prs...@ozemail.com.au)

Steve is right, the backup and restore protocol is easier to use. The
remote version of backup is called rdump on AIX. Try something like
this:

rdump -0 -ufhost:/dev/rmt0.1 -d 6250 -s 33000 /usr/local

where host is the name of the machine with the tape drive.
You need the -d and -s options so it doesn't think you are
out of tape halfway through the backup.

If you have your heart set on tar, you could pipe it through
rsh like this:

tar -cf - | rsh host dd of=/dev/rmt0

This should work, but not as easy.

Stan

----------------------------------------------------
Stan Driggs ENSCO, Inc.
Sr. Systems Engineer ISS Division
Email: st...@ensco.com 1277 Taylor Rd.
Voice: (607) 751-5502 Owego, NY 13827
FAX : (607) 687-4733
----------------------------------------------------

Michael Abel

unread,
Nov 5, 1996, 3:00:00 AM11/5/96
to

Steve,

AFAIK AIX tar is not aware of remote tape drives like
the rdump command is. In order to use tar via the net
I would recommend something like

tar -cvf- . | rsh desthost "dd of=/dev/rmt0"

this tar writes the archive to stdout which is piped to
the remote process dd which writes the data to the
tape drive.

This normally won't work out of the box. One will need
trusted hosts etc. etc.

Regards,
Michael


In article <552699$5...@reader1.reader.news.ozemail.net>,
Steve McDougall writes:

Panasert Engineering <masp...@singnet.com.sg> wrote:

>Presently I have 3 RS/6000 system and a tape drive. I'm planning to fix
>it to one of the system permanently.

>If I want to perform a tape copy for a remote system from that having


>the tape drive, can i use tar command? If it's possible, what is the
>command line look like

>Thank you
>Vincent Mak


Vincent,

I am not sure if the AIX tar command supports the remote tape
format (you may need to check the manual entry for this). If it
does, the format of the command will be something like this:

tar -cf <tapehost>:/dev/rmt0 <fileset>

where <tapehost> is the name (or address) of the 6000 with the
tape drive attached, and <fileset> is the files you want to back
up.

If you don't have any luck with the tar command, I suggest you


use the AIX backup command (using the by-inode) option. I know
for certain that this utility supports remote tape protocol. In
addition to this, the restore command has a really handy
interactive option for getting specific files back from an
archive. If you have further queries, please e-mail me.

Steve McDougall (prs...@ozemail.com.au)

Thorsten Coordes

unread,
Nov 6, 1996, 3:00:00 AM11/6/96
to Panasert Engineering

Panasert Engineering wrote:
>
> Presently I have 3 RS/6000 system and a tape drive. I'm planning to fix
> it to one of the system permanently.
>
> If I want to perform a tape copy for a remote system from that having
> the tape drive, can i use tar command? If it's possible, what is the
> command line look like
>
> Thank you
> Vincent Mak

Hi,

install gtar from GNU, this can do what you want to have!

TC
--
Thorsten Coordes
ZARM - University of Bremen Tel.: +49 - 421 - 218 - 4330
Am Fallturm Fax: +49 - 421 - 218 - 2521
28359 Bremen e-Mail: t...@zarm.uni-bremen.de

Daniel E Whicker

unread,
Nov 9, 1996, 3:00:00 AM11/9/96
to

In article <328048D9...@zarm.uni-bremen.de>, Thorsten Coordes <t...@zarm.uni-bremen.de> wrote:
>Panasert Engineering wrote:
>>
>> Presently I have 3 RS/6000 system and a tape drive. I'm planning to fix
>> it to one of the system permanently.
>>
>> If I want to perform a tape copy for a remote system from that having
>> the tape drive, can i use tar command? If it's possible, what is the
>> command line look like

You can do that fairly easily. I have the command posted on my wall at work,
but can't remember exactly what it is. It involves using rsh and tar. If you
need to, you can call the AIX support line and ask the backup group.

Kim McSorley

unread,
Nov 11, 1996, 3:00:00 AM11/11/96
to

In article <328048D9...@zarm.uni-bremen.de>, Thorsten Coordes <t...@zarm.uni-bremen.de> writes:
|> Panasert Engineering wrote:
|> >
|> > Presently I have 3 RS/6000 system and a tape drive. I'm planning to fix
|> > it to one of the system permanently.
|> >
|> > If I want to perform a tape copy for a remote system from that having
|> > the tape drive, can i use tar command? If it's possible, what is the
|> > command line look like
|> >
|> > Thank you
|> > Vincent Mak

Check into AIX System Backup & Recover/6000 (aka sysback). It will do
pretty much anything you want remotely and is supported. It's much
safer to just buy sysback... That's what we do.

=)

David Pitts

unread,
Nov 11, 1996, 3:00:00 AM11/11/96
to

We use tar in combination with rsh for a number of processes...
For example, if we want to move an account from node e1 to node e2, then
we run this command (as root, from node e1, and in the correct
directory, with proper .rhosts settings):
tar -cvf - . | rsh e2 "cd /home; tar -xvf -"
This command can be easily modified to go to tape, or to do other files,
or whatever.

--
David Pitts
Computer Consultant for BEST Consulting, Seattle, Washington
Systems Administrator, Programmer, Web Administrator
http://mk.net/~dpitts

Dominic Lancaster

unread,
Nov 13, 1996, 3:00:00 AM11/13/96
to

Kim McSorley wrote:
>
> In article <328048D9...@zarm.uni-bremen.de>, Thorsten Coordes <t...@zarm.uni-bremen.de> writes:
> |> > Thank you
> |> > Vincent Mak
>
> Check into AIX System Backup & Recover/6000 (aka sysback). It will do
> pretty much anything you want remotely and is supported. It's much
> safer to just buy sysback... That's what we do.
>
> =)

I disagree with your statement about SYSBACK, it is NOT supported, it is listed as RPQ (Request
Price Quotation), which means you pays your money, you get the product, if something happens - don't
bother calling IBM (and I've had this before with SYSBACK).

While it's a great looking product, you just try and get support for it when the s__t hits the fan!

So saying, it may just do all you want, but make sure that you test all scenarios before
relying on it too much


my 2c worth (and since I'm in Australia, it's probably only 1.25c in US)


Dominic

John Groves

unread,
Nov 15, 1996, 3:00:00 AM11/15/96
to

Kim McSorley wrote:
>
> In article <328048D9...@zarm.uni-bremen.de>, Thorsten Coordes <t...@zarm.uni-bremen.de> writes:
> Panasert Engineering wrote:
> >
> > Presently I have 3 RS/6000 system and a tape drive. I'm planning to fix
> > it to one of the system permanently.
> >
> > If I want to perform a tape copy for a remote system from that having
> > the tape drive, can i use tar command? If it's possible, what is the
> > command line look like
> >
> > Thank you
> > Vincent Mak

Open Microsystems sells a product called DistribuTAPE which supports
remote tape drives by placing a pseudo tape driver on the client system.
With DistribuTAPE, tar cannot tell the difference between local & remote
tape drives. This makes remote tape drives look (to applications)
exactly as if they were locally connected. DistribuTAPE is available on
both AIX and Solaris, including cross-platform sharing. AIX systems can
even mksysb
to remote tape drives, on either AIX or Solaris. You can get more info,
and download a demo, from our web site:
http://www.openmic.com

John Groves
j...@openmic.com
Open Microsystems Inc.
(800) 450-0575

0 new messages