Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

Question: What module to use to copy content between 2 Org Account? #206

Closed tpcolson closed 8 years ago

tpcolson commented 8 years ago

Ya'll have been pretty helpful in answering questions about how to use ArcREST, so here's a tough one! I'm looking into the feasibility of using ArcREST to bulk copy Feature Services and Map Definitions including their Item Metadata from one organization account to another, where the two account are not linked in anyway. Some 3rd part tools have been suggested, but my experience with ArcREST in the past is that it will be cheapest, fastest, and best chance of working correctly. My question for you is, would https://github.com/Esri/ArcREST/blob/master/samples/copy_feature_service_def.py, albeit with some modification (to iterate) be the best option to copy the Feature Services between accounts?

achapkowski commented 8 years ago

Is this between portal to another portal?

tpcolson commented 8 years ago

Two AGOL accounts.

achapkowski commented 8 years ago

If it's the same site, you can just change the item's owner. If you need to copy the data, you can export the HFS data to a FGDB. Then you add that item back to account #2. You can then re-publish the FGDB and now you have a HFS copy.

MikeMillerGIS commented 8 years ago

You can use this to copy the HFS definition: https://github.com/Esri/ArcREST/blob/master/samples/copy_feature_service_deforgorg.py