annotate 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
rev   line source
535
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
1 delete-old-debs.py
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
2 ------------------
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
3 Script to remove old deb files from a given list
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
4 of directories. Tree Packager builds a lot of deb files
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
5 when running a long time. Not all of them a needed forever.
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
6 We had a directory with over 13.000(!) deb files eating
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
7 up 15 GiB of hard disk space. This lead to performance
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
8 problems and problems generating the corresponding repository.
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
9 This script enables you only leave the n-th youngest deb
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
10 files per package in the directory. It may be used inside
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
11 a cron job to garbage collect old package.
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
12
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
13 Usage: delete-old-debs.py [options] dir ...
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
14
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
15 Options:
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
16 -h, --help show this help message and exit
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
17 -v, --verbose verbose output
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
18 -d, --dry-run don't remove the old deb files
fb7a900a649f contrib: Added script to remove old deb files from directories.
Sascha Teichmann <teichmann@intevation.de>
parents:
diff changeset
19 -k KEEP, --keep=KEEP number of files to keep. Default: 3
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)