Exclude Files and Directories

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

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 Excluding files


Insert your files.

Insert Multiple


Here you can find recommendations for files / folders to exclude.

  1. cPanel generic account files
.MirrorSearch
*/.wysiwygPro_*
*/core.[0-9]*
tmp/*
logs/*
.cagefs
.cagefs*
.cpan
.cpanel/caches
.cpanel/datastore
.cpcpan
.sqmailattach
.cpanel/*.sock
access-logs/*
*/error_log
public_ftp/*
  1. Generic user's backup / cache temporary files
*.jpa
backup-*.tar.gz
cpmove-*.tar.gz
site-*.tar.gz
*/com_akeeba/backup/*
*/backupbuddy_backups/*
public_html/cache/*
tmp/*
logs/*
softaculous_backups/*
*/wp-content/uploads/wpcf7_captcha/*
*/wp-content/widget-cache/*
*/wp-content/cache/*
*/wptsc-cachedir/*
  1. The "All in" List cPanel generic / Temporary & Cache files
*.jpa
backup-*.tar.gz
cpmove-*.tar.gz
site-*.tar.gz
.MirrorSearch
*/com_akeeba/backup/*
*/backupbuddy_backups/*
*/.wysiwygPro_*
*/core.[0-9]*
public_html/cache/*
tmp/*
logs/*
.cagefs
.cagefs*
.cpan
.cpanel/caches
.cpanel/datastore
.cpcpan
.sqmailattach
.cpanel/*.sock
access-logs/*
*/error_log
public_ftp/*
softaculous_backups/*
*/wp-content/uploads/wpcf7_captcha/*
*/wp-content/widget-cache/*
*/wp-content/cache/*
*/wptsc-cachedir/*

Amazon Incremental Exclude

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 "/".

Amazon exclude file

.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

Amazon exclude directories

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.