Some of our users have inquired whether it is possible to clone an ArcGIS site within the same organization. While an in-app option is not currently available to perform this action, it can be accomplished using Hub.py. This action will clone the site item and associated site pages and groups.
Steps to Clone a Site:
2. Connect to your GIS
3. Install the required library
pip install -e git+https://github.com/esri/hub-py.git#egg=arcgishub
4. Import the Hub Library
from arcgishub.hub import Hub
5. Log in to your ArcGIS account
hub_basic = Hub("https://www.arcgis.com", "Your Username")
6. Fetch the site to clone
site = hub_basic.sites.get('ID of the site that you want to copy') site.item
7. Clone the site
site_cloned = hub_basic.sites.clone(site) site_cloned.item
Note: If you do not have ArcGIS Notebooks, you can run it in your local Jupyter Notebooks.
In upcoming blogs, I will share the steps to show how you can clone a site across different organizations (Example- Enterprise to Online). Please share your feedback or ideas for further enhancements through the ArcGIS Hub Ideas board in Esri Community.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.