Created
June 14, 2012 09:49
-
-
Save gcman105/2929360 to your computer and use it in GitHub Desktop.
curl replication example
This file contains hidden or 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
curl -X POST http://username:[email protected]:5984/_replicate -H "Content-Type: application/json" -d '{"source":"http://username:[email protected]:5984/database", "target":"database"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Triggering replication on nodes that have admin accounts enabled.
Replace username, password and database with real world values. Also replace xxx.xxx.xxx.xxx with a valid ip.