How do I exclude files and folders from backups?
BackupWall skips a server-wide list of 72 default patterns (logs, caches, temp files, old backup archives), which you can switch on or off under Settings → Excludes. A job can add its own patterns, one per line, relative to the account's home folder.
Per-job excludes
- Open the job's form (Backup jobs, then + New job or edit).
- In Exclude files & folders, enter one pattern per line, relative to the account's home folder, for example
public_html/cache/*. - Save the job.
Patterns use a JetBackup-style glob matcher. Directory jobs use only the job's own patterns, not the server-wide list.
Server-wide defaults
Open Settings → Excludes to see the default list. It has 72 patterns: 67 are on and 5 are off. The patterns are grouped (control-panel files, temp files, application caches, logs, development and operating-system junk, core dumps, earlier backup archives, and a few opt-in extras). An administrator can switch each pattern, or a group, on or off. The defaults apply to every file backup, restore and migration.
Skipped by default:
*.logat any depth anderror_log(the Logs group).- Temp files and caches (
.cache,.npm, WordPress, Laravel and Magento cache folders). .trash,.cpanel/caches,public_ftp/*.- Old backup archives (
backup-*.tar.gz,cpmove-*, Akeeba and Updraft files). *.pycand core dumps..cagefsfolders.
Off by default, so backed up: */vendor/*, */node_modules/*, */.git/*, */.svn/* and *.sql.
Pattern details
- A pattern that starts with
*/needs one more folder above it, so a top-level~/.cacheis not excluded by*/.cache/*. - On cPanel,
*.logalso matchesdovecot.index.login mail folders. - Switching the Logs group off backs up
*.logfiles anderror_log.