Backups not containing public_html directory

unixguru

Verified User
Joined
Mar 6, 2010
Messages
68
Location
Four Marks, Alton, Hampshire
I've recently have a number of hacks to wordpress blogs, where customers haven't updated regularly.

I take admin and reseller backups, and have in the past been able to restore these backups.

However, it would appear that recent backups do not contain the public_html directory, which kind of defeats the point.

I've tested by making new backups and the public_html code is still missing.

Is there a bug in recent versions?
Has anyone else had this issue?

The problem appears to exist in both backups, so I though it might be a permissions issue. Have tried using set_permissions and performing backup. The same! Have unTARed the archive and files not there!

Weird!
 
Who own:

/home/username
/home/username/domains
/home/username/domains/DOMAIN/
/home/username/domains/DOMAIN/public_html

?

Are you using mod_ruid2 or suphp or nothing of them?

Regards
 
Am using the suphp

/home/username = username, access 710
/home/username/domains = username, username 711
/home/username/domains/DOMAIN = username, username 711
/home/username/domains/DOMAIN/public_html = username, username 755

Many thanks!
 
I would suggest you to use mod_ruid2 cause it work faster using less ram.

Regarding permissions to me seems to be ok, did have no email from backup errors or something (or did you get backup complete correctly)?

Regards
 
No bad emails, they also save they haved up. I have a number of servers that are overspecced disk wise. So each server backs up to a different three servers, so I have three copies of everything over a week period and a monthly I keep for a while on a third party site.

All four backups contain no html, yet 6 weeks ago I restored a whole reseller, after they finally paid me for their terminated service, so it used to work.

Very strange.
 
Is there a bug in recent versions?
Has anyone else had this issue?

The problem appears to exist in both backups, so I though it might be a permissions issue. Have tried using set_permissions and performing backup. The same! Have unTARed the archive and files not there!

Weird!

Run this in the directory with your backups:

Code:
tar -vtf user.backupfile.tar.gz | grep public_html | grep public_html/$

What you see with that?
 
I finally came across the answer, sorry for the delay.

skip_domains_in_backups was set to =1 in /usr/local/directadmin/conf/directadmin.conf

Must have been some backup plugin I had tried.

Anyway solved.
 
Back
Top