Sponsored Content
Full Discussion: validate tar file on tape
Top Forums Shell Programming and Scripting validate tar file on tape Post 302544459 by Yeaboem on Wednesday 3rd of August 2011 10:03:24 PM
Old 08-03-2011
Another tip from the 1980's ... adjust your file selection list fed to the tar command to include some "First" and "Last" file. You can then write a script to verify the integrity of your tapes (before sending off-site?) by reading back the "First" and "Last" files. If you accidentally overflowed your tape, or the tape is "bad", you'll be missing the "Last" file when your tar -x completes, prompting further investigation.
 

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. Filesystems, Disks and Memory

dump and tar backup in one tape

Hi all! I'm new in this forum. I need to ask a few question. I would like to know if it is possible to use dump and tar command for backup in one tape. If it is possible, how do I restore it back? Fyi, I'm using the Digital Unix 4.0E OSF/1 box. (old box) :-) Thank you. :) (0 Replies)
Discussion started by: apokobondo
0 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. UNIX for Advanced & Expert Users

tar: tape blocksize error

Hi, I have tar: tape blocksize error when launching # gunzip < TierDB.tar.gz |tar -xvf /data/ora/DREC tar: tape blocksize error Can you please help me ? It is urgent. Many thanks. (1 Reply)
Discussion started by: big123456
1 Replies

7. UNIX for Dummies Questions & Answers

Writing tar file to tape

Hi Guy`s I`m a newbie to Unix and I`m starting to love it I got stuck donig backups of tar files to tape I use this to find all tar files find . -name '*.tar.*' > output in output there would be n of file eg. 6 the size output is 156 but tar files are: 9.3M Jul 18 09:48... (1 Reply)
Discussion started by: donovan
1 Replies

8. UNIX for Advanced & Expert Users

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

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

10. Solaris

UNIX : how can I recover a corrupt tar file from a tape?

I've a tape contains a corrupt tar file. I'm using Unix SunOS 5.5.1. So when I run this command : dd if=/dev/rmt/0 of=/tmp/outputfile.tar I get this error message : warning /pci@1f, 0/pci@1/pci@1/sunw, isptwo@4/st@4,0 (sty): Error for command : read Error Level: Fatal Requested... (2 Replies)
Discussion started by: akaderb
2 Replies
AMLABEL(8)						      System Manager's Manual							AMLABEL(8)

NAME
amlabel - label an Amanda tape SYNOPSIS
amlabel [-f] config label [ slot slot ] DESCRIPTION
All Amanda tapes must be pre-labeled before they are used. Amanda verifies the label in amdump and amflush before writing to make sure the proper tape is loaded. Amlabel writes an Amanda label on the tape in the device specified by the amanda.conf file in /etc/amanda/config. Label may be any string that does not contain whitespace and that matches the amanda.conf labelstr regular expression option. It is up to the system administrator to define a naming convention. Amlabel appends the new tape to the tapelist file so it will be used by Amanda before it reuses any other tapes. When you amlabel multiple tapes, they will be used in the order you amlabel them. Amlabel will not write the label if the tape contains an active Amanda tape or if the label specified is on an active tape. The -f (force) flag bypasses these verifications. An optional slot may be specified after the tape label. If a tape changer is in use, amlabel will label the tape in the specified slot instead of the currently loaded tape. See the amanda(8) man page for more details about Amanda. EXAMPLE
Write an Amanda label with the string "DMP000" on the tape loaded in the device named in the tapedev option in /etc/amanda/Daily- Set1/amanda.conf: % amlabel DailySet1 DMP000 Label the tape in slot 3 of the currently configured tape changer with the string "DMP003": % amlabel DailySet1 DMP003 slot 3 MESSAGES
label label doesn't match labelstr "str" Label label on the command line does not match the labelstr regular expression str from amanda.conf. label label already on a tape Label label is already listed as an active Amanda tape. no tpchanger specified in "path", so slot command invalid The command line has the slot parameter but the amanda.conf file in path does not have a tape changer configured. reading label label, tape is in another amanda configuration This tape appears to be a valid Amanda tape, but label does not match labelstr for this configuration so it is probably part of a different Amanda configuration. reading label label, tape is active Tape label appears to already be part of this Amanda configuration and active, i.e. has valid data on it. no label found, are you sure tape is non-rewinding? While checking that the label was written correctly, amlabel got an error that might be caused by mis-configuring Amanda with a rewinding tape device name instead of a non-rewinding device name for tape. AUTHOR
James da Silva <jds@cs.umd.edu> University of Maryland, College Park SEE ALSO
amanda(8) amdump(8) amflush(8) AMLABEL(8)
All times are GMT -4. The time now is 01:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy