Skip to content

Instantly share code, notes, and snippets.

@matteocrippa
Created June 4, 2013 14:34
Show Gist options
  • Select an option

  • Save matteocrippa/5706396 to your computer and use it in GitHub Desktop.

Select an option

Save matteocrippa/5706396 to your computer and use it in GitHub Desktop.
CouchDB Backup
- copy all db files in your home
cp /var/lib/couchdb/<version>/* /home/username
- copy all files to actual server
scp -r -P <PORT> <username>@<ip>:/home/username .
- copy back to new server
- set permissions
chown couchdb *.couch
chgrp couchdb *.couch
- restore to the dir
mv *.couch /var/lib/couchdb/<version>/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment