- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: read the name of tar file on tape
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 01:26 PM
07-22-2003 01:26 PM
read the name of tar file on tape
any help would be appreciated.
contents of tar file with tar -tvf /dev/st0 > /tmp/(name).txt
but i need to know name of
thanks for the help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 02:30 PM
07-22-2003 02:30 PM
Re: read the name of tar file on tape
It will list every tar file on every mounted filesysetm
tar tv will show by default the contents of a tape.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 03:40 PM
07-22-2003 03:40 PM
Re: read the name of tar file on tape
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 05:17 PM
07-22-2003 05:17 PM
Re: read the name of tar file on tape
The command in my first post will show the contents of the archive.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 10:44 PM
07-22-2003 10:44 PM
Re: read the name of tar file on tape
if you want to copy all tape files into a file in your filesystem you can do:
dd if=/dev/st0 of=/tmp/tape_file.tar
then you have into /tmp/tape_file.tar all the contents from your tape.
You can list/extract them with the commands:
tar tvf /tmp/tape_file.tar or
tar xvf /tmp/tape_file.tar
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 12:25 AM
07-23-2003 12:25 AM
Re: read the name of tar file on tape
if You had stored files on tape with
tar -cvf /dev/st0 /etc
then You could search for some file with
tar -tvf /dev/st0 grep "etc/hp"
for file in /etc beginnging with "hp"
if You found it use
tar -xvf /dev/st0 /etc/hp9000.txt
to restore it. the version on disk will be overwritten !
If You are using Linux the beginning "/" will not be stored so use
cd /
tar -xvf /dev/st0 etc/hp9000.txt
to extract.
bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 12:27 AM
07-23-2003 12:27 AM
Re: read the name of tar file on tape
tar -tvf /dev/st0 | grep "etc/hp"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 01:18 AM
07-23-2003 01:18 AM
Re: read the name of tar file on tape
If i understood your question, you want to know the name of file n which tar stores file in take ot backup media ?
when you take up backup in any backup media the device file name is the name of file, as you know in Unix everything is file.
so there is no other name for tar file...
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 01:24 PM
07-23-2003 01:24 PM
Re: read the name of tar file on tape
When tar is on tape then it has no name,
but if you like the name could be as the
name of tape device.
Caesar