<commit_before>rsync-skip-rpm
==============

Scans a fs hierarchy, adding '.rpm_filter' files for rsync to exclude any unmodified files that came from an rpm.<commit_msg>Initial commit<commit_after>rsync-skip-rpm
==============

Scans the RPM database, identifying which files were provided by an RPM, and haven't been modified since.
These files are added to an '.rpm_filter' file in the same directory, so they can be used with rsync's
'dir-merge' filtering to exclude those RPM-provided, unmodified files.

This is for the benefit of backups. I use rsync with the hard links option and a rotating destination
depending on date. I prefer to set up my backup to include everything, then selectively exclude the stuff
that doesn't need to be backed up. Just seems less error-prone that way (rather back up something I won't
need than not backup something I will). This tool automates at least part of the maintenance of the
rsync filter files. The rest is a pretty static set, which isn't hard to maintain manually.
{'fraction_non_alphanumeric': 0.07086614173228346, 'fraction_numerical': 0.0, 'mean_word_length': 4.713483146067416, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3413341', 'n_tokens_mistral': 268, 'n_tokens_neox': 250, 'n_words': 155}