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

NAME

imgupd-clean - simple image hosting service cleaner

SYNOPSIS

imgupd-clean [-d database-path]

DESCRIPTION

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

Like imgupd(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 an image is one hour a periodic job every hour seems appropriate.

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

Example of cron job:

0 * * * * www imgupd-clean -d /var/imgup/imgup.db

ENVIRONMENT

The following environment variables are detected:

IMGUPD_DATABASE_PATH (string)

Path to the SQLite database.

AUTHORS

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

SEE ALSO

imgupd(8)

Mac OS X 10.15 - 06 February, 2020