tar and vdump on same tape?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users tar and vdump on same tape?
# 1  
Old 12-05-2005
tar and vdump on same tape?

Hello,

This might be a dumb question, but I havent been able to find the answer anywhere.

I currently have a backup script that uses 'tar' to backup some files to tape. I need to add a directory to the backup script, but I want to use 'vdump' to back it up to tape.

So my question is can I backup using 'tar' then backup using 'vdump' to the SAME tape? Can they reside on the same tape without causing any issues?
# 2  
Old 12-05-2005
You should have no problem putting multiple types of file systems on a tape assuming there's enough room to hold it.

You'll need to "fast forward" past the tar backup (I do this on Solaris so I can't guarentee the commands I'm offering here will help, but maybe the concepts will help you find the proper commands on your OS):

mt -f /dev/rmt/0n fsf 1

On Sun, the 0n device is the first tape but it's the "no rewind device" so mt will forward to the first block past the EOF and not rewind the tape (this is important). You can change the last number if you want to back up a third block of data.

Next use the backup command to back up the data. If you have another file system to back up, you can continue past the vdump backup as long as you use a "no rewind device" for vdump. Otherwise you'll have to jump past two backup blocks:

mt -f /dev/rmt/0n fsf 2

To restore from the second backup on the tape, you use the same mt command to get past the first EOF block to the vdump backup and then restore it.

Hope that helps as I don't know what vdump is. You can also pick up O'Reilly's backup and recovery book. Excellent book.

Carl
# 3  
Old 08-12-2008
Quote:
Originally Posted by BOFH
You should have no problem putting multiple types of file systems on a tape assuming there's enough room to hold it.

You'll need to "fast forward" past the tar backup (I do this on Solaris so I can't guarentee the commands I'm offering here will help, but maybe the concepts will help you find the proper commands on your OS):

mt -f /dev/rmt/0n fsf 1

On Sun, the 0n device is the first tape but it's the "no rewind device" so mt will forward to the first block past the EOF and not rewind the tape (this is important). You can change the last number if you want to back up a third block of data.

Next use the backup command to back up the data. If you have another file system to back up, you can continue past the vdump backup as long as you use a "no rewind device" for vdump. Otherwise you'll have to jump past two backup blocks:

mt -f /dev/rmt/0n fsf 2

To restore from the second backup on the tape, you use the same mt command to get past the first EOF block to the vdump backup and then restore it.

Hope that helps as I don't know what vdump is. You can also pick up O'Reilly's backup and recovery book. Excellent book.

Carl


Hi,


first of all use:
ufsdump 0ucf /dev/rmt/0hbn /
this comand to do the backup for any file system ( here we do for root). notice the following
h : stands for high density tape
b: block
n: no rewind
0: the name of drive 1 or 2 or 3 as you defind it


second use :
tar cvf /rmt/0hbn /dataaa (dataaa is your data that you want to back it up).


yasin
# 4  
Old 08-12-2008
Hi,


first of all use:
ufsdump 0ucf /dev/rmt/0hbn /
this comand to do the backup for any file system ( here we do for root). notice the following
h : stands for high density tape
b: block
n: no rewind
0: the name of drive 1 or 2 or 3 as you defind it


second use :
tar cvf /rmt/0hbn /dataaa (dataaa is your data that you want to back it up).


yasin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

tape tar error

Hi, I am trying to determine if a tape is full because on 2 different tapes, im receiving 2 different kind of errors: # uname SunOS # /bin/tar cvf /dev/rmt/0n /export/home a /export/home/jerry/wlserver_10.0.tar.gz 28528 tape blocks tar: write error: unexpected EOF # mt -f /dev/rmt/0n... (5 Replies)
Discussion started by: mosies
5 Replies

2. Shell Programming and Scripting

validate tar file on tape

I've got a KSH/AIX question that I haven't been able to figure out yet. I've got a tape archive program that "tar's" data to a tape. After creating the archive, I'd like to somehow verify that the tape is actually good. So, what I'd like to do as a simple "sanity" check that I can read the tape... (9 Replies)
Discussion started by: dernsdorff
9 Replies

3. IP Networking

vdump or vdump on tru64 unix

i have a script on a tru64 system that backups data from severral folders on a tape the command that it uses is this : vdump 0N /usr > /dev/null (for backuping the usr folder). somehow it has predefined that /dev/null is the tape the problem is that the tape has broke down so i need an... (0 Replies)
Discussion started by: el97639
0 Replies

4. AIX

how to use tar to retrieve all tape content

Hi, I use tar to backup the following programs: tar -cvf /dev/rmt0.1 u04/devdb/log/arch tar -cvf /dev/rmt0.1 u01/app/oracle/product/10.2.0.2/dbs tar -cvf /dev/rmt0 u01/app/oracle/product/10.2.0.2/network/admin when I want to retrieve the tape content list with: tar -tvf /dev/rmt0 it... (1 Reply)
Discussion started by: victorcheung
1 Replies

5. Solaris

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... (3 Replies)
Discussion started by: nom
3 Replies

6. UNIX for Advanced & Expert Users

Does tar do crc checking on a tape or tar file?

Trying to answer a question about whether tar table-of-contents is a good tool for verifying tape data. (1 Reply)
Discussion started by: tjlst15
1 Replies

7. UNIX for Advanced & Expert Users

Tar: tape blocksize error

When trying to extract a tar file in HP-UX using tar -xvf command it exits with the following error :"Tar: tape blocksize error". Tar file is created using the following command with MKS toolkit(Unix Simulation Kit for Windows env) under Windows 2000 Professional: "$tar -cvf test.tar test.txt... (1 Reply)
Discussion started by: ramkumar
1 Replies

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

9. Filesystems, Disks and Memory

tar tvf from tape backeped using

Hi, The scenario is as follow: Backup was done using: tar cvf /dev/rmt/0mn file1.ext tar cvf /dev/rmt/0mn file2.ext tar cvf /dev/rmt/0mn file3.ext tar cvf /dev/rmt/0mn file4.ext tar cvf /dev/rmt/0mn file5.ext When I do; tar tvf /dev/rmt/0m, it only gives me the first file on the... (1 Reply)
Discussion started by: kong
1 Replies

10. UNIX for Dummies Questions & Answers

tar to tape and back

Howdy, I'm trying to tar some directories to tape and then extract them from tape on another machine. I was hoping someone could help me with the syntax of the tar commands. Both machines are running Solaris 8. Need to get all files and directories under the following: ... (6 Replies)
Discussion started by: pmetal
6 Replies
Login or Register to Ask a Question