Use glob patterns with --include and --exclude flags to precisely control which files are included in your torrent.

Built-in Exclusions

System Files

mkbrr automatically excludes these common system files (case-insensitive):

.torrent
.ds_store
thumbs.db
desktop.ini
zone.identifier

Filter Flags

Specify patterns for files to exclude from the torrent:

mkbrr create . -t ... --exclude "*.nfo"

Exclude patterns are useful when you want to keep most files but skip specific types.

Pattern Rules

Pattern Matching

  • Matches filename only (not full path)
  • Case-insensitive matching
  • Uses glob patterns
  • Supports comma-separated lists

Common Patterns

  • *.nfo # All NFO files
  • *sample* # Any file with ‘sample’
  • *.{mkv,mp4} # MKV and MP4 files

Processing Order

  1. Built-in Exclusions System files (.torrent, .ds_store, etc.) are always excluded first

  2. Include Check If --include patterns exist:

    • Keep files matching any include pattern
    • Skip all other files
  3. Exclude Check If no --include patterns:

    • Skip files matching any exclude pattern
    • Keep all other files
  4. Default Behavior Keep files not affected by above rules

Configuration Files

Command-line flags (--include, --exclude) will add to any patterns defined in your preset or batch configuration.