To schedule the moOde library update to happen every night, you can use a cron job with the ‘mpc update’ command. Here’s how to set it up:
- Enable and start the cron service on your moOde system:
sudo systemctl enable cron
sudo systemctl start cron
- Open the crontab file for editing:
sudo crontab -e
- Add the following line to schedule the update every night at midnight:
0 0 * * * /usr/bin/mpc update
This cron job will run the ‘mpc update’ command at 00:00 (midnight) every day, which will update the moOde library[2].
Replace with the directory you want to update[2].
Remember to save and exit the crontab file after making these changes. The library update will now occur automatically every night at midnight.
Comments
One response to “Update Moode Library w/ cron”
@posts Sharing this here in case anyone else is struggling to figure out how to auto-update Moode audio libraries. shocking how powerful mpc audio tool is from the command line.
#selfhosted #hifi