See http://www.brynosaurus.com/cachedir/. Some tools that support the specification are: - [Restic](https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files), with `--exclude-caches` - `tar`, with `--exclude-caches`, `--exclude-caches-all` and `--exclude-caches-under` - [Kopia](https://kopia.io/)