LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-14-2009, 02:17 AM   #1
kuldeep.k
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
Error in TAR - tar: GNU features wanted on incompatible archive format.


Following is my TAR command :

tar --xattrs -c -f '/mtpts/VG2-LV_ADMIN_Q1/Pr/bkup2.tar.bz2' --bzip -l --rsh-command=\/usr\/bin\/ssh '/mtpts/13Aug09_1226_VG2-LV_ADMIN_Q/ch'

Gives me following error :
tar: GNU features wanted on incompatible archive format

However if I remove --xattrs it works fine.

Please help me out.

Last edited by kuldeep.k; 08-14-2009 at 02:55 AM.
 
Old 08-14-2009, 07:28 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If it works when you change your Rsh command to "--rsh-command=/bin/ls /tmp" for testing purposes then are you sure "--rsh-command=\/usr\/bin\/ssh '/mtpts/13Aug09_1226_VG2-LV_ADMIN_Q/ch'" should produce the same? Doesn't SSH work like "ssh user@host 'command_to_perform'"?
 
Old 08-14-2009, 10:04 AM   #3
kuldeep.k
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I tried the command according to your suggestion but its not working.
There is some problem with the option "xattrs", removing this option the command works fine. And also this happens only for some specific data, for some directories "xattrs" is working but for some it is not.
 
Old 08-14-2009, 11:09 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by kuldeep.k View Post
I tried the command according to your suggestion but its not working.
Show me the command you used and the output and your tar version?


Quote:
Originally Posted by kuldeep.k View Post
There is some problem with the option "xattrs", removing this option the command works fine. And also this happens only for some specific data, for some directories "xattrs" is working but for some it is not.
My ESP is low today so I do welcome full commandlines, verbose output and exact error postings.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tar this does not look like a tar archive exit depalyed from previous error tasay Linux - Software 1 07-01-2009 03:34 PM
Piping tar bzcat to add a file to a tar.bz2 archive DaveQB Linux - Software 0 06-02-2008 08:28 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
need some help with muli-volume tar (ubuntu, bash, gnu tar) MattCarp Linux - General 4 06-05-2006 08:15 AM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:54 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