Skip to content

pouchdb database dumps and portability #64

@1updesign

Description

@1updesign

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions