rbak

Crates.iorbak
lib.rsrbak
version1.0.0
created_at2025-12-07 04:07:14.162104+00
updated_at2025-12-08 01:49:45.002301+00
descriptionSimple Rust CLI backup tool: files → .bak, directories → _bak (recursive)
homepage
repositoryhttps://github.com/A-Young-Git/rbak
max_upload_size
id1971113
size23,147
Anthony Young (A-Young-Git)

documentation

README

rbak

rbak is a simple Rust command-line backup tool that creates backups of files and directories:

  • Files are backed up with a .bak extension (e.g., file.txtfile.bak)
  • Directories are backed up recursively with a _bak suffix (e.g., mydirmydir_bak/)

Features

  • Lightweight and easy to use CLI
  • Recursive directory backups
  • Clear error handling and validation
  • Cross-platform support using Rust's standard library

Usage

Backup a file

rbak file path/to/file.txt

This creates path/to/file.bak.

Backup a directory recursively

rbak dir path/to/directory

This creates path/to/directory_bak/ with all contents copied recursively.

Help

rbak --help

Installation

cargo install rbak

Development

  • Written in Rust using clap for CLI argument parsing and anyhow for error handling.
  • Designed with modular and robust code ideal for extension.

License

MIT

Commit count: 0

cargo fmt