Backup File Exclude Not Working

Hi,

I need to exclude some directories from the daily backups, as they contain some large video files.

I’ve been trying different path variations, but none of them worked. Every backup contains all files, even the excluded ones.

This is the paths i have tried:

public_html/excluded-directory
public_html/excluded-directory/
public_html/excluded-directory/*
/public_html/excluded-directory
/public_html/excluded-directory/
/public_html/excluded-directory/*
domain.com/public_html/excluded-directory
domain.com/public_html/excluded-directory/
domain.com/public_html/excluded-directory/*
/domain.com/public_html/excluded-directory
/domain.com/public_html/excluded-directory/
/domain.com/public_html/excluded-directory/*
home/domain.com/public_html/excluded-directory
home/domain.com/public_html/excluded-directory/
home/domain.com/public_html/excluded-directory/*
/home/domain.com/public_html/excluded-directory
/home/domain.com/public_html/excluded-directory/
/home/domain.com/public_html/excluded-directory/*

Any help would be greatly appreciated.

I still have the same issue. I’d appreciate any help with this.

I’m having the same issue, the backup exclude function seems to be ignored… In my case it’s a bunch of large video files in /home/site1/videos that I don’t want to have backed up. So I added “videos” to the exclusion box, and it doesn’t matter it continues to back them up nightly (16gb!).

Has anyone found a fix for this bug?

I tried different methods and this worked perfectly. Please hit “Like” if it works for you as well.

Here is a solution:

Case I: Single Directory
Exclude a directory from backups:

/home/example/public_html/docs/


Then syntax in “Files to exclude from each domain” should be:

public_html/docs


Case II: Multiple Directories
Exclude multiple directories from backups:

/home/example/public_html/docs/
/home/example/public_html/var/
/home/example/domains/testbackups.example.com/public_html/media/cache/


Then syntax in “Files to exclude from each domain” should be:

public_html/docs
public_html/var
public_html/media/cache


Case III: Exclude file extensions

Exclude .exe .tar .tar.gz :

Then syntax in “Files to exclude from each domain” should be:

*.exe
*.tar
*.tar.gz


Case IV: All above cases at once

public_html/docs public_html/var public_html/media/cache *.exe *.tar *.tar.gz

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.