Created
February 6, 2013 01:21
-
-
Save tomdz/4719383 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Chef server restore from file-based backup