Excluding files & folders from backup is a very important feature, and we recommend to use it. Each backup job has it's own exclude list that can be edited. The exclude list will be piped to our sync operation. The supported format should be glob pattern( https://en.wikipedia.org/wiki/Glob_(programming)).
Amazon incremental uses slightly different approach see Amazon Incremental Exclude.
For more information click the following link:
https://docs.aws.amazon.com/cli/latest/reference/s3/index.html#use-of-exclude-and-include-filters
Amazon Sync Limitation: The exclude filter for Amazon CLI Command sync will review ALL files in the source bucket for each exclude item. Adding more exclude items could cause Backup Job times to increase substantially.
For more details regarding excluding files and directories for each individual user account(s) visit Directories and Files Per User Account and BackupJob to excludes
To insert Excluding files, click on "Insert Multiple".
Insert your files.
Here you can find recommendations for files / folders to exclude.
.MirrorSearch
*/.wysiwygPro_*
*/core.[0-9]*
tmp/*
logs/*
.cagefs
.cagefs*
.cpan
.cpanel/caches
.cpanel/datastore
.cpcpan
.sqmailattach
.cpanel/*.sock
access-logs/*
*/error_log
public_ftp/*
*.jpa
backup-*.tar.gz
cpmove-*.tar.gz
site-*.tar.gz
*/com_akeeba/backup/*
*/backupbuddy_backups/*
*/cache/smarty/*
public_html/cache/*
tmp/*
logs/*
softaculous_backups/*
*/var/backups/*
*/var/cache/*
*/var/session/*
*/var/tmp/*
*/var/log/*
*/wp-content/uploads/wpcf7_captcha/*
*/wp-content/widget-cache/*
*/wp-content/cache/*
*/wptsc-cachedir/*
*.gz
*.jpa
*.log
*.bkup
*.sql
*.tar
*.tar.gz
*.zip
backup-*.tar.gz
site-*.tar.gz
cpmove-*.tar.gz
access-logs/*
*/backupbuddy_backups/*
*/cache/smarty/*
.cagefs
.cagefs*
*/com_akeeba/backup/*
*/core.[0-9]*
.cpan
.cpanel/caches
.cpanel/datastore
.cpanel/*.sock
.cpcpan
*/error_log
logs/*
tmp/*
.MirrorSearch
public_ftp/*
public_html/cache/*
softaculous_backups/*
.sqmailattach
*/var/amasty_fpc/*
*/var/backups/*
*/var/cache/*
*/var/debug/*
*/var/export/*
*/var/import/*
*/var/log/*
*/var/report/*
*/var/session/*
*/var/tmp/*
*/wp-content/cache/*
*/wp-content/uploads/wpcf7_captcha/*
*/wp-content/widget-cache/*
*.wpress
*/wptsc-cachedir/*
*/.wysiwygPro_*
Exclude path starting with '/' will reference the root dir of the local file system.
Relative paths should start without '/'
For example:
/root/my.cnf will exclude my.cnf only if backung up /root directory.
For account exclude list, please don't start with "/".
.cpanel/**.sock* will exclude *.sock only if there is folder named ".cpanel" on the first level of the directory being backed up.
To exclude file named *.sock on all levels please use *.sock
Please note, exclude for directory should always end with /*
To exclude directory named "test" on first level use test/*
To exclude directory named "test" on level 2 and above */test/*
To exclude directory named "test" on level 3 and above */*/test/*
And so on.