Sorry, I assumed the original poster wanted, in his own words, to verify that the tape is actually good. IMHO, Reading the first few blocks for the tar header and perhaps a portion of the first file is not sufficient. If the purpose of writing the tape is to have the assurance of a restorable backup, the time spent performing a full read pass over the tape is a small price to pay for the peace of mind that actually knowing a backup is valid provides.
That being said, the quick and dirty kludge would be to use:
..to get the first filename off of his tape.
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT BSD
mt
MT(1) General Commands Manual MT(1)NAME
mt - magnetic tape manipulating program
SYNOPSIS
mt [ -f tapename ] command [ count ]
DESCRIPTION
Mt is used to give commands to a magnetic tape drive. If a tape name is not specified, the environment variable TAPE is used; if TAPE
does not exist, mt uses the device /dev/rmt12. Note that tapename must reference a raw (not block) tape device. By default mt performs
the requested operation once. Operations may be performed multiple times by specifying count.
The available commands are listed below. Only as many characters as are required to uniquely identify a command need be specified.
eof, weof
Write count end-of-file marks at the current position on the tape.
fsf Forward space count files.
fsr Forward space count records.
bsf Back space count files.
bsr Back space count records.
rewind Rewind the tape (Count is ignored).
offline, rewoffl
Rewind the tape and place the tape unit off-line (Count is ignored).
status Print status information about the tape unit.
cacheon
Enable the readahead/writebehind cache on the tape unit.
cacheoff
Turn off the readahead/writebehind cache on the tape unit.
Mt returns a 0 exit status when the operation(s) were successful, 1 if the command was unrecognized, and 2 if an operation failed.
The cacheon and cacheoff commands currently only apply to the TMSCP driver and then only for certain drives such as the TU81+. No error is
produced by the TMSCP driver if the cache commands are used. Other drivers will return an error code since they do not recognize the
MTCACHE and MTNOCACHE functions codes. See mtio(4).
FILES
/dev/rmt* Raw magnetic tape interface
SEE ALSO mtio(4), tmscp(4), dd(1), ioctl(2), environ(7)4th Berkeley Distribution December 22, 1995 MT(1)