- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to dump a tar archive from a 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-02-2003 04:00 AM
07-02-2003 04:00 AM
I do have a tar archive on a DDS-2 tape that I want to dump as a file.tar on a File System.
I first tried:
>dd if=/dev/rmt/0m of=/tmp/file.tar
but the file.tar obtained is no longer respecting the tar format then.
Secondly, i tried to combine:
>tar xf /dev/rmt/0m . |tar cvf file.tar .
but I can't manage to make it.
Any clever idea :-) ???
Thanks in advance.
Romaric.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 04:03 AM
07-02-2003 04:03 AM
Re: How to dump a tar archive from a tape?
What does this produce?
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 04:08 AM
07-02-2003 04:08 AM
Re: How to dump a tar archive from a tape?
As expected, tar tvf /dev/rmt/0m lists the names of all the files in the archive.
My question is how to produce in one shot the tar file, i.e. copying it from the tape media to a FS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 04:17 AM
07-02-2003 04:17 AM
Re: How to dump a tar archive from a tape?
dd if=/dev/rmt/0m of=/tnmp/file.tar bs=10k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 04:44 AM
07-02-2003 04:44 AM
Re: How to dump a tar archive from a tape?
When you list out the files is the '/' present in every pathway?
This is 'absolute' which translates to 'overwrite'.
So try 'PAX' instead of 'TAR'. 'PAX' will translate both tar and cpio:
cd
pax -rv -s'/^\///'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 04:52 AM
07-02-2003 04:52 AM
Re: How to dump a tar archive from a tape?
I gave a try with bs=10k.
Then when passing a tar tvf or xvf on the file.tar, I get:
>Tar: error! blocksize changed
Still not making it :-(
Romaric.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 04:56 AM
07-02-2003 04:56 AM
Re: How to dump a tar archive from a tape?
The tar archive wasn't perhaps created by changing the block size in the first place?
what do you get if you do tar vtf /dev/rmt/0m?
and if you try to recover the files to disc with xvf?
The other idea would be to use pax
man pax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 04:58 AM
07-02-2003 04:58 AM
Re: How to dump a tar archive from a tape?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 04:59 AM
07-02-2003 04:59 AM
Re: How to dump a tar archive from a tape?
If the "tar -tf" command shows individual files, then I cannot imagine that you can "unbundle" then "rebundle" the files using 1 tar command.
If the files listed are individual, they will be need to be specified individually in the tar extract command. If the file listed have a path in them, specify the directory in the tar extract command.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 05:22 AM
07-02-2003 05:22 AM
Re: How to dump a tar archive from a tape?
In the first place, my tar archive was created with:
>tar cvf /dev/rmt/0m
I didn't specify any block size at this point.
tar vtf /dev/rmt/0m produces once again the expected list of files in the archive and I'm of course able to recover them onto a disc.
Once again, my concern is:
PRODUCING a ARCHIVE TAR FILE from the TAPE onto a FILE SYSTEM, i.e. NOT retrieving the files directly but rather the ARCHIVE.
I tried to compose with a pipe the following:
>tar xf /dev/rmt/0m | tar cvf file.tar, but can't manage to make it work.
I'll definitely look into pax...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 05:24 AM
07-02-2003 05:24 AM
Re: How to dump a tar archive from a tape?
try a blocksize of 1024: bs=1024
Second solution:
You can extract all files of the tape?
Then extract to /tmp/tar (tar for example so you have an empty directory) and then do a tar cvf file.tar /tmp/tar/* and you will have your dump without problems.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 05:26 AM
07-02-2003 05:26 AM
Re: How to dump a tar archive from a tape?
1024k
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 05:48 AM
07-02-2003 05:48 AM
Re: How to dump a tar archive from a tape?
The pax made it!
Thanks a bunch for your help.
Please drop me a quick reply, if you know what I mean... (you guess the purpose, you deserve it).
Also, please explain the double slashing (//) in the pax command; I didn't get it...
Thanks again.
Romaric.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 05:54 AM
07-02-2003 05:54 AM
Re: How to dump a tar archive from a tape?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 04:01 AM