objectbox / objectbox/objectbox-java
Back up the local data.mdb file
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.6k
- Forks
- 311
- PR merge metrics
- No merged PRs in 30d
Description
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
}
});
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the data.mdb backup scenario and the Store.runInTx approach described in the issue, then identify the available database and transaction APIs. Determine the supported way to produce a complete backup without concurrent writes; done means the API or its limitation and consistency guarantees are clearly established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100