MinimServer Forum
Synology - scheduled/automatic rescan??? - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Synology - scheduled/automatic rescan??? (/showthread.php?tid=6896)



Synology - scheduled/automatic rescan??? - noworries - 14-04-2023 18:54

Any way to schedule an automatic re-scan, or is that handled automatically when the media directory changes??? I can't find solid info on this...

Thanks!!!


RE: Synology - scheduled/automatic rescan??? - plasty100 - 15-04-2023 07:14

Task Scheduler


RE: Synology - scheduled/automatic rescan??? - simoncn - 15-04-2023 12:54

When creating the task in Task Scheduler, you need to enter this for the user-defined script:

/var/packages/MinimServer/target/bin/mscript -c rescan


RE: Synology - scheduled/automatic rescan??? - tarnkappe - 16-04-2023 14:25

But does a time schedule make sense? Either you have to wait too long after adding new music or minimserver will scan way too often. At least for me it is no problem to trigger a rescan manually if needed. Either via the minimserver web frontend on a PC, smart phone or tablet or via bubble upnp app on Android.


RE: Synology - scheduled/automatic rescan??? - Peter StreamMagic - 16-04-2023 18:11

I totally agree with Tarnkappe.
The effort it takes to perform a manual rescan is minimal.
I have been using a server performing automatic rescan for a short while and did not like having no control over when a new file was added.
It takes a while before new music is added, which is undesirable if you want to listen immediately and if you first want tag or add some artwork before the files are added, the server (or in the OP his case the NAS) decides when to rescan which also might be unwanted.


RE: Synology - scheduled/automatic rescan??? - steamfan - 21-04-2023 08:56

(16-04-2023 14:25)tarnkappe Wrote:  But does a time schedule make sense? Either you have to wait too long after adding new music or minimserver will scan way too often. At least for me it is no problem to trigger a rescan manually if needed. Either via the minimserver web frontend on a PC, smart phone or tablet or via bubble upnp app on Android.

This depends on your needs. I have Podcasts which are downloaded automatically by gPodder and want to have them available via MinimServer. I don't need to have them available immediately so I let MinimServer rescan its directories every night to have my Podcasts available next morning.


RE: Synology - scheduled/automatic rescan??? - steamfan - 22-04-2023 14:06

(15-04-2023 12:54)simoncn Wrote:  When creating the task in Task Scheduler, you need to enter this for the user-defined script:

/var/packages/MinimServer/target/bin/mscript -c rescan

I'm using the docker container minimworld/minimserver to run a second instance of MinimServer on my Synology. Is it possible to trigger there a rescan with Synologys Task Scheduler? Unfortunatly cron is not installed in this container.


RE: Synology - scheduled/automatic rescan??? - simoncn - 22-04-2023 17:53

This should be possible using the -a option of mscript. Instead of using the command

/var/packages/MinimServer/target/bin/mscript -c rescan

you can use the command

/var/packages/MinimServer/target/bin/mscript -a :nnnn -c rescan

where nnnn is the value of the http.port property of the container instance of MinimServer. If there is only one container instance, this value will be 9792 by default.


RE: Synology - scheduled/automatic rescan??? - steamfan - 27-04-2023 11:57

Thanks for the support, this works very well.