Post Reply 
Auto rescan library
31-05-2024, 09:07
Post: #1
Auto rescan library
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
Find all posts by this user
Quote this message in a reply
31-05-2024, 11:41
Post: #2
RE: Auto rescan library
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?
Find all posts by this user
Quote this message in a reply
31-05-2024, 14:42
Post: #3
RE: Auto rescan library
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.
Find all posts by this user
Quote this message in a reply
02-06-2024, 22:46
Post: #4
RE: Auto rescan library
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.
Find all posts by this user
Quote this message in a reply
10-06-2024, 10:50
Post: #5
RE: Auto rescan library
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.
Find all posts by this user
Quote this message in a reply
13-06-2024, 14:22 (This post was last modified: 13-06-2024 14:36 by birdybird.)
Post: #6
RE: Auto rescan library
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
Find all posts by this user
Quote this message in a reply
13-06-2024, 16:50
Post: #7
RE: Auto rescan library
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.
Find all posts by this user
Quote this message in a reply
13-06-2024, 17:17
Post: #8
RE: Auto rescan library
(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
Find all posts by this user
Quote this message in a reply
13-06-2024, 17:38
Post: #9
RE: Auto rescan library
(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
Now the command must be given in home/pi/minimaerver/bin
In a crown job can you help me what command


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
Find all posts by this user
Quote this message in a reply
13-06-2024, 20:51
Post: #10
RE: Auto rescan library
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)