ARK-Builders/ark-core

Extract Backup Logic into Separate Crate

Opened this issue · 0 comments

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.