Skip to content

feat: back up a running node with aruna-doctor - #556

Merged
St4NNi merged 6 commits into
mainfrom
feat/live-backup
Nov 3, 2026
Merged

St4NNi merged 6 commits into
mainfrom
feat/live-backup

Conversation

@St4NNi

@St4NNi St4NNi commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Description

Lets aruna-doctor backup take a consistent backup of a running node, so the nightly backup no longer has to stop the node. Based on main.

Changes

  • The database snapshot format moves from the doctor into aruna_storage::snapshot as a streaming writer and reader.
  • The node serves backups on <storage>/backup.sock (owner-only). Each connection gets one stream with the main, document sync and Craqle metadata stores plus the Git repositories, read from snapshots while the node keeps serving.
  • aruna-doctor backup <storage> <target> writes the stream to a file, checks it fully, then renames it into place.
  • aruna-doctor restore <backup> <target> rebuilds a new storage directory and keeps Irokle's and Craqle's store options.
  • Craqle moves to its latest main, which adds CraqleNode::store_database (feat: expose the graph store database for backups craqle#25), with tantivy 0.27 and fjall 3.1.13.
  • Workspace version 3.0.0-alpha.146.

@codecov

codecov Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.79351% with 137 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.40%. Comparing base (69588b6) to head (f83f756).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
aruna/src/backup.rs 46.22% 57 Missing ⚠️
storage/src/snapshot.rs 84.00% 44 Missing ⚠️
aruna-doctor/src/backup.rs 90.04% 24 Missing ⚠️
aruna-doctor/src/main.rs 0.00% 6 Missing ⚠️
operations/src/metadata/handle/mod.rs 0.00% 3 Missing ⚠️
storage/src/storage/handle.rs 57.14% 3 Missing ⚠️

❌ Your patch check has failed because the patch coverage (79.79%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #556    +/-   ##
========================================
  Coverage   89.39%   89.40%            
========================================
  Files        1487     1490     +3     
  Lines      618020   618458   +438     
========================================
+ Hits       552487   552910   +423     
- Misses      65533    65548    +15     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@St4NNi
St4NNi changed the base branch from feat/realm-assistant-sparql to main November 3, 2026 20:49
@St4NNi
St4NNi merged commit 5ee701b into main Nov 3, 2026
27 checks passed
@St4NNi
St4NNi deleted the feat/live-backup branch November 3, 2026 21:39

This branch was previously deployed

1 inactive deployment
coverage — f83f756c Deployed Nov 3, 2026 by St4NNi via Generate Coverage Report #1011
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

Successfully merging this pull request may close these issues.

1 participant