teichmann@535: delete-old-debs.py teichmann@535: ------------------ teichmann@535: Script to remove old deb files from a given list teichmann@535: of directories. Tree Packager builds a lot of deb files teichmann@535: when running a long time. Not all of them a needed forever. teichmann@535: We had a directory with over 13.000(!) deb files eating teichmann@535: up 15 GiB of hard disk space. This lead to performance teichmann@535: problems and problems generating the corresponding repository. teichmann@535: This script enables you only leave the n-th youngest deb teichmann@535: files per package in the directory. It may be used inside teichmann@535: a cron job to garbage collect old package. teichmann@535: teichmann@535: Usage: delete-old-debs.py [options] dir ... teichmann@535: teichmann@535: Options: teichmann@535: -h, --help show this help message and exit teichmann@535: -v, --verbose verbose output teichmann@535: -d, --dry-run don't remove the old deb files teichmann@535: -k KEEP, --keep=KEEP number of files to keep. Default: 3