Skip to content

Instantly share code, notes, and snippets.

@gcman105
Created June 14, 2012 09:49
Show Gist options
  • Select an option

  • Save gcman105/2929360 to your computer and use it in GitHub Desktop.

Select an option

Save gcman105/2929360 to your computer and use it in GitHub Desktop.
curl replication example
curl -X POST http://username:password@127.0.0.1:5984/_replicate -H "Content-Type: application/json" -d '{"source":"http://username:password@xxx.xxx.xxx.xxx:5984/database", "target":"database"}'
@gcman105

Copy link
Copy Markdown
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