Not running, nor wanting to run, WebGISDR. Just thought it would be helpful to get that out of the way at the beginning. I have a somewhat new stand-alone ArcGIS Server 11.3 production environment for which I am trying to automate the server configuration backups using ArcGIS Server's backup utility (backup.py).
ArcGIS Server is installed on Windows Server 2022.
I can run a successful backup from the server's Command Prompt. But the backup will not run from the Task Scheduler, and it is using the same parameters that were successful from the Command Prompt. Does not run when scheduled or when run on demand. The Task Scheduler starts the task but the task keeps running until it hits the assigned stopping point after two hours. No error message, in fact, the task history panel says it ended successfully, but no configuration file ever gets created.
With ArcGIS Server 10.7.1 and 10.8.0, I never had any issues performing this exact same task. The primary difference with the newer ArcGIS Server version, that I see, is instead of calling python.exe, you call propy.bat which appears to run from cmd.exe in the background, then ultimately runs backup.py. But I don't think it ever gets to backup.py in my case, although I don't actually know.
I would love to hear from anyone who may have an answer to this issue, or is also suffering from it, or feels like expressing empathy.