Post Reply 
http parameter to trigger rescan?
08-12-2022, 16:13
Post: #1
http parameter to trigger rescan?
Hello. Long term user here. I just upgraded from 0.8 to the 2.x version. Previously on an Asustor NAS that died, and now setting up a new Synology NAS.

My PC runs Ubuntu and has scripts running daily backups to the folder on the NAS that MinimServer scans.

The last command in the backup script includes an http request using curl from my PC to MinimServer on the NAS, that triggered a rescan after the backup completed, so MinimServer picked up any changes in the files on the NAS.

The trigger for the rescan was:

Code:
curl -s --data "sub=Rescan&dir=" http://xxx.xxx.xxx.xxx:9790 > /dev/null

That no longer seems to work on the 2.x version. Is there an equivalent http request for MinimServer 2.x that I can use instead?

Thanks!
Find all posts by this user
Quote this message in a reply
08-12-2022, 16:49 (This post was last modified: 08-12-2022 16:50 by el6e7.)
Post: #2
RE: http parameter to trigger rescan?
I worked it out by looking at the source code on MinimServer's web interface for the rescan button! That must have been how I did it years ago.

The updated command is:
Code:
curl -s --data "sub=rescan" http://xxx.xxx.xxx.xxx:9790 > /dev/null
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: