Virtualmin backups not paying attention to DocumentRoot

Hi,

One of my virtualmin accounts has their Apache documentroot changed from the default /home/user/public_html for their main website to /home/user/domains/domain.com.

Unfortunately standard virtualmin backups for this particular account are not capturing the contents of /home/user/domains/domain.com, but are capturing /home/user/public_html instead.

Is this a bug in the code or am I missing something? The scheduled backups are including all domains, all sub-servers, all features, and all virtualmin settings.

Thanks!

Status: 
Closed (fixed)

Comments

That is expected, as the domains directory is excluded from backups as it contains the directories for sub-servers, which are backed up separately.

The work-around for this would be to include the top-level server and domain.com in the same backup.

That said, I wouldn't recommend adjusting the document root directory like this without good reason, as it goes against the way Virtualmin usually lays out files.

Thanks. I ended up just moving the main site back to /home/user/public_html.

It would be "nice" if Virtualmin could backup all of the contents of /home/user, excluding DocumentRoot's and then look to DocumentRoot for each site it needs to back up so that this sort of setup could be supported, but no biggie =)

I think what I will do is disallow use of a directory under domains, as they are reserved for sub-servers and so using such a directory confuses Virtualmin.

Automatically closed -- issue fixed for 2 weeks with no activity.