LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-08-2009, 09:07 AM   #1
dmac05
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Rep: Reputation: 0
Unhappy pax with -x xtar option


Hi,

I have changed my system Alpha ES40 HP Tru64Unix v5.1 to Sun Solaris V890 v5.10.
In my old system i used to backup and restore a 100 GB single file (an oracle logical backup (export) file ) to DDS4 tape driver (two DDS4 data cartridge) with pax tool as fallows:

Backup: pax –w –p e –v –x xtar –f /dev/tape/tape0c
restore: pax –rv –f /dev/tape/tape0c

These commands are working fine on the HPTru64Unix system to backup and restore from a DDS-4 data cartridge.
Now i need to restore these backups to my new system (Sun OS 10).
We have the same applications running on Sun and these commands are not working.

It fails and gives ‘invalid header and long file name errors”. I think its because there is no –x xtar option in pax command in Solaris

I also installed Linux Ubuntu 8.10 and Mandriva 2009 to my desktop, and tried to restore same backups from tape to disk, I got the same error shown below:

[root@localhost /]# pax -rv -f /dev/st0
/tmp/file100.dat
alldata.exp
pax: Invalid header, starting valid header search

I can backup and restore any file with pax tool(without –x xtar option) in Ubuntu and Mandriva. There is no –x xtar option in pax tool here too.

I used this for backup; pax –wvf /dev/st0 .
and for restore: pax -rvf /dev/st0
It has worked without problems.

Now I am trying to find whether -x xtar option is only Tru64Unix dependent or not. Is there a difference in HPTru64 from unix?
How can I restore backups packaged with xtar option to other unix derivatives especially Sun or Mandriva.

Regards
yakup
 
Old 01-08-2009, 09:52 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
AIX doesn't recognize -x xtar either, and neither does HP-UX's pax.
On my linux machine, with my pax implementation, the following formats are recognized: cpio, bcpio, sv4cpio, sv4crc, tar and ustar.
I did not find any information about xtar, but maybe try the ustar format (extended tar format), maybe that's what they call xtar in HPTRU64 implementation?

Edit:
According to this page, xtar is ustar but with long file names and extended UID/GID values:
Quote:
xtar
Extended tar interchange format. The default blocking value for
this format for character special archive files is 10240. Blocking
values from 512 to 32,256 in increments of 512 are supported. This
option lets the user archive long file names and extended UID/GID
values.

ustar
Extended tar interchange format. This is the default output
archive format. The default blocking value for this format for
character special archive files is 10240. Blocking values from 512
to 32,256 in increments of 512 are supported.

Last edited by Agrouf; 01-08-2009 at 10:02 AM.
 
Old 01-09-2009, 01:01 AM   #3
dmac05
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Agrouf,

Thank you for the reply. But, my problem is not backup with pax tool with xtar option. I can’t restore the file backed up with xtar option to other unix derivatives.

regards yakup.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No pax in Slackware? lupinix Slackware 9 04-17-2013 12:49 PM
Read snap.pax Kristijan AIX 4 11-07-2008 01:23 AM
pax versus tar ahmedb72 Solaris / OpenSolaris 1 08-22-2007 05:56 AM
PAX protection deadlinx Linux - Security 4 06-08-2007 03:51 AM
Excluding a file when using pax tobycatlin Linux - General 9 04-28-2005 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration