Skip to content

Instantly share code, notes, and snippets.

@boina-n
Last active February 21, 2017 13:35
Show Gist options
  • Save boina-n/08b2d9375857daa9d6163a14444e5f4a to your computer and use it in GitHub Desktop.
Save boina-n/08b2d9375857daa9d6163a14444e5f4a to your computer and use it in GitHub Desktop.
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=1.2.3.4 -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").cfbackup.sh
0 0 * * * /root/script/usagereport.sh &>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment