How to join .tar.gz splitted files?



  • Hi,

    I have compressed 6 GB folder on our server(LINUX), than splitted using this command,

    tar cf myfolder.tar myfolder
    split -b 500m myfolder.tar myfolder.tar_

    so i got files like this
    myfolder.tar.gz_aa
    myfolder.tar.gz_ab
    myfolder.tar.gz_ac
    myfolder.tar.gz_ad
    and so on.

    After that i downloaded these files in computer(Windows). Now i want to extract them using Power Archiver, Please tell me how i can do this ?

    When i open myfolder.tar.gz_aa in PowerArchiver it is loaded, but when i open 2nd file so i got this error,

    PA can not open this file, It does not appear to be a valid archive.

    Your help will be appreciated thanks.

    Best Regards,
    Farrukh Hussain
    Http://www.websolpro.com



  • You need to โ€œjoinโ€ the files back into a single file before it can be uncompressed. L/Unix split seperates on bytes and also has a join command - under windows I guess you could try a utility such as hjsplit.

    Note: you may also have to rename the files by changing the alpha suffic to numeric
    aa -> 01
    ab -> 02
    ac -> 03 etc.



  • Hi,

    Still this technique is not working. Please tell me how i can join these files or uncompress them thanks.

    Regards,
    Web Solution Provider



  • @websolpro:

    Still this technique is not working.

    So what did you do and what happened - what error message(s) etc?

    I am already assuming that you have enough disk space and that you have NTFS format (for 6GB file).



  • Hi,

    Thank you, First of all i changed all names .001 , .002 and than used hjsplit and it joined all files, now all are extracting ๐Ÿ™‚

    Best Regards,
    Web Solution Provider
    Http://www.websolpro.com



  • :p



  • You can also use the copy command from windows command line:

    copy /b file1+file2+file3 > whole_file.bin

    no extra tools needed ๐Ÿ™‚


 

7
Online

9.8k
Users

6.0k
Topics

36.6k
Posts

Copyright ยฉ 1998-2018 ConeXware, Inc.
All rights reserved. Privacy Policy