LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-14-2003, 03:31 AM   #1
chr15t0
Member
 
Registered: Jun 2002
Location: London
Distribution: Slackware
Posts: 201

Rep: Reputation: 30
DLT 40 How do I access this tape drive?


There is a cron job running on a machine on our office network. It was set up by somebody else. The script run by the cron backs up a samaba share onto tape. The job is definitely running, because if I run the backup manually, I can see the tar command's output and the drive comes alive and starts doing stuff....

The cron just runs the simple command:

tar cv /export/share >/dev/st0

but how would I access the contents of /dev/st0 if I had to recover one of these backups?

the 'ls' and 'file' commands tell me the following :

root@lon-fs-1:~# ls -al /dev/st0
crw-r----- 1 root disk 9, 0 Jul 18 1994 /dev/st0
root@lon-fs-1:~# file /dev/st0
/dev/st0: character special (9/0)

I don't know what a 'character special' file is, and it looks rather small to me. The timestamp is really old too. What is all this about?

christo
 
Old 02-14-2003, 10:13 AM   #2
Wolven
Member
 
Registered: Jan 2003
Posts: 195

Rep: Reputation: 30
Pretty much anything in /dev is going to be a special file. Unix/Linux treats everything as a file. Drivers, directories, everything (simplified speak, don't attack me folks. :_) ) is a file.


Here are some example "put on tape" / "take off of tape" commands, edited for your setup.


To back up your /etc and your /home directories:

tar cvf /dev/st0 /etc /home



To extract a backup you'd use 'x' rather than 'c':


tar xvf /dev/st0

OR to only pull back certain files:


tar xvf /dev/st0 <file(s)>



Keep in mind that whatever directory you are in is where it will put the files. So if you don't want to restore /etc over your current one, for example, you'd make sure to be in a /tmp directory...

This is just an example, and I hope it was helpful. If you need more assistance, just shout!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian won't see a DLT Tape Library evank Debian 6 10-14-2005 05:34 PM
Using dd to get an image of a DLT tape jahearne Linux - General 2 05-02-2005 06:46 PM
DLT Tape Library synpse Linux - Hardware 1 02-22-2005 12:34 PM
DLT Tape dvong3 Linux - Hardware 3 05-14-2004 03:46 AM
SCSI, DAT and DLT tape jimmy2002 Linux - Hardware 4 04-20-2004 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration