annotate contrib/bin/README @ 578:bccd69dedbe5

shlex.split all config parameters that may contain a command Return the command as list and use @ operator for the variable in cmdexpand
author Bjoern Ricks <bricks@intevation.de>
date Sat, 03 Sep 2011 11:53:12 +0000
parents dc17b62d3cdd
children
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
542
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
20
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
21
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
22 copy-latest-pkgs.py
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
23 -------------------
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
24 Copies/Hardlinks deb files from snapshots to experimental.
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
25 It performs a check if you run it as user 'saegewerker'.
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
26 By default the files are hardlinked.
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
27
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
28 Usage: copy-latest-pkgs.py [options] src-dir dst-dir
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
29
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
30 Options:
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
31 -h, --help show this help message and exit
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
32 -v, --verbose verbose output
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
33 -d, --dry-run don't copy the deb files
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
34 -n, --no-saegewerker Don't force run as 'saegewerker'
dc17b62d3cdd contrib: Added copy-latest-pkgs.py to copy/hardlink latest
Sascha Teichmann <teichmann@intevation.de>
parents: 535
diff changeset
35 -l, --no-hardlinks copy files instead of hard linking
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)