Multiple backups on one tape


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Multiple backups on one tape
# 1  
Old 01-23-2003
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  
Old 01-23-2003
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  
Old 01-24-2003
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  
Old 01-24-2003
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!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Best method to encrypt AIX LTO6 tape backups?

Hello, I need to be able to encrypt LTO tapes that our AIX writes to for backups. We have a tape library (IBM TS3100) that our AIX host uses to write to LTO6 tapes. We then take those tapes off-site and restore to another AIX system using a 3580-H6S LTO6 tape drive - this is a very simple... (3 Replies)
Discussion started by: c3rb3rus
3 Replies

2. Solaris

Multiple Backups to USB 1TB Drives using dd

First of all, great web site! I have been using it for a while but just registered today. It's been a great resource for me. Now, on to my issue.;) I'm geographically separated from six (Sun v245s) development servers that I have been asked to backup and restore as development is done and... (11 Replies)
Discussion started by: ShawnD41
11 Replies

3. SCO

SCO tape backups won't restore in Ubuntu Linux environment

Hello folks. I have the following problem: I'm trying to create a tape backup of a list of files on a 10 year old server, running SCO Openserver 5.0.5 (the tape drive is a Seagate STD224000N, connected as a SCSI drive). I then want to restore the contents of this tape onto a new server... (6 Replies)
Discussion started by: klabelkholosh
6 Replies

4. UNIX for Dummies Questions & Answers

Question about a tape write error doing backups

Hello all. UNIX dummy here :p Anyway I was trying to do a full backup of my work server SUN SPARC SERVER 1000 machine (yes we are actually using this dinosaur). I did the ufsdump comand and everything was fine until I got to the dumping of regular files. During the run I got the following... (7 Replies)
Discussion started by: hammerva
7 Replies

5. AIX

Tape backups: do you always verify them after doing them ?

It may seam a bit odd that I ask this question. After you have done your backups to tapes, do you verify the content of the tapes ? - never - sometimes - always The reason I am asking is that here in the office, all the backup procedures include verifying the content of the tapes (no... (5 Replies)
Discussion started by: Browser_ice
5 Replies

6. AIX

How to optimize our tape backups ?

Hi, I am currently looking at how we can optimize and speed up our backups here. I am just a beginner operator and our system admin hardly knows anything (long term interim). There is this particular TAR backup of DB backups that for a 10.5Gb amount of files, it takes 5 hours to do the backup on... (6 Replies)
Discussion started by: Browser_ice
6 Replies

7. Solaris

Remote Backups to a Tape

My tape library is broken but backups still need to go on .I have 2 boxes running Solaris 10 Got SCSI tape drive attached to the DEV box ( my PROD Box has only fibre) I want to take the prod backup from the DEV box using ufsdump. ie /usr/sbin/ufsdump 0uvf DEV:/dev/rmt/1n... (2 Replies)
Discussion started by: Msororaji
2 Replies

8. Filesystems, Disks and Memory

Tape drives used for taking backups

Hi, I am a abit new in AIX system administration field. I want to gather knowledge about backup techniques. As per my knowledge we use Tape archives for taking backups. Can anyone pls explain me in detail abt tape archive? Whether these tape archives come along with the systems or we have to... (1 Reply)
Discussion started by: forumsrahul
1 Replies

9. UNIX for Dummies Questions & Answers

verifying tape backups

Hello all, how would i go about verifying that a tape is backing up data correctly other than restoring the backup. for example, what command would i use to check the tape for errors? Any and all help is appreciated -Coffee (0 Replies)
Discussion started by: coffeebrown
0 Replies

10. AIX

backups getting it so the tape doesn't rew.

Currently am running the backup command for AIX 5L and see that the tape is rewinding after the completion of the back. backup -0 -u -f /dev/rmt0 / >> $file 2>&1 What can I do to stop allow the backup to rew after the completion of this job? Any thoughts? Thanks again. (2 Replies)
Discussion started by: justinburbridge
2 Replies
Login or Register to Ask a Question