hbackup 0.1.4

hbackup is a sample, high-performance, cross-platform backup tool written in Rust. It is designed to be fast, efficient, and easy to use, with a focus on performance and reliability.
Documentation

hbackup

Build status Crates.io License

English | 简体中文

hbackup is a sample, high-performance, cross-platform backup tool written in Rust. It is designed to be fast, efficient, and easy to use, with a focus on performance and reliability.

Features

  • Simple and fast file/directory backup via CLI
  • Cross-platform: macOS, Linux, Windows
  • Supports custom backup tasks with unique IDs
  • Configuration and task management via JSON in user config directory
  • Supports '~', '$HOME' and relative paths for source and target paths

Quick Start

1. Install

cargo install hbackup

2. Add a backup task

bk add --source ~/myfile.txt --target ~/backup/

3. Run all backup tasks

  • run all tasks:
bk run
  • run a specific task by ID:
bk run --id 1
  • run a specific task with source and target:
bk run ~/myfile.txt ~/backup/

4. List all tasks

bk list

5. Delete a task

Delete by id:

bk delete --id 1

Delete all tasks:

bk delete --all

6. Edit a task

bk edit --id 1 --source ~/newfile.txt --target ~/newbackup/

7. Display configuration file path

bk config

Configuration File Location

  • macOS/Linux: ~/.config/hbackup/hbackup.json
  • Windows: C:\Users\<User>\AppData\Roaming\hbackup\hbackup.json

License

MIT OR Apache-2.0