TAR command , listing backed up files


 
Thread Tools Search this Thread
Operating Systems Solaris TAR command , listing backed up files
# 1  
Old 10-03-2005
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  
Old 10-03-2005
Did you rewind the tape before giving the tar tvf command?
# 3  
Old 10-03-2005
whoops, That was it! My mistake. Thanks a ton!
# 4  
Old 10-03-2005
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

gP
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Listing only the files under a directory from the result of find command

Hi, I have a main folder 'home'. Lets say there is a folder 'bin' under 'home'. I want to check the list of files under subdirectories present under the /bin directory created in the last 24 hours. I am using the following find command under home/bin directory: find . -mtime -1 -print ... (3 Replies)
Discussion started by: DJose
3 Replies

2. UNIX for Dummies Questions & Answers

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 (9 Replies)
Discussion started by: Girish19
9 Replies

3. UNIX for Dummies Questions & Answers

Unix Command for listing files containing one text but not other.

Hi, I want to list all files present in directory those contains one specific word but exclude other. If possible suggest unix commands instead of script to do so. e.g. List all files name from directory which are having "PROMOTION" word but not "LEN_PROMOTION". Thanks (4 Replies)
Discussion started by: gauravgautam135
4 Replies

4. Solaris

Command to remove existing files in the tar files in Solaris 10

Hi, I am using solaris 10 OS.Please help me out with the commands needed in below two scenarios. 1)How to delete the existing files in the tar file. suppose i have a main tarfile named application.tar and it contains a file called ingres.tar. what is the command to remove ingres.tar... (2 Replies)
Discussion started by: muraliinfy04
2 Replies

5. Solaris

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 (1 Reply)
Discussion started by: slufoot80
1 Replies

6. Shell Programming and Scripting

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... (1 Reply)
Discussion started by: bashnewbee
1 Replies

7. Red Hat

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

8. UNIX for Dummies Questions & Answers

Long listing of files using find command on remote server via SSH

Hi , I am trying to find some files on a remote machine using the find command. >ssh -q atukuri@remotehostname find /home/atukuri/ -name abc.txt /home/atukuri/abc.txt The above command works fine and lists the file, but if I want to do a long listing of files (ls -l) its not working . ... (2 Replies)
Discussion started by: atukuri
2 Replies

9. UNIX for Dummies Questions & Answers

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

10. UNIX for Dummies Questions & Answers

ls command for listing the number of files

I've searched the man page for an option for the ls command to print the number of files in a directory. I'm moving files and folders around and thought a count of files would be a quick way to determine if I was missed one somewhere. Some "unix's" shells do this I think... maybe linux... ... (4 Replies)
Discussion started by: jimmyc
4 Replies
Login or Register to Ask a Question