The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ERROR: tar of homedir returned error 2

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

  1. str0ke

    str0ke Registered

    Joined:
    Apr 18, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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

    Joined:
    May 21, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Re

    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.
     
Loading...

Share This Page