LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2004, 06:54 AM   #1
bluedevlx
Member
 
Registered: Oct 2004
Posts: 52

Rep: Reputation: 15
Trying to Append files to an already made Tar


I had to tar up a few directories and since there are a few files that stop it from completing I have to cancel and then add those files to an exclude file. But I don't want to recreate the tar that I already have because it will take extra time to do so and I haven't much of it for what i'm working on.

How do I exactly keep the same .tar with the same size and just keep adding on to it without it having to overwrite and recreate from base up.
 
Old 11-04-2004, 07:02 AM   #2
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
I'm not too sure what you're really asking, but have you seen the -r option?

ps: unless you're archiving something insanely huge or over a slow NFS, you're probably better off redoing the whole thing rather waiting for a reply on LQ.
 
Old 11-04-2004, 07:05 AM   #3
bluedevlx
Member
 
Registered: Oct 2004
Posts: 52

Original Poster
Rep: Reputation: 15
RE:

Yes i've been reading about the -r function. Actually just got done reading up on appending files and I've come up with the basic answer for this option is that if I were to use it it would just add everything over and over again to the file but hmmmmm maybe if .. ok brb I have an idea
 
Old 11-04-2004, 07:08 AM   #4
bluedevlx
Member
 
Registered: Oct 2004
Posts: 52

Original Poster
Rep: Reputation: 15
RE2:

I'm going to try just appending and excluding all the files that are already on it. Ahhhh!
 
Old 11-04-2004, 07:26 AM   #5
bluedevlx
Member
 
Registered: Oct 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Yes this is just terrible

Since the last file on my archive is erroneous I keep getting EOF error when I try my -r (append)
So I guess i'll just do everything from the beginning and i'll make sure to script everything so it outputs everything for me and just restart over and over .......

I just hope there aren't anymore damaged files on this crap ..
 
Old 11-04-2004, 07:33 AM   #6
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
You might just want to delete the corrupted file with --delete, but, you're probably done by the time you read this.
 
Old 11-04-2004, 07:37 AM   #7
bluedevlx
Member
 
Registered: Oct 2004
Posts: 52

Original Poster
Rep: Reputation: 15
RE:

I'm actuallying reading about that now and trying it out and coming into problems and checking if my syntax is messed up. give me a second
 
Old 11-04-2004, 07:41 AM   #8
bluedevlx
Member
 
Registered: Oct 2004
Posts: 52

Original Poster
Rep: Reputation: 15
RE

It just keeps aborting
Here look at what i have exactly

tar --delete -f hda4/harry/1.tar jaz/'arry's new stuff/Harry's dumpster/Harry's photoshop/London Map-related/Tower/T-shirtWestminster

And it keeps Aborting sheeesh
 
Old 11-04-2004, 08:16 AM   #9
bluedevlx
Member
 
Registered: Oct 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Any ideas?

Maybe it keeps Aborting because when I even try to just list the archive it gives me an EOF error and that error is due to the file being damaged/corrupt.

Maybe that is why it can't delete it but that sounds pretty weird. How about me trying /dev/null I don't know what to do but that is just what i'm thinking about. heh

Help!
 
Old 11-04-2004, 08:24 AM   #10
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Your tar is corrupted, re-tar. Rather than wasting time trying to find ways around, just bite the bullet and redo.
 
Old 11-04-2004, 08:37 AM   #11
bluedevlx
Member
 
Registered: Oct 2004
Posts: 52

Original Poster
Rep: Reputation: 15
RE:

Guess i'll bite the bullet and have to deal with whatever other corrupt files come my way and just add them to the exclude.
800mb worth of stuff but there are alreaday just two files out of a 300MB copy. So thankyou buddy Lata
 
  


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
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
append files Paul_R Linux - General 6 11-04-2005 07:15 AM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 09:09 PM
batch append string to the end of a determined line in text files osio Programming 6 06-30-2005 10:28 AM
tar append file juno Linux - General 5 10-24-2002 03:59 AM


All times are GMT -5. The time now is 04:21 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration