NAME
brep-clean – clean brep databases
SYNOPSIS
brep-clean --help
brep-clean --version
brep-clean [options] builds buildtab
[timeout...]
brep-clean [options] tenants timeout
DESCRIPTION
brep-clean deletes expired package builds from the
brep build database or deletes/archives tenants from the
brep package database.
The first form considers a build as expired if the corresponding package
version is not in the package database, or the
configuration is not listed in the buildtab file, or its
age is older than the specified timeout for this build toolchain.
Build timeout, if specified, should have the
[ form.
Specify zero for name=]hourshours to make builds for a toolchain to
never expire. Omit name (including
=) to specify the default timeout. It will apply to all
the toolchains that don't have a toolchain-specific timeout.
The second form considers a tenant as expired if its age is older than
the specified timeout.
If the --archive option is specified, then the tenant
is archived rather than deleted. In this state the tenant packages (and
their builds) are still visible in brep but are not
(re-)built by build bots.
Note that brep-clean expects the
build and package database schemas
to have already been created using brep-migrate(1).
OPTIONS
EXIT STATUS
0- Success.
1- Fatal error.
2- An instance of
brep-cleanor some otherbreputility is already running. Try again. 3- Recoverable database error. Try again.
BUGS
Send bug reports to the users@build2.org mailing list.