How to backup a filesystem on a remote tape drive..

2007-12-25 11:33:00

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

Comments

Got something to say?

You must be logged in to post a comment.