Sponsored Content
Full Discussion: tar and vdump on same tape?
Top Forums UNIX for Advanced & Expert Users tar and vdump on same tape? Post 302224073 by yasin on Tuesday 12th of August 2008 07:25:55 AM
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
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
AMVERIFY(8)						      System Manager's Manual						       AMVERIFY(8)

NAME
amverify - check an Amanda tape for errors SYNOPSIS
amverify config [ slot [ runtapes ] ] DESCRIPTION
Amverify reads an Amanda format tape and makes sure each backup image can be processed by amrestore and, if possible, the appropriate restore program (e.g. tar). Amverify runs amrestore on each file of the tape and pipes the output to a restore program (if available) with an option to create a cata- logue of the backup. The catalogue itself is discarded. Only the success or failure of the operation itself is reported. If the backup image cannot be processed by the restore program, e.g. if it was written on a different operating system, the image is sent through dd to /dev/null. This still determines if the tape is readable, but does not do any internal consistency check on the image. If config is set up to use a tape changer, the slot argument may be used to choose the first tape to process. Otherwise, the current slot is used. The runtapes configuration parameter determines how many tapes are processed unless it is specified on the command line. See the amanda(8) man page for more details about Amanda. AUTHOR
Axel Zinser <fifi@icem.de> SEE ALSO
amrestore(8), amanda(8), amverifyrun(8) AMVERIFY(8)
All times are GMT -4. The time now is 02:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy