PASTERD-CLEAN(8) - System Manager’s Manual
pasterd-clean - simple paste service cleaner
pasterd-clean [-d database-path]
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.
Specify an alternate path for the database.
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
The following environment variables are detected:
Path to the SQLite database.
pasterd-clean was written by David Demelier <email@example.com>
Mac OS X 10.15 - 06 February, 2020