Skip to content

Instantly share code, notes, and snippets.



Last active Feb 21, 2017
What would you like to do?
This java program will create a script to recreate all the ressources of you Cloud Foundry installation (Account, orgs, spacs, quotas etc...)
export MAVEN_OPTS="-Dhttps.proxyHost= -Dhttps.proxyPort=3128"
./mvnw clean package
mkdir -p /root/script/cfbackup
java -jar target/gencfscript-0.0.2-SNAPSHOT.jar http://api.pcfdev admin admin --skip-ssl-validation --hideProgress > /root/script/cfbackup/$(date +"%Y%m%d")
0 0 * * * /root/script/ &>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.