1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Tarball Problem

Discussion in 'Site & Server Administration' started by flamer, Nov 1, 2009.

  1. #1
    I have tarball problems..

    .tar.gz throws out error: ! Unexpected end of archive

    When extracted locally on the computer.

    It throws out the error:
    gzip: stdin: unexpected end of file
    tar: Unexpected EOF in archive
    tar: Unexpected EOF in archive
    tar: Error is not recoverable: exiting now

    When extracting it on linux server via the commands tar -zxvf and tar xvfz

    Now who here knows about resolving this issue ?
     
    flamer, Nov 1, 2009 IP
  2. cpace1983

    cpace1983 Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you extracting from a tape archive, or from a file?

    If from a file, was the file created locally, or transferred via FTP?

    If from a tape, it sounds like the tape is bad.
     
    cpace1983, Nov 1, 2009 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    Seems to be a corrupt file how did u compress it ??
     
    Bohra, Nov 1, 2009 IP
  4. flamer

    flamer Peon

    Messages:
    757
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Define tape? It is from the backup server of my accounts. All transfered in a binary mode. All automated by CPanel/WHM.

    Auto compressed and uploaded from server to server via timed backup's.

    Anyway to repair it if it is corrupted? - I just need the databases out of the files instead of the whole archive. That is the most top priority.
     
    flamer, Nov 1, 2009 IP
  5. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #5
    if your database is in another directory try this

    try this

    tar -zxvf mytar.ball.tar.gz mysqlfoldername
     
    Bohra, Nov 1, 2009 IP
  6. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The file is probably not complete. If it's a large backup (like over 500megs) CPanel is known for not going a good jobs on those. One of the reasons why we moved to Direct Admin and do our backups from the command line.

    Download the file locally and try using winrar to open it. You may be able to pick and choose specific files out of it. May have to run winrar's own repair on it. You may be SOL though.

    edit: Try Bohra's solution first though.
     
    theapparatus, Nov 1, 2009 IP
  7. flamer

    flamer Peon

    Messages:
    757
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #7
    gzip: stdin: unexpected end of file
    tar: Unexpected EOF in archive
    tar: Error is not recoverable: exiting now


    That is what i get.


    I did download it locally. I cannot run winrar repair because it is a .tar.gz and winrar is not the software to repair that. It only repairs .tar or .zip

    Any software that might repair that?

    Having it downloaded locally give me the error of "Unexpected end of archieve"
     
    flamer, Nov 1, 2009 IP
  8. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #8
    so u dont have access to the other server ?? if u do why not take a backup from shell
     
    Bohra, Nov 1, 2009 IP
  9. flamer

    flamer Peon

    Messages:
    757
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I have access to both the backup server and my own server. I was suppose to get a backup put up onto my server and the errors started to jump out.

    The .tar.gz file is ~90MB in size.
     
    flamer, Nov 1, 2009 IP
  10. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #10
    the server u are taking backup from has ssh enabled ?? if yea create a tar backup from there and then wget it to the other server
     
    Bohra, Nov 1, 2009 IP
  11. flamer

    flamer Peon

    Messages:
    757
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #11
    The backup server has only the "compressed" data of all the accounts I have on my server. It is no point having anything over the server except a space to dump them in. I can put anything I want on the backup server, I can take anything I want from the backup server.

    What is the point of creating a new tar for an existing tar ? I have two backup's. Both monthly and weekly. Both seem to act the same way.
     
    flamer, Nov 1, 2009 IP
  12. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #12
    What exactly are u trying to do from i understand u are trying to extract a mysql db but are getting erros correct ??
     
    Bohra, Nov 1, 2009 IP
  13. flamer

    flamer Peon

    Messages:
    757
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I have a automated backup made on the backup server.
    Suppose the name of the backup is abc.tar.gz, I cannot extract the data out of it due to the errors. I can actually, but just a part of it and not fully.

    The MySQL databases are stored in /mysql directory within abc.tar.gz which while extracting gives out errors as above.

    The main importance is to get that directory extracted. Other files are of least importance.
     
    flamer, Nov 1, 2009 IP