Mercurial > treepkg
comparison 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 |
comparison
equal
deleted
inserted
replaced
534:09fcac0bdc25 | 535:fb7a900a649f |
---|---|
1 delete-old-debs.py | |
2 ------------------ | |
3 Script to remove old deb files from a given list | |
4 of directories. Tree Packager builds a lot of deb files | |
5 when running a long time. Not all of them a needed forever. | |
6 We had a directory with over 13.000(!) deb files eating | |
7 up 15 GiB of hard disk space. This lead to performance | |
8 problems and problems generating the corresponding repository. | |
9 This script enables you only leave the n-th youngest deb | |
10 files per package in the directory. It may be used inside | |
11 a cron job to garbage collect old package. | |
12 | |
13 Usage: delete-old-debs.py [options] dir ... | |
14 | |
15 Options: | |
16 -h, --help show this help message and exit | |
17 -v, --verbose verbose output | |
18 -d, --dry-run don't remove the old deb files | |
19 -k KEEP, --keep=KEEP number of files to keep. Default: 3 |