![]() |
|
http parameter to trigger rescan? - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: http parameter to trigger rescan? (/showthread.php?tid=6746) |
http parameter to trigger rescan? - el6e7 - 08-12-2022 16:13 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/nullThat 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! RE: http parameter to trigger rescan? - el6e7 - 08-12-2022 16:49 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 |