SUMMARY:Re: How to backup a filesystem on a remote tape drive..

From: rbhasin@hss.hns.com
Date: Mon Nov 29 1999 - 23:32:21 CST


Hi,
Thanks and regards to all those who responded.I recieved a lot of replies and
most of them pointed
to basicaly backing up the filesystem using tar,cpio and ufsdump.So the summary
of the commands
are given below:

Using TAR:
#tar cf - files|rsh <remote m/c name> dd of=/dev/rmt/0

Using cpio:

#find . -print|cpio -ocB|rsh <remote m/c name> 'dd of=/dev/rmt/0

Using UFSDUMP:
#ufsdump 0ucf <remote m/c name>:/dev/rmt/0 files

The .rhosts file under / has to be appended of the remote m/c with the entry:

Localm/c root

or suppose if the local m/c contains the tape drive and the filesystem of remote
m/c is to be backed up then the following procedure can be followed:

1) On the remote machine open up "r-services", this will probably mean creating
a /.rhosts file with the name of the local machine in the /.rhosts file. I
SHOULD MENTION THIS OPENS A BIG SECURITY HOLE.

2) On the local machine type the following ..

 rsh <remote_machine> "cd <remote_filesystem>; find . -print | cpio -ocvB" >
/dev/rmt/0n

Thanx to all
Rajan Bhasin

Problem description:

Hi,
Can anyone guide me that how can I backup a filesystem on a tape drive mounted
on a remote Sun m/c on the fly i.e.without mounting the filesystem on the m/c
where the tape drive is located.I don't want to mount the filesystem onto the
remote m/c using nfs.So is there any way out for backing up the filesystem using
any backup command like tar,cpio etc.

Thanx in advance

Rajan Bhasin
rbhasin@hss.hns.com
System Engineer
Hughes Software System
Gurgaon,India



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:33 CDT