We have each part of our portal running on a different machine.
-Arc Server: Windows Server 2019 Standard, ArcGIS Server 10.9.1
-Portal: Windows Server 2012 R2 Standard, Portal for ArcGIS 10.9.1
-SQL Server: Windows Server 2019 Standard, SQL Server 2016
-Data Store: Windows Server 2012 R2 Standard, Data Store 10.9.1
-Image Server: Windows server 2012 R2 Standard, ArcGIS Server 10.9.1
-Clients running on Windows 10
SHARED_LOCATION in webgisdr.properties is on a network share, like the following example.
SHARED_LOCATION=\\\\NetworkSharedFolder\\ServerBackups\\portalserver
I can manually run the webgisdr.bat file on the portal server via cmd window, and it completes successfully.
This is the command I use: webgisdr --export --file .\webgisdr.properties
After things complete, I can see the final file 20240321-180336-PDT-FULL.webgissite in \\NetworkSharedFolder\ServerBackups\portalserver.
However, when I run the webgisdr.bat file via the Windows Tasks Scheduler, I observe the following.
- webgisdr says it completes successfully
- I can see the temp folder in the Recycle Bin (because it deletes it after completing)
- The webgissite file is missing on the NetworkSharedFolder
I have run the webgisdr.bat via Windows Task Scheduler and the results are always the same. Some time ago, webgisdr.bat WOULD run via Windows Task Scheduler, but it has not for a while now.
FYI: We plan to upgrade our ArcGIs system later this year.
Has anyone else experienced this issue, or does anyone else run the webgisdr.bat from a scheduled task?