Skip to content

Instantly share code, notes, and snippets.

@boina-n

boina-n/gencfscript.txt

Last active Feb 21, 2017
Embed
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=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
You can’t perform that action at this time.