Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pouchdb database dumps and portability #64

Open
1updesign opened this issue Aug 20, 2018 · 0 comments
Open

pouchdb database dumps and portability #64

1updesign opened this issue Aug 20, 2018 · 0 comments

Comments

@1updesign
Copy link

hey,

hoping you can help - chasing production release and getting lost in the docs a little bit!

i'm a bit confused about how pouchdb dump works perhaps you can help?

if i go through the process of:

  1. set up a couchdb database on https://couchdb.my.domain/test_db_01
  2. use pouchdb dump cli to create a dump of this
  3. use pouchdb instance bootstrapped with this dump to replicate https://couchdb.my.domain/test_db_01 to local database

that works great, and just starts updating from where the bundle left off

however, if i make a copy of the database to

  1. set up a couchdb database on https://couchdb.my.domain/test_db_01
  2. use pouchdb dump cli to create a dump of this
  3. use couchbackup to make a dump of the database
  4. use couchbackup to restore the database to https://couchdb.another.domain/test_db_01
  5. use pouchdb with the original dump to replicate https://couchdb.my.domain/test_db_01 to local database

struggling to understand the subtleties around moving these dumps around and what causes pouch to either pick up from the end of the dump or re-sync all the changes as if it were a new database.

hope you can help!

Dan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant