The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 802 errorHandler->error





Post Reply 
Weekly MinimServer Rescan on QNAP NAS
28-12-2025, 12:42 (This post was last modified: 29-12-2025 09:44 by Spile.)
Post: #1
Weekly MinimServer Rescan on QNAP NAS
Problem:
QNAP TS-464 with QTS 5.2.7.x does not provide a GUI Task Scheduler for user scripts, and I couldn't get my head round cron via the command line which meant MinimServer’s rescan cannot be triggered directly on the NAS.

Workaround: Use a Windows PC running MinimWatch to trigger a weekly rescan.

Steps

1. Install MinimWatch on Windows PC and make sure it can see NAS MinimServer.

2. Create a control script

rescan.txt (any folder) containing:

Code:
rescan

rescan.cmd in C:\Program Files\MinimWatch\bin:

Code:
@echo off
cd /d "C:\Program Files\MinimWatch\bin"
call mscript.cmd -a <NAS_IP> -c rescan

Replace <NAS_IP> with QNAP’s IP address.

Test by double-clicking — MinimServer should start rescanning.

3. Schedule it in Windows Task Scheduler

Trigger: Weekly, Sunday 03:00

Action: Start a program → rescan.cmd

Settings: Tick Run task as soon as possible after a scheduled start is missed

Optional: Run whether user is logged on, with highest privileges.

Notes

PC must be on for the scheduled time; if off, it will run when the PC next powers on.

This bypasses QNAP scheduler limitations and uses MinimServer’s supported rescan command.

Summary:
Not ideal — ideally a QNAP GUI scheduler would allow direct NAS scheduling or even better this functionality would be in Minimserver itself. But this method is reliable, fully supported, and automates weekly rescans without manual intervention.

Suggestions for a better approach welcome.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Weekly MinimServer Rescan on QNAP NAS - Spile - 28-12-2025 12:42

Forum Jump:


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