hoard_chunker is designed to efficiently split large files into smaller, manageable chunks and reassemble them when needed. This functionality is particularly useful for handling massive datasets, facilitating easier processing, storage, or transfer for backups.
- Backup: Backup files from
input_dir
intooutput_dir
and chunk them withFastCDC
. - Restore: Restore chunks from
input_dir
intooutput_dir
to backed up files.
Clone the Repository:
git clone https://github.com/bykof/hoard_chunker.git
cd hoard_chunker
Build the Project:
cargo build --release
Usage: hoard_chunker [OPTIONS] [COMMAND]
Commands:
backup
restore
help Print this message or the help of the given subcommand(s)
Options:
-a, --average-size <AVERAGE_SIZE>
-l, --log-level <LOG_LEVEL>
-h, --help Print help
-V, --version Print version
hoard_chunker backup --input-path <INPUT_PATH> --output-path <OUTPUT_PATH>
--input-path <INPUT_PATH> (path files that need to be backed up)
--output-path <OUTPUT_PATH> (where to put the chunks)
hoard_chunker restore --input-path <INPUT_PATH> --output-path <OUTPUT_PATH>
--input-path <INPUT_PATH> (path to chunks and metadata.json)
--output-path <OUTPUT_PATH> (where to restore)
Contributions are welcome! Feel free to submit a pull request or open an issue if you find a bug or have suggestions for improvements.
This project is licensed under the MIT License. See the LICENSE file for details.
For any issues, questions, or feature requests, feel free to open an issue in the GitHub repository.