Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List files on a tape and erase them

Status
Not open for further replies.

mars19301

MIS
May 31, 2001
69
US
Pardon these basics, but as a newbie:
The device is /dev/rmt/0m contains an old backup:
What command do I type at the prompt to list the files?
What command do I type to erase the tape so i can reuse it?

Thank you.
Jim
 
Hi Jim,

To list the files, it would really depend how the tape was backed up,

for a tape written with tar
# tar tvf /dev/rmt/0m

fbackup
#frecover -I /tmp/indexfile -f /dev/rmt/0m

cpio
#cpio -itv < /dev/rmt/0m

The tape may not have been written with either of these as there are many other backup methods, these are commonly used however.

To reuse the tape make sure the tape isn't write protected and you can just overwrite it.

Clare
 
Hi unixqueen.

What if it was an omniback tape ?

Trunix.
 
An Omniback tape is written in segments with catalog segments after each data segment listing what data(filenames) were backed up in that segment.
To read in the header and catalog information of an Omniback tape into an Omniback database choose Media Import from Devices and Media.

Clare
 
Sorry for the delay in getting back to this, but business before pleasure:)

Anyways, above suggestions didn't work. The tape is created using ontape. I'd like to see a list of the files on the tape and then, if okay, erase them. So I need the two commands. FYI, it doesn't overwrite using ontape (indicates tape full, insert next tape).

All help is appreciated. Thank you in advance.

Jim
[bull]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top