-
-
Notifications
You must be signed in to change notification settings - Fork 198
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What do you want?
Summary
Add a helix branch command that safely copies the LMDB database to a new directory and optionally deploys a new instance using the branched data.
Background
LMDB supports safely cloning the .mdb file while the database is running via its env copy method. This logic is already implemented for the backup command.
Proposed Implementation
- CLI copies the database externally - The CLI can perform the copy while the instance is running without needing to communicate with the instance (same approach as backup command)
- Deploy new instance - After copying, the branch command could deploy a new Docker instance using:
- A different port
- A modified volume mount pointing to the branched data directory
Feature Area
CLI
Additional context
Technical Notes
- LMDB env copy duplicates the database so a new env can be opened on the copy
- No need for an endpoint or runtime volume mount modifications
- Existing backup command logic can be reused/extended
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request