This tool has been developed by @rfiestas github afford for to do Marathon tasks backup using the Marathon API, testing with 1.4.8.
It will create a diferents json for each groups and tasks.
NAME
marathon_raw_backup -- dump or restore Marathon Tasks
COMMANDS
bash marathon_groups_backup.py --environment lab --url http://marathonur:8080bash docker run -e ENVIRONMENT=lab -e URL=http://marathonurl:8080 -e HOME_PATH=/mnt maauso/marathon-raw-backup
curl -s -X POST $MARATHON/v2/groups -H "Content-type: application/json" --data "@groups/services.json"
curl -s -X POST $MARATHON/v2/groups -H "Content-type: application/json" --data "@groups/apps.json"
curl -X PUT -H "Content-Type: application/json" --data @group.json 'http://marathon:8080/v2/groups?force=true'
for i in `find . -type f -name "*.json"` ; do curl -X POST -H "Content-Type: application/json" --data @$i 'http://marathon8080/v2/apps/' ; done
Content type
Image
Digest
Size
18.7 MB
Last updated
almost 9 years ago
docker pull maauso/marathon-raw-backup