how do I attach existing couchdb /var/lib/couchdb to a new install? #4025
-
Hi, I am running Ubuntu 20.x with CouchDB 3.2 and my server OS got corrupted and I had to do a fresh install of OS + CouchDB, I have copy of my old /var/lib/couchdb folder, how do I copy that in and make the new install of couchdb see it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can copy it over mostly see: https://docs.couchdb.org/en/stable/maintenance/backups.html If you want to try it out first, you can mount in a different location first then configure CouchDB's database_dir and view_index_dir. You may also want to restore the Especially for a clustered install, pay attention to use the same node name in |
Beta Was this translation helpful? Give feedback.
You can copy it over mostly see: https://docs.couchdb.org/en/stable/maintenance/backups.html
If you want to try it out first, you can mount in a different location first then configure CouchDB's database_dir and view_index_dir.
You may also want to restore the
etc
config directory. It would have various settings such as the uuid admin users' password hashes and anything else you might have set.Especially for a clustered install, pay attention to use the same node name in
vm.args
as the shard map which maps db nodes and shard ranges encodes. See https://docs.couchdb.org/en/stable/setup/cluster.html. If it's just a single node install, this step might be easier if you have something likec…