If you’re an avid user of the open-source image library Photoprism, you know how convenient and powerful it can be for managing and organizing your photo collection. However, keeping your library indexed and up to date manually can be a tedious task. Thankfully, with a simple cronjob in Linux, you can automate the indexing process and ensure your Photoprism library stays current without any manual intervention.
Indexing with Cron
- Create the shell-script auto_index.sh
|
|
- Make it executable using chmod -x auto_index.sh
- Add it to your crontabs using crontabs -e
|
|
In this example, the cronjob is scheduled to run every day at 0:00 AM, triggering the Photoprism indexing process by invoking the index command.