rsbackup

Crates.iorsbackup
lib.rsrsbackup
version0.1.1
sourcesrc
created_at2024-05-29 07:37:01.357252
updated_at2024-06-09 03:51:15.520476
descriptionrsbackup is a cross-platform file backup tool written in Rust, designed to simplify the backup process. It supports Windows, Linux, and macOS, and is open source under the GPL license.
homepagehttps://github.com/limitcool/rsbackup
repositoryhttps://github.com/limitcool/rsbackup
max_upload_size
id1255153
size47,191
InitCool (limitcool)

documentation

https://docs.rs/rsbackup

README

English| 简体中文

rsbackup

rsbackup is a cross-platform file backup tool written in Rust, designed to simplify the backup process. It supports Windows, Linux, and macOS, and is open source under the GPL license.

Installation

You can install rsbackup from crates.io using Cargo:

cargo install rsbackup

Alternatively, you can download the source code of rsbackup from GitHub and compile and install it using Cargo:

git clone https://github.com/limitcool/rsbackup.git
cd rsbackup
cargo build --release
cargo install --path .

Or, you can directly download the precompiled binary of rsbackup from GitHub and place it in your system's PATH:

# Linux
wget https://github.com/limitcool/rsbackup/releases/download/v0.1.0/rsbackup-v0.1.0-x86_64-linux.tar.xz
xz -d rsbackup-v0.1.0-x86_64-linux.tar.xz
tar -xvf rsbackup-v0.1.0-x86_64-linux.tar
chmod +x rsbackup-linux-x86_64
mv rsbackup-linux-x86_64 /usr/local/bin/rsbackup

Usage

  1. Modify Configuration File: Modify the config.yaml file to specify the backup directory, destination, and exclude rules.

    CheckFrequency: 86400
    BackupItems:
    - BackupDirectory: ''
      BackupDestination: ''
      Exclude: []
      PreBackupCommand: ""
      AfterBackupCommand: ""
    

    You can add more backup items as needed.

  2. Run Backup: Execute the following command in the terminal to start the backup process:

    rsbackup
    

    rsbackup will read the configuration file and begin the backup operation.

Roadmap

rsbackup currently only supports backing up files to local directories. The following destinations are planned for future versions:

  • Alibaba Cloud Drive
  • Tencent Cloud COS
  • Alibaba Cloud OSS
  • WebDAV

These features will be released in subsequent versions. Contributions from developers are welcome, and you can participate in the project's development and improvement by submitting Pull Requests.

License

rsbackup is released under the GPL (GNU General Public License). You can view the source code and contribute on GitHub.

Commit count: 5

cargo fmt