The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tape drives used for taking backups forumsrahul Filesystems, Disks and Memory 1 05-14-2008 09:04 AM
Tape Status shows 2 Hard errors and 5 Underruns on new tape psytropic SCO 5 04-24-2008 02:29 PM
tape drives vs. tar with multiple directories d3m00n BSD 1 12-06-2007 01:09 PM
verifying tape backups coffeebrown UNIX for Dummies Questions & Answers 0 07-31-2007 04:13 PM
backups getting it so the tape doesn't rew. justinburbridge AIX 2 05-16-2006 11:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-23-2003
WIntellect's Avatar
WIntellect WIntellect is offline
Registered User
  
 

Join Date: Sep 2002
Location: United Kingdom
Posts: 170
Multiple backups on one tape

For those with backup tapes (and I just bought and installed a Seagate one for my FreeBSD box) I want to know how to get the most out of each tape by placing multiple backups on each tape (potentially 20GB). Please correct me if I'm wrong:

First, retension the tape:
# mt retension

next, turn on compression so I get the full 20GB space:
# mt comp on

next, complete a specific folder backup (no rewind set)
# tar cvz /home

Ok - now I need help:
set an end-of-file marker for the tape location???
# mt weof 1

carry on with next folder backup
# tar cvz /usr

continue this until backup / tape completed!

Ok - Then to get back???:
move to correct folder location on tape, e.g. /usr
# mt fsf 1

untar files
# tar xvz

-------------------------------------------
Could someone with tape backup experience let me know if this is right or where I've gone wrong? MANY THANKS!!!!
  #2 (permalink)  
Old 01-23-2003
auswipe's Avatar
auswipe auswipe is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Wide Awake Wylie, Texas
Posts: 535
I normally only use one tape per tar backup with my Exabyte 8505XL so I am really interested in finding out if this is correct.
  #3 (permalink)  
Old 01-24-2003
WIntellect's Avatar
WIntellect WIntellect is offline
Registered User
  
 

Join Date: Sep 2002
Location: United Kingdom
Posts: 170
I have found a successful solution; it can be a bit complicated, but it does work:

Notes, see which device node I have used:
basic device /dev/ast0
No rewind /dev/nast0

Retension tape and compression on are correct; complete first backup with no-rewind:
# tar cf /dev/nast0 /home/root

now set the end of file marker, with rewind:
# mt -f /dev/ast0 weof 1

Ok - here's where it get interesting, you now need to forward the tape to the right location for the next archive (no-rewind) - HOWEVER, I found that when this command is issued, the "mt" program does NOT wait for the device before returning control to the command line ~ be mindful of this in your shell scripts, etc:
# mt -f /dev/nast0 fsf 1

Now do the next archive and write the "weof" marker:
# tar cf /dev/nast0 /var/
# mt -f /dev/ast0 weof 1

Do this as many times as required, but make sure you move the tape sufficient times forward each time, eg. after my "/var/" backup the tape will rewind, therefor I will have to move the 2 files foward to do the next archive (eg. mt -f /dev/nast0 fsf 2)

OK - Now to get it back!!! Easy peasy! Let's say I want the var directory back; first move to the right location then untar as usual:
# mt -f /dev/nast0 fsf 1
# tar xf /dev/ast0

Hope this helps everyone!!!!
  #4 (permalink)  
Old 01-24-2003
auswipe's Avatar
auswipe auswipe is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Wide Awake Wylie, Texas
Posts: 535
Quote:
Originally posted by WIntellect
OK - Now to get it back!!! Easy peasy! Let's say I want the var directory back; first move to the right location then untar as usual:
# mt -f /dev/nast0 fsf 1
# tar xf /dev/ast0

Hope this helps everyone!!!!
Hey, it's Friday night so I'll get crazy and play with this tonight at home. That's right, I live life on the edge!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:53 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0