Skip to main content

bulk

filerepack bulk <directory> [OPTIONS]

Walks a directory tree and runs the same packers as repack. Shared flags: Shared CLI options.

bulk needs --progress to show a bar. Install filerepack[progress] for rich; otherwise progress prints every N files.

bulk-only flags

FlagMeaning
--skip-zip / --no-skip-zipSkip top-level .zip (default: skip)
--include-ext / --exclude-extComma-separated extension filters. --include-ext tar.gz matches compound names; --include-ext gz and --include-ext jpg also match aliases (.tgz, .jpeg, .thm, …)
--exclude-dirExtra directory names to skip
--jobs N|autoProcess pool workers
--continue-on-errorDo not stop the scan on a failure

Default skipped directories: .git, .hg, .svn, .tox, .venv, venv, node_modules, __pycache__, .mypy_cache, .pytest_cache.

Examples

filerepack bulk ./documents --min-size 1MB --min-savings 5 --jobs auto
filerepack bulk ./photos --include-ext jpg,png,webp,avif,jxl --progress
filerepack bulk ./archives --include-ext tar.gz --progress
filerepack bulk ./dicom --include-ext dcm --progress
filerepack bulk ./video --include-ext mp4,mkv,webm,mov --wmv-lossless

Exit code 2 means some files failed while --continue-on-error was set.

See Bulk directories.