Created
October 22, 2018 09:11
-
-
Save pkazi/294845c6da2073787a8a1b6b55b193aa to your computer and use it in GitHub Desktop.
DCOS Save marathon configs in json format for all marathon apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Save marathon configs in json format for all marathon apps | |
# Usage : saveMarathonConfig.sh | |
for service in `dcos marathon app list --quiet | tr -d "/" | sort`; do | |
dcos marathon app show $service | jq '. | del(.tasks, .version, .versionInfo, .tasksHealthy, .tasksRunning, .tasksStaged, .tasksUnhealthy, .deployments, .executor, .lastTaskFailure, .args, .ports, .residency, .secrets, .storeUrls, .uris, .user)' >& $service.json | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment