ERROR: tar of homedir returned error 2

str0ke

Registered
Apr 18, 2010
1
0
51
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
 

sven4o

Member
May 21, 2007
19
0
151
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.