Well, I'm just trying to compress a whole directory (infact giant!) under Linux using a terminal. The entire folder size is about 7 GB. I've used below command to create the archive.

tar -zcvf myArchieve.tar.gz myFolder

It's working but in middle it stops by displaying Terminated message in the terminal. I could see the archive file created but there were missing file(s)/sub folder(s). in the compressed file. I want to create the entire folder (7 GB) Archive without any 'Terminated' message timeout. How can I achieve this?

  • How much memory you have? – Braiam May 26 '14 at 13:23
  • Perhaps first try to create the archive without compressing it? This may help in troubleshooting where the issue lies. – Mauritz Hansen May 26 '14 at 15:00
  • Do you have permissions to access these files? Are these real files or device files or pipes or something else? I compress directories of files larger than this and it works fine. – slm May 26 '14 at 15:36
  • @slm I've permissions & these are normal files hosted in GoDaddy server & I'm doing the operation through SSH. – Jenson M John May 26 '14 at 16:10
  • 1
    What is the status code from the tar command (run echo $? immediately after)? Is this some antique (20th century) system which doesn't support files larger than 4GB? Does anything appear in the kernel logs? – Gilles May 26 '14 at 22:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.