Skip to content

Back up the local data.mdb file #1192

@cxincx

Description

@cxincx

We need to back up the /objectbox/objectbox/data.mdb file, and we need to ensure that the database is complete and that the current data is not being written. We don't currently find an API that can be used.

Our current solution is to start a transaction and copy the database file in the transaction to avoid other writes during the copying process. Will it cause other problems?

sBoxStore.runInTx(new Runnable() {
        @Override
        public void run() {                
               use FileUtils copy data.mdb to backup_data.mdb
        }
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy