From owner-ssh@clinet.fi  Mon May 28 07:34:04 2001
Received: from smtp1.clinet.fi (smtp1.clinet.fi [194.100.2.57])
	by hutcs.cs.hut.fi (8.9.3/8.9.3) with ESMTP id HAA08225
	for <ssh-archiver@cs.hut.fi>; Mon, 28 May 2001 07:34:04 +0300 (EET DST)
Received: from mail.clinet.fi (mail.clinet.fi [194.100.0.7])
	by smtp1.clinet.fi (Postfix) with ESMTP
	id 704F620EB0; Mon, 28 May 2001 07:34:04 +0300 (EEST)
Received: (from majordom@localhost)
	by mail.clinet.fi (8.9.3/8.9.3) id HAA10276
	for ssh-outgoing; Mon, 28 May 2001 07:18:21 +0300
Received: from eworld.wox.org (adsl-61-96-61.rdu.bellsouth.net [208.61.96.61])
	by mail.clinet.fi (8.9.3/8.9.3) with ESMTP id HAA10272
	for <ssh@clinet.fi>; Mon, 28 May 2001 07:18:20 +0300
Received: (from joden@localhost)
	by eworld.wox.org (8.9.3/8.9.3) id AAA19829;
	Mon, 28 May 2001 00:02:21 -0400
From: James Oden <joden@eworld.wox.org>
Message-Id: <200105280402.AAA19829@eworld.wox.org>
Subject: Re: Backup
To: Imran.Kalam@auspost.com.au (Kalam, Imran)
Date: Mon, 28 May 2001 00:02:21 -0400 (EDT)
Cc: ssh@clinet.fi ('ssh@clinet.fi')
In-Reply-To: <033708395F6FD4119CFD0008C7B365A808810424@exs-mel-04.hq.auspost.com.au> from "Kalam, Imran" at May 28, 2001 01:27:05 PM
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-ssh@clinet.fi
Precedence: bulk

> 
> hi all,
> 
> I have four firewalls boxes (fw1, fw2, fw3, fw4) running solaris2.6 and only
> one dat tape drive which is attached to fw1, is there any way to use ssh to
> backup fw2, fw3 and fw4 on the dat tape drive which is attached to fw1, or
> can I use ssh to backup remotely??  any help will be apprecited
>
The short answer is yes you can.  The thing you have to do is use password
less keys for RSA authentication.  This way you don't have to have a password
in order to automate the backup routine.  Essentially you end up doing 
something like:

	find . -print | cpio -ocvB | 
		ssh account@your.host dd of=/dev/rmt/0 -obs=(cpio block size)
	
You can of course use other programs than cpio (ufsdump for instance).
To restore its something like:	
	
	ssh account@your.host dd if=/dev/rmt/0 -obs=(cpio block size) |
		cpio -icvB  

The other thing you might find is that you need to prep your tape drive
(turn on compression or a particular block size support) with mt.

Another fruitful thing to do is to just do a search on "ssh" and "ufsdump".
I have been down this road before, so I know such a search should help
you.  

CAVEAT:  Its been a while since I did this, so I may have forgotten some
minor point.  My suggestion is to read your man pages on dd, mt, cpio and
ufsdump, along with any tape device documentation you have.

Cheers...james
