Restore records from MEF
geopycat provides a CLI script to retore multiple records saved as MEF (Metadata Exchange Format). MEF has the advantage of packing record UUID, permissions and attachments.
For now, does not support records that have been deleted
The script restores :
- XML record by overriding current UUID
- Group owner and owner ID
- Attachments
- Permissions
- Performs validation of the record
Running on UNIX system
restore_mef [-env [env]] --mef-folder mef-folder
env: int or prod (optional, by default int)mef-folder: folder path containing the MEF files to restore (required)
Running on windows
python restore_mef.py [-env [env]] --mef-folder mef-folder
Running on windows (swisstopo)
& "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\scripts\restore_mef.py" [-env [env]] --mef-folder [mef-folder]