cPanel Full Backup NOT saving homedir anymore

SlyGhost

Member
Feb 15, 2005
11
0
151
Hi,

I usually do my backups like every week by logging to that specific account's cPanel and clicking to Backups > Generate/Download Full Backups (and enter email too).

Ir was working fine until this date 25-October-2008 . It was saving everything including homedir , mysql dbs ...

After that day , when I click on Backups > Generate/Download Full Backups and download the tar.gz file , I see homedir is EMPTY. I tried several times from that day on , even right now I tried again its NOT saving homedir in tar.gz file!

I didn't do any server WHM changes , nothing ... I just did my regular cPanel WHM Updates and right now using "cPanel 11.24.2-C32034 - WHM 11.24.2 - X 3.9 REDHAT Enterprise 4 i686 on standard "

I have no idea what happened after 25-October-2008 and backup function started NOT to include homedirs anymore...

Very weird though , any helps on this?
Thanks in advance...
 

SlyGhost

Member
Feb 15, 2005
11
0
151
Look for a file in the root of the backup named homedir.tar

I'm running the same version as you and just backed up an account to test this.
Nope there is NO homedir.tar or even similar to that...
There is only 1 tar.gz file which has everything but NO homedir , homedir is empty when I extract. But it used to work before :/

Its weird it used to include homedir when clicking Full Backups , but now it doesn't...

1-) I've just clicked Full Backup on my other server's one account (WHM 11.23.2 cPanel 11.23.6-S27698 REDHAT Enterprise 4 i686 on standard - WHM X v3.1.0)
Then I downloaded and checked .tar.gz file , and YES it does include homedir perfectly just how it should be! backup-12.3.2008_22-10-04_xxx1.tar.gz


2-) I did click Full Backup on this second server's one account (cPanel 11.24.2-C32034 - WHM 11.24.2 - X 3.9 REDHAT Enterprise 4 i686 on standard)
Then downloaded and tar.gz , and NO it doesn't include homedir anymore but it used to include before... backup-12.3.2008_21-19-48_xxx2.tar.gz
However I had it working before , for example this file backup-10.25.2008_16-40-40_xxx2.tar.gz includes everything homedir too , but after that date it started NOT to include homedir anymore...


Something is weird ...
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
I just tested with this build and it worked correctly for me. Please check /usr/local/cpanel/logs/error_log for any clues. Also if you open a ticket @ https://tickets.cpanel.net/submit/ you should be able to get some help. If you post the ticket number I will try to take a look if I am still awake.
 

SlyGhost

Member
Feb 15, 2005
11
0
151
Problem solved :)

The problem occurred because /bin/tar had its permissions changed to 750.
Nick have corrected this.

[root@seo ~]# ls -l /bin/tar
-rwxr-x--- 1 root root 161188 Aug 17 2007 /bin/tar
[root@seo ~]# chmod 755 /bin/tar
[root@seo ~]# ls -l /bin/tar
-rwxr-xr-x 1 root root 161188 Aug 17 2007 /bin/tar

Now backup function works perfect like the old days!!!

Thank you very much Nick , you Rock!!! :cool:
 

AdamDresch

Well-Known Member
Jun 22, 2006
80
0
156
Hmm, sorry to reopen this thread, but I to, am having the problem whereby the home directory is empty
It does create a homedir TAR file within the backup file itself, which is 2.2gb in size, but only contains 3 files which are 3 spam assassian files, nothing else? and they are only 1-2kb in size, not 2gb heh
 

Gigabit

Member
Jul 11, 2007
22
0
51
I am having this same exact issue myself, I have not changed any settings or file permissions.

I also checked bin/tar and the permissions are set at 755.

Any other ideas, would be nice to get this fixed.

Thanks,

Mark
 

Gigabit

Member
Jul 11, 2007
22
0
51
None of my backups contain the files for the "home" directory. I did not notice this until a customer requested their backup.

I am presuming it has been like this since a cPanel update, but not sure. I have not changed anything in quite awhile.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
948
29
178
This is happening for us too.

Although I've edited this post because I was a bit hasty with my comment about this happening on lots of servers and the public_html's not being backed up - investigating ...

Ok, I've found that in most cases the homedir.tar file does contain a public_html folder. One of our accounts is not being backed up though - it has no public_html folder in the archive. For that account, the public_html folder is htaccess password protected - would that make any difference?

If you have a similar problem with the homedir.tar file containing only a partial backup - can you see if any of the directories that were not backed up were actually htpasswd protected? I know this shouldnt make any difference but its the only factor I can think of for this particular account - the backup is configured correctly and other accounts on the server seem to be ok.

What would make the backup skip a whole directory?
 
Last edited:

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
cPanel did take a closer look here last night and are still working on this I believe. Haven't heard any new word today.

I do have several pass protected directories inside public_html in a large account that's failing to unpack, but not public_html itself. If this is the case, and I move them all outside public_html we should get a different result. Might be worth testing.


What would make the backup skip a whole directory?
I don't think it is. I think it's just not unpacking them all correctly. File size is correct on the homedir.tar from what I can tell.
 

Gigabit

Member
Jul 11, 2007
22
0
51
Well it is obvious it is a cPanel issue as it is happening to a ton of people. I sure hope this get's fixed as all of my backups are shot now.
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
None of my backups contain the files for the "home" directory. I did not notice this until a customer requested their backup.

I am presuming it has been like this since a cPanel update, but not sure. I have not changed anything in quite awhile.
homedir should be empty directory. homedir.tar contains the files.

I'm yet to see one that actually broken. So far all I have seen is that there are problems extracting in winzip, however they extract just fine on the server .
 

Gigabit

Member
Jul 11, 2007
22
0
51
I have been running my cPanel backups forever now, and have ALWAYS had files in the "home" directory.

I don't understand?
 

Gigabit

Member
Jul 11, 2007
22
0
51
Ok, I see the file for the "home" directory now. Thanks.

But... It wasn't always like this :P
 

Neklawy

Member
Sep 30, 2007
8
0
51
The problem is still after update cPanel to latest update

homedir.tar is created but without public_html folder or any folder in public_html

please help to fix this problem :confused:

Thanks
 

SuperBaby

Well-Known Member
Nov 27, 2003
345
1
166
Thailand
cPanel Access Level
Website Owner
Twitter
drwx------ 2 root root 4096 Jan 16 01:38 homedir
-rw------- 1 root root 12 Jan 16 01:38 homedir_paths
-rw------- 1 root root 85022720 Jan 16 01:39 homedir.tar
drwx------ 2 root root 4096 Jan 16 01:38 httpfiles
I have the same problem too - homedir is empty.

I can see that after uncompressing, homedir.tar appears in all backups and it seems that the file is quite large.

But do I uncompresse homedir.tar? I got errors:

# tar -xzvf homedir.tar

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
#

OK, I just answered my own question. The command is:
# tar -xvf homedir.tar
Once uncompressed, the public_html and all contents are there.
 
Last edited: