tar on remote tape drive


 
Thread Tools Search this Thread
Operating Systems Solaris tar on remote tape drive
# 1  
Old 03-26-2007
tar on remote tape drive

hello guys,
am trying to save a file file1 to a remote tape drive using tar and i get a permission denied error as shown below:

server1%tar cvf - file1 | rsh server2 dd of=/dev/rmt/1m conv=sync
a file1 1883905K
permission denied

since server2 requires login username and password, i see in this that server2 is thus needing a username and pasword as for the rsh? i tried:

server1%tar cvf - file1 | rsh server2 -l username dd of=/dev/rmt/1m conv=sync
a file1 1883905K
permission denied

but had the same permission denied result. Smilie

how may i include the password in my command to be able to get through to server2? rsh manual entry only shows me the rsh username option rsh -l.


thanks in advance for the help and tip!

Last edited by nom; 03-26-2007 at 04:18 AM..
# 2  
Old 03-26-2007
You can't include the password on the command line. And even if you could, writing the password in a script in plaintext is a bad idea. Anyway, why don't you make entries in the user2's .rhosts file on server2?

The entry should be like 'user1 server1' or 'server1 user1'. I seem to have forgotten the format... Smilie Its been a while since I worked with .rhosts file. Check the manual for the exact format
# 3  
Old 03-27-2007
dear moderator blowtorch,

as you have instructed, i had my problem now already fixed. i can now save files using tar on a remote tape drive. i created a .rhost file on server2 with server1's user in it. but it required me also adding server1's hostname on server2's hosts.equiv file, as i had read it in the manual in http://www.mkssoftware.com/docs/man4/rhosts.4.asp

thank you so much the help and for bothering giving me this tip.

regards and more power,

nom
# 4  
Old 03-28-2007
Just be very careful. The .rhosts and the hosts.equiv files are considered to be serious security problems.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using a remote tape drive.

Hello everyone. I googled a little bit, and the best anwers i had were found in this forum. But , unfortunately, they couldn't give me a solution. So i decided to ask the question completely. I have two servers: One RHEL 5 , x64 , with a SCSI DAT72 Tape Drive. Another (the new one), with... (0 Replies)
Discussion started by: pablobhz
0 Replies

2. UNIX for Advanced & Expert Users

How to mount remote tape drive?

Good day all! I need to recover FS from backup, but the thing is that tape drive cable is not compatible with the server's input (tape drive's cable is wide, but at the server input (V240) is tight one). So, I want to connect this tape drive to another Solaris based server and mount tape drive... (3 Replies)
Discussion started by: nypreH
3 Replies

3. 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

4. UNIX for Advanced & Expert Users

tar to tape drive command

I want to use this command to tar to tape: tar cf - DIR | compress > `hostname`_`date +%m-%d-%y`.DIR.tar.Z this of course goes to the FS. How do I modify this to go directly to tape? My tape device is /dev/rmt/0 thanks. Having so many posts you should be familiar using code tags.... (7 Replies)
Discussion started by: djehresmann
7 Replies

5. AIX

savevg/tar/mksysb of server-A on remote tape drive possible ?

Every 3 months we have to do backups (smitth mksysb/lsmksysb + tar) on at least 30 workstations. We have to carry around 2 external tape drives to connect to them. It is a pain to do because it takes at least 3 days to do (evening/night shift) and users sometimes complain that there desk is not put... (1 Reply)
Discussion started by: Browser_ice
1 Replies

6. Solaris

Tar & Tape drive without media

Hi all, I would like to know what would happen if the tape (media) is not placed on the drive and a tar command is executed to backup on the tape. My problem is that tar command hanged for multiple days instead of throwing the error, Is it valid behaviour? I was unable to test the... (4 Replies)
Discussion started by: jmsathish
4 Replies

7. UNIX for Dummies Questions & Answers

How to send files to remote tape drive

We have 2 UNIX machines, 1.HP-UX 11i where oracle database running on it. 2.AIX 5 with Ultrium LTO3 tape drive connected. My query is, i want to send oracle database archive files from HP machine to the tape drive which connected on AIX machine, everyday. These files should be appended. I... (3 Replies)
Discussion started by: yashdbad
3 Replies

8. AIX

Mounting remote tape drive

Hi, Would appreciate if anyone could tell me if it is possible to mount (and use) a remote tape drive on a AIX server, and if so, what are the precise configuration steps needed? The tape drive to be mounted as a remote tape drive is present on another AIX server in the same network. ... (5 Replies)
Discussion started by: dnicky
5 Replies

9. Shell Programming and Scripting

Mounting remote tape drive

Hi, Would appreciate if anyone could tell me if it is possible to mount (and use) a remote tape drive on a AIX server, and if so, what are the precise configuration steps needed? The tape drive to be mounted as a remote tape drive is present on another AIX server in the same network. ... (0 Replies)
Discussion started by: dnicky
0 Replies

10. UNIX for Advanced & Expert Users

tar to remote tape

I tried to buckup some oracle archive logs (from a solaris machine) to a remote tape (in a HP-UX machine). I added the solaris machine name and user to .rhosts, and i tried to use this commande : tar cvf HPhost:/dev/rmt/0mn /u01/* The probleme that it gives: HPhost:/dev/rmt/0mn : No such... (1 Reply)
Discussion started by: lasgaa
1 Replies
Login or Register to Ask a Question