WARNING: JetBackup 4 is set to reach its End-of-Life (EOL) on July 1st, 2024. For More Information, please visit: JetBackup 4 EOL Announcement.
NOTICE: JetBackup 5 is now available in the Stable Tier. For more information, please visit our Jetbackup 5 Documentation.

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

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 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/*
2. Generic user's backup / cache temporary files
*.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/*
3. The "All in" List cPanel generic / Temporary & Cache files
*.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_*

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.