Skip to content

Instantly share code, notes, and snippets.

@gcman105
Created June 14, 2012 09:49
Show Gist options
  • Save gcman105/2929360 to your computer and use it in GitHub Desktop.
Save gcman105/2929360 to your computer and use it in GitHub Desktop.
curl replication example
curl -X POST http://username:[email protected]:5984/_replicate -H "Content-Type: application/json" -d '{"source":"http://username:[email protected]:5984/database", "target":"database"}'
@gcman105
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment