Heritage Program/CDC
Download zip file containing documentation and all necessary files.
Request necessary files from NatureServe:
- Setup automation of downloads of nightly Biotics backups according to this solution. NOTE the Kiteworks folder location in Step 10 and provide to NatureServe in Step 4.
- In ArcGIS Pro, from the Project tab, select Python.
- Copy the path to the arcgispro-py3, as highlighted in the screenshot below.
- Email biotics@natureserve.orgrequesting ability to automate nightly Biotics backups. Provide:
- path to Kiteworks folder from Step 1
- path to the arcgispro-py3 from Step 2
NatureServe:
- Update Publish_backups_batch_file.py:
- program - line 21
- arcpy.env.workspace according to Kiteworks folder path - line 22
- Update Publish_Biotics_Backups.bat with user's path to arcgispro-py3
Heritage Program/CDC
- Save the two files provided by NatureServe to the Kiteworks folder identified in Step 1. NOTE: Alternatively, you can update the script to reflect where the files are written.
- Test that the batch file works by double clicking it.
- Log into ArcGIS Online and verify that the Biotics layers hosted feature layer was created.
If the layer was not created or the script did not run successfully, email biotics@natureserve.org to submit a ticket for assistance.
Create a scheduled task
Create a scheduled task to run the script daily, to automatically update the data within the Biotics layers, so the data will not get stale.
- From the Windows Search on the Taskbar, type in Task Scheduler, and open the Task Scheduler.
- Within the Task Scheduler, Create Task.
- Within Create Task, on the General tab, name the task (ie. Download and Publish Biotics spatial layers).
- From the Triggers tab, select New.
- Within New Trigger, indicate to run the task Daily (or as often as preferred) and select the time the task should be run. NOTE: The computer has to be on to run the task, so make sure you indicate the time accordingly. Click OK.
- From the Actions tab, click New.
- Within New Action, Start a program and navigate to the Publish_Biotics_Backups.bat script. Click OK.
- From the Conditions tab, indicate to Wake the computer to run this task.
- Click OK to save the scheduled task.