Home › Documentation › Configuration › Exclusions
Exclusions
Standard exclusions
These are applied to every device and cannot be removed:
- The agent's own cache and log directories
- Page, swap and hibernation files
- Recycle Bin and Trash
System Volume Information- On Linux:
/proc,/sys,/dev,/run
The default policies also exclude temporary files and browser caches. Those can be edited. Recommended lists are available under Downloads.
Pattern syntax
| Pattern | Matches |
|---|---|
C:\Temp\ | The folder and everything under it (trailing separator) |
*.tmp | Any file with that extension, anywhere |
C:\Users\*\Downloads\ | The Downloads folder of every user |
**\node_modules\ | Any folder of that name at any depth |
~$* | Office lock files |
!C:\Temp\keep\ | Re-include a path excluded by an earlier pattern |
Patterns are case-insensitive on Windows and macOS, and case-sensitive on Linux. Later patterns take precedence over earlier ones.
Where to set them
- In a policy: Policies › select policy › Exclusions
- On a device:
cbk config add sources.exclude "*.iso" - From a file:
sources.exclude_file, one pattern per line; see the configuration file reference
Exclude by size or age
cbk config set sources.max_file_size 50GB
cbk config set sources.skip_older_than 0
Files over the size limit are skipped with a warning. skip_older_than is in days and is off (0) by default; we do not recommend it.
Cloud-sync placeholder files
Files that exist only in OneDrive, Dropbox, Google Drive or iCloud and have not been downloaded to the device are skipped automatically. See KB-1038.
Testing patterns
cbk sources test "C:\Users\j.smith\Downloads\setup.iso"
prints whether the path would be included and which pattern decided it.
What happens when you add an exclusion later
Files matching a new exclusion stop being backed up. Existing restore points still contain them until those restore points expire. Storage is not freed immediately.