PASTERD-CLEAN(8) - System Manager’s Manual

NAME

pasterd-clean - simple paste service cleaner

SYNOPSIS

pasterd-clean [-d database-path]

DESCRIPTION

This utility should be used at periodic intervals to clean up the SQLite database. It will remove deprecated pastes.

Like pasterd(8) it can use environment variables or option to specify the database.

Available options:

-d database-path

Specify an alternate path for the database.

USAGE

This command should be placed in a cron job (or equivalent) at periodic intervals. Since the minimal lifetime for a paste is one hour a periodic job every hour seems appropriate.

Note: make sure to run the cron job in the same user as the pasterd service, otherwise you may change file permissions.

Example of cron job:

0 * * * * www pasterd-clean -d /var/paster/paster.db

ENVIRONMENT

The following environment variables are detected:

PASTERD_DATABASE_PATH (string)

Path to the SQLite database.

AUTHORS

pasterd-clean was written by David Demelier <markand@malikania.fr>

SEE ALSO

pasterd(8)

macOS 11.2 - 06 February, 2020