what seems to be working for me is - choose the server/domain in the dropdown menu on the top of virtualmin.
then go - Backup and Restore - click Excluded Directories - fill in the name of the directory to exclude in the right pane.
since I was a bit uncertain how and what to write, I did it like so to exclude the srcds directory:
Hmmm well I can’t get the exclude to work at all even manually?
If my domain is blahblah.com:
path is /home/blahblah/public_html
I tried excluding:
home/blahblah/public_html/srcds
public_html/srcds
srcds/
Nothing worked
Also keep in mind there is no exclusion section for scheduled backups - this is what I want. directory exclusions aren’t much help if they don’t work in an automated fashion…
for another domain i needed to exclude some video content in a joomla installation as they were to big to back up daily.
Because I didn’t know how to write it exactly I just put the following in. Obviously I don’t need all the lines, but haven’t had the time yet to find out which line does the trick.
If you have your root alias set to something sane (like your personal email address), you will receive an email containing the results of all cronjobs, including backups.
Note:
These exclude files/directories are applicable globally for all websites/subdomains included in the backups. If you want to exclude the files/directories for website specific then you need to create schedule different backups for each domain.