Skip to content

Instantly share code, notes, and snippets.

@carmstrong
Created September 19, 2014 21:52
Show Gist options
  • Select an option

  • Save carmstrong/f816648894aadfddf785 to your computer and use it in GitHub Desktop.

Select an option

Save carmstrong/f816648894aadfddf785 to your computer and use it in GitHub Desktop.
Restore Deis etcd keys
nse deis-controller
cd /app
export ETCD=172.17.8.100:4001
./manage.py shell <<EOF
from api.models import *
[k.save() for k in Key.objects.all()]
[a.save() for a in App.objects.all()]
[d.save() for d in Domain.objects.all()]
EOF
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment