IMGUPD-CLEAN(8) - System Manager’s Manual
imgupd-clean - simple image hosting service cleaner
imgupd-clean [-d database-path]
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.
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 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
The following environment variables are detected:
Path to the SQLite database.
imgupd-clean was written by David Demelier <email@example.com>
macOS 11.2 - 06 February, 2020