replication - Replicate a shared database on Cloudant -
i'm trying replicate db shared me (owner/shareddb) db (dybskiy/copyofshareddb) via futon replicator. following error:
replication failed: not open http://me.cloudant.com:5984/owner%2fshareddb/
how shall it?
to make replication of shared database work futon interface, enter full url of shared database in remote db field, this:
https://[username]:[password]@[shared_username].cloudant.com/[database] to replicate shared database via curl, you'll have explicitly set source , target parameters in replication request, username , password authentication, so:
source="https://[username]:[password]@[shared_username].cloudant.com/" target="https://[username]:[password]@[username].cloudant.com/" db_to_replicate="fakedatabase" curl -h "accept: application/json" -h "content-type: application/json" -x post -d '{"source":"$source$db_to_replicate","target":"$target$db_to_replicate"}' $target\_replicate
Comments
Post a Comment