ARK-Builders / ARK-Builders/ark-core

Extract Backup Logic into Separate Crate

Open
#68 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
10
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Description:

The logic for backup should be moved out of `ark-cli` to make it reusable by other applications.

Currently, `ark-cli` implements the backup logic within `ark-cli/src/main.rs` (to be moved to a separate file in #67). Additionally, there is no command to restore backups.

## Proposal:
Create a separate crate to handle the backup and restore logic, including all possible options.

## Benefits:
- **Reusability:** The new crate will be reusable by other crates within the workspace (including `ark-cli`) and by external crates if needed.
- **Maintainability:** The code will be easier to maintain within a dedicated crate rather than being embedded in `ark-cli`.

Contributor guide

Open the contributing guide

Research direction

Start by reading the backup implementation in ark-cli/src/main.rs and the planned extraction context in issue #67. Define the separate crate's backup and restore responsibilities and supported options, then verify that ark-cli and other workspace or external crates can reuse it and that restore is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.