In line with the same purpose of the other proposed and accepted idea of excluding certain databases and tables to make Virtualmin Backup system more efficient, I'd like to file another feature request for excluding non-standard files and directories in home directories this time.
The rationale behind this request is that end-users tend to keep their non-standard files and directories in the home directories of their websites (i.d. in /home/username directory) which are included in automatic Backup Schedules by Virtualmin. It becomes especially problematic when end-users store very large compressed archives in the website's home directories, thus making Virtualmin to backup the same large archive files over and over again causing unnecessary loads to the system. Warning, explaining, educating end-users of why they should keep their home directories clean is really useless as they keep messing up their home directories.
So we would enhance greatly Virtualmin Backup system and save ton's of bandwidth for all Virtulamin users by making it compress only the standard directories in homes like, for example:
drwxr-x--- 2 username username 4096 Dec 20 2012 cgi-bin
drwxr-xr-x 9 username username 4096 Oct 25 00:00 domains
drwxr-xr-x 3 username username 4096 Mar 27 2015 etc
drwxr-xr-x 2 username username 4096 Mar 27 2015 fcgi-bin
drwxr-x--- 2 username username 4096 Mar 27 2015 logs
drwx------ 7 username username 4096 Nov 20 2013 Maildir
drwxr-x--- 9 username username 4096 Oct 26 17:11 public_html
drwxr-x--- 5 username username 4096 Oct 26 07:51 tmp
Alternatively, the Virtualmin Backup system could offer inclusion option for the users, so that they could schedule their backups per their likings. I know there is already "Files to exclude from each domain" option, however while it is good for individual websites and individual backup schedules, the opposite option like "Files or directories to include for each domain" would be better to cover most of the websites to make backups automatic.
Another idea is to provide a new "Include the document root only" (/home/username/public_html directory) next to the "Include homes directory" option. In this case we could leave all the dirt in the home directory of the website out of regular backups including only the files and subdirectories of the document root, which are necessary for the functionality of the websites.