For a while now I've wished couchdb had a fork feature to speed up initial
replication times like this.

curl -X POST -d '{"source":"db1","target":"db2"}'
http://localhost:5984/_fork

Basic process would be something like:
1. Do a simple file system copy to create the new db
2. Set the replication checkpoint on the source db
3. [Optional] Trigger a replication to carry over any doc updates that
occurred during the process

I imagine this would be easy to add same host, same couchdb instance...
 probably even same host, different instances.  Gets a lot trickier when
you need to copy across hosts though.

Reply via email to