Hi all. I have a hosted feature layer on my Enterprise Portal that I would like to back up periodically. This hosted feature layer is not in an Enterprise geodatabase. I would like to write a script that will download the hosted feature layer as a file geodatabase and store it in a cloud storage folder on a regular basis, say, weekly.
Any advice on where to start to set this up?