Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

ERROR: tar of homedir returned error 2

Discussion in 'General Discussion' started by str0ke, Apr 18, 2010.

  1. str0ke

    str0ke Registered

    Apr 18, 2010
    Likes Received:
    Trophy Points:
    Hello Everyone,

    when trying to do backup from cpanel or ssh i have homedir.tar EMPTY
    and this is the error recived in my mail after backup : ERROR: tar of homedir returned error 2

    /bin/tar permission is already 755

    before, all was fine .. and this happened without any modification in server

    Hope you can help me to fix this issue.

    thanks in advance
  2. sven4o

    sven4o Member

    May 21, 2007
    Likes Received:
    Trophy Points:

    The tar error code 2 means a directory checksum error.

    Check whether the folder that you try to compress exists and the path to it is correct. Also, make the corresponding files and folders permissions 755.

    Then try to execute the following command.

    tar cipzf backup.tar.gz My_folder

    In this way you will create a tar.gz archive of your folder. Replace the My_folder string with the corresponding folder name.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice