Script to help with mms data migration for cameo 19 to 2022x projects, see this wiki page for entire migration process.
Install node.js
For each project/branch to be migrated:
-
get cameo 19x json from branch:
curl -X GET -u mms4user {http://mms4domain.com}/projects/{projectId}/refs/{master}/elements > input.json
-
run process script to get cameo 2022x json as output.json
node process.js
-
post output back to mms with overwrite flag
curl -X POST -u mms4user -H 'Content-Type: application/json' [email protected] {http://mms4domain.com}/projects/{projectId}/refs/{master}/elements?overwrite=true > out.txt