TAR command , listing backed up files

Login or Register to Reply

Thread Tools Search this Thread
# 1  
TAR command , listing backed up files

I've backed up several files to tape using tar, and wish to list those that have backed up.

% tar cvf /dev/rmt/2un /s_1/oradata/pgpub/config.ora
a /s_1/oradata/pgpub/config.ora 2 tape blocks

But when I go to list the files:

% tar tvf /dev/rmt/2un
tar: tape read error

What am I doing wrong? How can I verify that it was backed up?

Thank you!
# 2  
Did you rewind the tape before giving the tar tvf command?
# 4  
i am not sure what the u means, but the n stands for NOrewind, so rewind your tape (mt -f /dev/rmt/2 rewind) and test it again. have a look at the mt man page

Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Listing contents of .tar.gz files
Hi All, I would like to know couple of ways to list the content available in tar and gzipped file without extracting. i.e., I would like to display the contents of test.tar.gz without extracting. Note :: please suggest a command other that tar -ztvf... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers
SFTP Command Help - listing files
Ok I am just going to explain what I am running step by step sftp user@hostname sftp > ls < when I run the command "ls" I get a long listing the old version, on the new version I get a short listing how can I change my new version to give me long listing by default... Solaris
tar command to explore multiple layers of tar and tar.gz files
Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to...... Shell Programming and Scripting
Shell Programming and Scripting
How to see files backed up on tape using dd command
Hi all, I need some help... - I have two servers - serverA and serverB. - ServerB has a tape drive - I took a backup of some files on serverB on to tape drive on serverA. - I used the following command: serverB> tar cvfb - 20 ./<file> | ssh <serverA> 'dd of=/dev/nst0 bs=20b' - I...... Red Hat
Red Hat
find command -- listing files twice
I noticed the other day that after i used the find command to search for some files, the computer listed them twice -- first with just the names of the files (meaning ./(then the individual file names), then with the directory name, followed by the file names (./directory name/file name). I was...... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers