How to exclude a directory from HestiaCP Backups

How can I exclude a particular directory from a back up rather then an entire section like (WEB, MAIL, DB, USER) of a domain.

My goal is to just exclude a single directory with some media files to make the backups a tad bit smaller.

I guess a temporary solution I came up with is editing the file backup.sh which is located in the main hestiacp directory under func > backup.sh. On line 42 I added exclude='*/excluded_dir' to the tar function. So the full line is now tar exclude='*/excluded_dir' -cf $BACKUP/$user.$backup_new_date.tar ..
This makes it so that I have a directory name that will never be backed up. Also, note that any updates that are release may delete this change.