LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-18-2012, 05:48 AM   #1
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Rep: Reputation: 0
Smile How to update tar file in Linux


Dear all,

Iam trying to update tar file in linux by using the below command

[root@itsupport ~]# tar --update -f ramkannanbkup.tar workers.properties
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 2535 bytes from ramkannanbkup.tar
tar: Error exit delayed from previous errors


Iam getting the above error while iam updating worker.properties to ramkannanbkup.tar, Can any one help me on this

Thanks,
 
Old 07-18-2012, 06:11 AM   #2
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by ramecare View Post
Dear all,

Iam trying to update tar file in linux by using the below command

[root@itsupport ~]# tar --update -f ramkannanbkup.tar workers.properties
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 2535 bytes from ramkannanbkup.tar
tar: Error exit delayed from previous errors


Iam getting the above error while iam updating worker.properties to ramkannanbkup.tar, Can any one help me on this

Thanks,
how you created the tar file.
This error is seen when you rename the some other compressed file format to .tar.
eg mv test.zip test.tar

test the command.
are you able to run
tar -tvf file.tar
 
Old 07-18-2012, 06:18 AM   #3
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
I have created a tar file using the below command

tar -cvzf ramkanannbkup.tar /linuxdocs

After that only i was trying to update worker.properties to ramkannanbkup.tar by using the below command and i got the error

[root@itsupport ~]# tar --update -f ramkannanbkup.tar workers.properties
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 2535 bytes from ramkannanbkup.tar
tar: Error exit delayed from previous errors


Thanks,
 
Old 07-18-2012, 06:37 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
ram*

I suggest not repeating the same information---we can see it in your first post.

Your command (tar -cvzf) created a tar archive AND compressed it using gzip). To append to the archive, you would have to first uncompress using gunzip.
 
1 members found this post helpful.
Old 07-18-2012, 06:51 AM   #5
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
Hi pixellany,

After unzip i was able to append in tar file Thank you very much
 
Old 07-18-2012, 04:53 PM   #6
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by ramecare View Post
Hi pixellany,

After unzip i was able to append in tar file Thank you very much
take a note:

when u use -z switch give file name. .tar.gz

tar -cvzf filename.tar.gz filename

That was the reason the format of file was incorrect
 
Old 07-19-2012, 05:21 AM   #7
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
Thank you sharadchhetri
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
How to install tar.gz & tar.bz2 file on Linux min Krishnendu Linux Mint 2 07-16-2009 06:52 AM
Update tar.gz file rejeep Linux - General 14 06-28-2007 08:41 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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