Save filled couchbase lite db as a backup in nativescript and vue?

129 Views Asked by At

May I save a couchbase db as a backup on the localfilesystem?

It should work on IOS and Android.

On IOS I have an App: "Files" with data "on my iphone" from Firefox or Recorder App or other Apps always in a directory. How can I save the backup in a directory in this location?

I found something about push replication with couchbase, but only remote. Is it possible to make a push replication to the local filesystem to solve this?

1

There are 1 best solutions below

0
On

A Couchbase Lite database is a directory. Copying the directory will back up the database.

The backup, of course, will not stay up-to-date. Also, be careful using db copies in replication scenarios. Databases have ids that are assumed to be unique. Multiple copies (which will have the same id) will encumber the replication process.