Skip to content

Instantly share code, notes, and snippets.

@tomdz
Created February 6, 2013 01:21
Show Gist options
  • Save tomdz/4719383 to your computer and use it in GitHub Desktop.
Save tomdz/4719383 to your computer and use it in GitHub Desktop.
for service in chef-server-webui chef-expander chef-solr chef-server rabbitmq-server couchdb; do
service $service stop
done
# couchdb 1.0.1's ubuntu package has a known bug where it doesn't stop properly
pkill -u couchdb
for folder in /etc/couchdb /var/lib/chef /var/lib/couchdb /var/chef/cache /var/cache/chef /var/log/chef /var/log/couchdb /etc/chef; do
rm -rf $folder
done
rsync -avzi $RESTORE_DIR /
rm -fr /var/lib/rabbitmq/mnesia/*
for service in couchdb rabbitmq-server chef-server chef-solr chef-expander chef-server-webui; do
service $service start
done
@tomdz
Copy link
Author

tomdz commented Feb 6, 2013

Chef server restore from file-based backup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment