![]() |
|
Auto rescan library - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: Support (/forumdisplay.php?fid=4) +--- Thread: Auto rescan library (/showthread.php?tid=7247) Pages: 1 2 |
Auto rescan library - nico - 31-05-2024 09:07 Hello, I could not find a way to automatically schedule a rescan of my library, daily rescan for instance. Is there a possibility? Thanks Nico RE: Auto rescan library - simoncn - 31-05-2024 11:41 For most users it is better to do a rescan after adding new music so that the added music is immediately available for listening. A rescan shouldn't take very long and you can listen to music while the rescan is happening. If for some reason you don't want to do this, you can set up a daily scheduled task on most platforms to issue a MinimServer command to do a rescan. What platform (Windows, Mac, QNAP, Synology. etc.) are you using to run MinimServer? RE: Auto rescan library - nico - 31-05-2024 14:42 Thanks. Yes usually I do a rescan manually. But if for any reason I forget to do it I'd like to schedule a daily rescan just in case (cron job or whatever). It runs on QNAP. Thanks again, this server is brilliant and I've been happily using it for years. RE: Auto rescan library - simoncn - 02-06-2024 22:46 I understand why you want to do this and I have been investigating how to do it on QNAP. This isn't as simple as it should be because QNAP doesn't provide a task scheduler similar to those on other platforms such as Synology or Windows. I will post back here when I have something working. RE: Auto rescan library - simoncn - 10-06-2024 10:50 To do a scheduled daily rescan on a QNAP NAS at 0100 (for example), do the following 1) Install MinimServer update 252 if this update (or later) isn't already installed 2) Login to the NAS terminal interface using ssh or putty 3) Follow the instructions on this page to add the following line to the crontab: cron 0 1 * * * $(/sbin/getcfg MinimServer Install_Path -f /etc/config/qpkg.conf)/bin/mscript -c rescan I am very surprised that QNAP QTS doesn't provide a more user-friendly way for a user to create a scheduled task. RE: Auto rescan library - birdybird - 13-06-2024 14:22 I use linux deb12 headless minimserver on a raspberry but the command mscript -c rescan does not work. command not found.... i am in dirminimseerver/bin where mcript is located. Please help RE: Auto rescan library - simoncn - 13-06-2024 16:50 On Linux, you need to use the command ./mscript -c rescan. The command mscript -c rescan searches your PATH directories for the mscript command. The command ./mscript -c rescan searches your current directory for this command. RE: Auto rescan library - birdybird - 13-06-2024 17:17 (13-06-2024 16:50)simoncn Wrote: On Linux, you need to use the command ./mscript -c rescan. The command mscript -c rescan searches your PATH directories for the mscript command. The command ./mscript -c rescan searches your current directory for this command.Thank you Now the command must be given in home/pi/minimaerver/bin In a crown job can you help me what command RE: Auto rescan library - birdybird - 13-06-2024 17:38 (13-06-2024 17:17)birdybird Wrote:(13-06-2024 16:50)simoncn Wrote: On Linux, you need to use the command ./mscript -c rescan. The command mscript -c rescan searches your PATH directories for the mscript command. The command ./mscript -c rescan searches your current directory for this command.Thank you 500 - Internal Server Error Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export SHELL=/bin/sh; sudo --shell --non-interactive --user='pi' -- /var/lib/openmediavault/cron.d/userdefined-f2c096a0-5566-4e34-a3a9-46968f299ba8 2>&1' with exit code '127': /var/lib/openmediavault/cron.d/userdefined-f2c096a0-5566-4e34-a3a9-46968f299ba8: 4: ~./home/pi/minimserver/bin/: not found RE: Auto rescan library - simoncn - 13-06-2024 20:51 In a cron job you need to give the full path to the bin directory. This depends on where you have installed MinimServer. I think you need this mscript command: /home/pi/minimserver/bin/mscript -c rescan I can't help with the rest of the cron command because this depends on your Linux system configuration. |