Created
December 8, 2010 19:04
-
-
Save atomic-penguin/733724 to your computer and use it in GitHub Desktop.
couchdb_compact
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
#!/bin/sh | |
COUCHDB_URI="http://localhost:5984/chef" | |
curl -H "Content-Type: application/json" -X POST $COUCHDB_URI/_compact >/dev/null 2>&1 | |
for i in users sandboxes roles nodes id_map data_bags cookbooks clients checksums; do | |
curl -H "Content-Type: application/json" -X POST $COUCHDB_URI/_compact/$i >/dev/null 2>&1; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment