Visit Our UNIX and Linux User Community


How to send file to the tape in Solaris?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to send file to the tape in Solaris?
# 1  
Old 08-17-2009
How to send file to the tape in Solaris?

Hi all,

I want to send some files to the tape but unfortunatelly I don't know how to do it...
My tape drive name /dev/rmt/1un, file is here - /tmp/test

Could you please show me how to do it?

Thanks in advance,
Regards,
nypreH

---------- Post updated at 02:07 PM ---------- Previous update was at 01:26 PM ----------

Ok guys, I found the answer, sorry for disturbance...
May be it will be usefull for somebody:

To read the contents of a tape (if in tar format)
# tar tvf /dev/rmt/0

To write to tape
# tar cvf /dev/rmt/0 /dir/to/backup

To extract the contents of the tape
# tar xvf /dev/rmt/0

Regards,
Roman
# 2  
Old 08-17-2009
You could have used pax, dd, cpio also...
# 3  
Old 08-25-2009
Hi guys!

I need to clarify something more...
How can I append files to remote tape using rsh?

I can send file using
tar cvf - file | rsh hostname dd of=/dev/rmt/0 conv=sync
but how can I append more files to the tape?

Thanks in advance,
Roman
# 4  
Old 08-25-2009
Your only alternative is to use a non rewind device ( would be for you: /dev/rmt/0n ) and move forward a block... look at the mans on the mt command

Last edited by vbe; 08-25-2009 at 09:16 AM.. Reason: spelling
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #846
Difficulty: Medium
The term "sideload" was coined in the late 1990s by IBM.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Add FC Tape to Solaris 10

Hello I'm pretty new in Solaris 10 and we now have to add an FC-based library to the Solaris. As far as I am informed, we have restart the Sun with the command "boot-r", to detect new devices, right? Then the library should be found automatically? How can I check if the library has been... (4 Replies)
Discussion started by: pole23
4 Replies

2. Shell Programming and Scripting

Need to send file through mail from Solaris

I have Solaris-10 and some job is writing a log. My client needs this log file every two hour in his mail. Usually I send manual mail through mailx command, as sendmail is configured with relay server, but I am not sure, how to attach file in a mail and set it in cronjob. Please give me some... (3 Replies)
Discussion started by: solaris_1977
3 Replies

3. Shell Programming and Scripting

How to send a file in email from Solaris box to MS outlook 2010

Hi I have input file in solaris machine and my question is..,how to send email that input file to Microsoft outlook 2010 in excel /xls format. (5 Replies)
Discussion started by: buzzme
5 Replies

4. Solaris

Solaris 2.6 restore from tape

Hope someone can help me here... I've got to restore an E450 with 300MHz cpus which was running Solaris 2.6 from tape. Regrettably the boot drive has failed. I've access to the first release of Solaris 2.6 CD's and to a set of Solaris 9 CD's. I remember that different E450 CPUs needed different... (1 Reply)
Discussion started by: pamplemousse
1 Replies

5. UNIX for Advanced & Expert Users

send attachments using send mail in Solaris

Hi All, I have a requirement to send and email of body html with an attachment. concatinating uuencode output to the mail body with mailx command works, but as my Email body is of HTML type i use sendmail. my command to send HTML body is as below: export MAILTO="recipient@domain.com"... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies

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

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. UNIX for Advanced & Expert Users

Space free on tape /delete a single file on tape

Hi, I' using a sun solaris server, I would like to known if there is the possibility to control how many space is free on a tape and how I can delete a single file on a tape. Thanks DOMENICO (3 Replies)
Discussion started by: Minguccio75
3 Replies

9. UNIX for Advanced & Expert Users

Problem With Tape Backup in Solaris

Hi, OS: Solaris9, SPARC. Commands (and their outputs) that I use to backup two files of size 4GB and 10GB (respectively) are shown below: # cd /backup/daily/ # mt -f /dev/rmt/0m rew # tar -cvf /dev/rmt/0m * a Mails.bkf 4680454 tape blocks a backup.bkf too large to archive # The... (3 Replies)
Discussion started by: mahatma
3 Replies

10. UNIX for Advanced & Expert Users

backup command that will send e-mail to mount 2nd tape

Hi, I'm trying to come out with a script that uses the 'backup' command to backup large filesystems. Most of the time this data takes two or three DLT tapes to complete. The backup takes too long because operations never sees the message to mount 2nd tape. I have a script that uses sysback and... (1 Reply)
Discussion started by: mvilla0993
1 Replies

Featured Tech Videos