# hbackup
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 `~` path expansion
## Quick Start
### 1. Install
```sh
cargo install hbackup --version 0.1.0-beta.6
```
### 2. Create a backup task
```sh
bk create --source ~/myfile.txt --target ~/backup/
```
### 3. Run all backup tasks
```sh
bk run
```
### 4. List all tasks
```sh
bk list
```
### 5. Delete a task
Delete by id:
```sh
bk delete --id 1
```
Delete all tasks:
```sh
bk delete --all
```
### 6. Display configuration file path
```shell
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