define .rhost file for tape backup to remote host


 
Thread Tools Search this Thread
Operating Systems Solaris define .rhost file for tape backup to remote host
# 1  
Old 02-22-2009
define .rhost file for tape backup to remote host

howdy experts,

i am using 2 server- Solaris 5.9

i have tape device attached with 1 of my solaris server. But others not.

# modinfo|grep tape
152 13d43e4 1333c 33 1 st (SCSI tape Driver 1.231)

now i want to Backup DATA file and System File in Tape Drive.

How do I take data and system backup from 2nd Solaris server (which don't have tape drive) ??

By editing .rhosts file in 1st server, right? But don't know how to..

need ur help

thanks.
//purple
# 2  
Old 02-22-2009
You can use NFS mount option
# 3  
Old 02-23-2009
You can find instructions for what you are asking here: How to Backup a File System to Tape (System Administration Guide: Devices and File Systems) - Sun Microsystems

However, it is generally accepted security policy not to use rhosts and in the clear connections between systems (especially since ufsdump is typically run as root). I prefer to pipe the ufsdump output through ssh and use dd at the other end to send the dump stream to the tape. This gets a little more complicated, but it's manageable.

I set up a dump user who has access to the tape device. I set up ssh certificates for automatic login for that user, and otherwise restrict what that user can do. You can get instructions on how to do the automatic login here: OpenSSH Public Key Authentication

I also prefer to use fssnap to snapshot the file system and then ufsdump the snapshot. That improves your odds of getting a good backup on a live system, which is a good thing to do even if you are doing it in the middle of the night and expect it (a server, say) to be somewhat quiescent anyway.

Then, when I have the ufsdump run in a script as root, the command sequence looks something like this:

WHICHSNAP=`/usr/lib/fs/ufs/fssnap -o raw,bs=$SNAPSHOTS,unlink $PARTITION`;
/usr/lib/fs/ufs/ufsdump ${LEVEL}cnlTfuN 2h - $RAWDEV $WHICHSNAP | \
su - backup -c "ssh $TAPESERVER \"dd obs=64b of=$TAPDEV\"';
/usr/lib/fs/ufs/fssnap -d $PARTITION;

That's a somewhat simplified extract from a script I've been using on Solaris 9 systems with a dds/3 drive for a couple of years. Obviously, on the other system, you have to stage the tape and make sure it is available. When you toss in error checking/reporting and so in, it gets more complicated. At some point, it works alright, but you say to heck with it and jump to a more serious backup solution like Amanda. All depends on where you are on the curve and how many systems you have to deal with.

You should do man pages on ufsdump and fssnap to understand the parameters they are called with and how they work.
# 4  
Old 02-24-2009
hi
create .rhosts file in /
put + in first line of the file...

we can use hostname too...

try this... revert back...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Pause processes in remote host and resume execution in another remote host

Hi, Given addresses of 2 remote machines, using a shell script is it possible to get the state of running processes in "src" stop all the processes in "src" exit out of "src" ssh into "dest" resume the state of executing processes captured in step 1 in "dest" Assumption: "src" is... (3 Replies)
Discussion started by: Saeya Darsan
3 Replies

2. AIX

Backup to a remote tape device. Is it possible?

Hi all The situation is as follows: We need to take an mksysb image from an AIX 6.1 server. From some reason (irrelevant to this discussion) this server does not have access to a local CD-ROM or a tape drive. We do have another server with AIX 6.1 (but different technology level) which got access... (1 Reply)
Discussion started by: abohmeed
1 Replies

3. UNIX for Dummies Questions & Answers

Remote Tape Backup Using cpio

Hi all, I've got two HP machines running HP-UX 11.31 and would like to remotely backup one server onto another server's tape unit using the cpio command. The two servers use a secured communication channel, i.e ssh. Kindly help, Koketso (1 Reply)
Discussion started by: Koketso
1 Replies

4. Solaris

Backup to remote tape drive

Hello all, I'm trying to backup some files on a solaris 10 machine to the remote tape drive connected to another solaris 10 machine. I have set up rsh to allow for password-less connection between the servers, but I'm not able to write to the tape with the command: root@sdp4a>tar cvf... (1 Reply)
Discussion started by: kerrygold
1 Replies

5. Solaris

backup through tar command on remote tape

Hello Everybody I have two servers, name A & B. I need to take a backup of one directory(/girish) on serverA. But my tape drive is in serverB through tar command. But when I run the following command it doesn't take the backup. Could any one correct my command to take a backup tar cvf - ... (0 Replies)
Discussion started by: girish.batra
0 Replies

6. UNIX for Dummies Questions & Answers

Check backup file size on backup tape

Hi, I performed backup on tape and I want to append more files to my previous backup on the same backup tape. But before I do that I need to know the backup file size of the first backup I performed so that I know the available size on the backup tape. Can someone help me what command I will use... (0 Replies)
Discussion started by: ayhanne
0 Replies

7. UNIX for Dummies Questions & Answers

Mounting DLT tape and to backup file to tape

Hi there: I'm new here Can anyone help me: I have DS15 Alpha server : Unix 5.1B Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit. What is the exact comman to mount the DLTape IV?? How do i make backuo @ copy file to the tape? Thanx to all (0 Replies)
Discussion started by: ayzeayem
0 Replies

8. Solaris

Backup over network to remote tape drive

I am currently using tar to backup a server that has 9gb of data. This is fine and works fine, as part of this I send the backup to a remote tape on a remote server using rsh.. This is not very secure though is it? Whats the best idea here - is there another way I should do this to be more... (1 Reply)
Discussion started by: frustrated1
1 Replies

9. Shell Programming and Scripting

remote tape backup

i have two main servers which are both hpux. the problem is that i only have single dat drive to use with my backup (using tar command). it always takes me alot of time to perform this activity since the backup can only be done one at a time. there are other hpux box with a dat drive attached on... (3 Replies)
Discussion started by: inquirer
3 Replies

10. UNIX for Advanced & Expert Users

rsh: remote tape backup

I am trying to perform a remote tape backup from one SCO openserver to another remote SCO Openserver which happens to have a tape drive configured. I have added entries into host.equiv and .rhosts on the tape drive server: prodution_server root # This is equivalent to the hostname and... (1 Reply)
Discussion started by: cstovall
1 Replies
Login or Register to Ask a Question