Mercurial > treepkg
diff contrib/bin/README @ 535:fb7a900a649f
contrib: Added script to remove old deb files from directories.
author | Sascha Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 08 Jan 2011 12:57:07 +0000 |
parents | |
children | dc17b62d3cdd |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/bin/README Sat Jan 08 12:57:07 2011 +0000 @@ -0,0 +1,19 @@ +delete-old-debs.py +------------------ +Script to remove old deb files from a given list +of directories. Tree Packager builds a lot of deb files +when running a long time. Not all of them a needed forever. +We had a directory with over 13.000(!) deb files eating +up 15 GiB of hard disk space. This lead to performance +problems and problems generating the corresponding repository. +This script enables you only leave the n-th youngest deb +files per package in the directory. It may be used inside +a cron job to garbage collect old package. + +Usage: delete-old-debs.py [options] dir ... + +Options: + -h, --help show this help message and exit + -v, --verbose verbose output + -d, --dry-run don't remove the old deb files + -k KEEP, --keep=KEEP number of files to keep. Default: 3