retrieving files from Tape


 
Thread Tools Search this Thread
Operating Systems AIX retrieving files from Tape
# 1  
Old 06-01-2004
retrieving files from Tape

I have AIX5.1
I have tried to retrieve a file from tape with no sucsess. I had this posted in the newbies section but I think I should have tried here. I did get some good info there though on where to start. This Is what I did.
My back line is so...

cat /rd/tmp/backuplist.full | cpio -ocvBdum > $TAPEDEV
I ran these to retrieve the file.

cpio -itvB < /dev/tapedrive

cpio -itvB < /dev/tapedrive | grep filename

When I run these commands I get this error...


cpio: 0511-903 out of phase!
cpio: 0511-904 skipping 2677530 bytes to get back in phase!
one or more files lost and the previous file is possibly corrupt!
cpio: 0511-027 The file name length does not match the expected value.

I checked on a different tape and ran the first command to look at the tape and got this error..
cpio: 0511-903 Out of phase!
cpio attempting to continue..
cpio: 0511-904 skipping 2677530 bytes to get back in phase!
one or more files lost and the previous file is possibly corrupt!

Segmentation fault (coredump)
Am I missing something?
I tried to just look at the whole tape with the first command.
Could my tape be corrupt?

Thanks
Dave

Last edited by rocker40; 06-01-2004 at 01:03 PM..
# 2  
Old 06-02-2004
The answer

I think I found the problem and I thought I should let you know since you put time into this one.
I was not familiar with the backup procedure prior to a software upgrade that we had for our business application.
During the upgrade they changed our backup scripts to start backing up using cpio.
Before the upgrade we were using [Restore]
I have been using the same tapes I was before which means according to the software support that even though the tape swere copying they are not readable since they formatted for {restore] and not [cpio]
So I am change the script tonite to format the tape for [cpio] as it copies
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with retrieving files via SFTP

I have a process which generates a file and places it on my sftp server Then I connect to the sftp to retrieve the file. However for some reason, I keep getting an incomplete file. These are the steps. 1. Submit a request to my sftp file to start generating a file 2. That file is picked... (7 Replies)
Discussion started by: sidnow
7 Replies

2. UNIX for Dummies Questions & Answers

Retrieving names of files in a dir without overlapping

Hi, I have been trying to retrieve the names of files present in a directory one by one but the names of files are getting overlapped on one another. I tried the below command. ls -1 > filename please help me in getting the file names line by line without overlapping. I am using korn... (6 Replies)
Discussion started by: Pradhikshan
6 Replies

3. Solaris

files in tape

unix1{owadmin}% tar tvf /dev/rmt/1 -rw-rw-rw- 1021/10 0 Sep 11 17:54 2011 TinahPF_Far_32bit.segy tar: directory checksum error unix1{owadmin}% i know in this tape 3 files not only one file so what can i do to view 3 files and what is this error mean ( tar: directory checksum error... (2 Replies)
Discussion started by: ayman
2 Replies

4. Shell Programming and Scripting

AIX system.... deleting files in remote directory after retrieving files

Hi Friends, I am new to this , I am working on AIX system and my scenario is to retrive the files from remote system and remove the files from the remote system after retreving files. I can able to retrieve the files but Can't remove files in remote system. Please check my code and help me out... (3 Replies)
Discussion started by: vinayparakala
3 Replies

5. Solaris

help retrieving files from SunOS 5.8

Hi, I am trying to get a small amount of files off of a SunBlade 2000 running SunOS 5.8, but I'm having trouble finding a medium that will actually work. It is not networked, and it doesn't have a writable CD drive. My only options seem to be floppy disk and USB drive. However, when I insert... (11 Replies)
Discussion started by: ryanm
11 Replies

6. Shell Programming and Scripting

Retrieving files from print queue

Hi, wonder if anyone can help me out with this. I'm trying to retrieve files from a print queue on a remote server i.e. get files before they are printed. I'll be using perl to do this. I've written out some pseudocode below: Telnet to print server for ever (endless loop) pause 1 second... (0 Replies)
Discussion started by: Vovin
0 Replies

7. UNIX for Dummies Questions & Answers

retrieving files which has more than 0 bytes

Hi, Can anyone tell how to list all files in current directory which has more than 0 bytes? (4 Replies)
Discussion started by: sri2005
4 Replies

8. UNIX for Dummies Questions & Answers

Retrieving deleted files

I mistakenly deleted a script from the UNIX server. Is there any command i can type that i will retrieve my script? (3 Replies)
Discussion started by: manna
3 Replies

9. AIX

PAX error on retrieving from tape

Hi, I am using AIX 5.3.0.0 and Ultrium LTO3 Tape Drive as rmt1. I have backup some of my database file using command "pax" as pax -wvf /dev/rmt1 "./data01/abc.dmp" But when I tried to read the file from tape by issuing the command, pax -vf /dev/rmt1 The error message displayed as pax:... (4 Replies)
Discussion started by: kwliew999
4 Replies

10. UNIX for Dummies Questions & Answers

Retrieving multiple files by date

Hey all, need help with finding multiple files just by the last date modified in all subdirectries in the current directory. Ex. Root directory/multiple directories say 0-99/ multiple files Need to find all files last modified from say ....01 1 2006. Is this possible? Thanks for any... (1 Reply)
Discussion started by: fantazle
1 Replies
Login or Register to Ask a Question