1个稳定版本
1.0.0 | 2024年4月16日 |
---|
#4 在 #restic
91KB
1K SLoC
WRESTIC
⭐ 点赞我!
Wrestic是一个用Rust编写的备份工具,它为流行的备份程序Restic提供了一个包装器。使用Wrestic,您可以轻松配置和运行文件和目录的备份,并利用Restic的强大功能,如数据去重、加密和压缩。无论您需要备份个人文件还是组织数据,Wrestic都可以帮助您自动化流程,确保您的数据安全。
Wrestic支持所有的restic后端,包括
- 本地
- SFTP
- REST
- AMAZON S3
- AZURE
- BACKBLAZE B2
- WASABI
- MINIO
- GOOGLE CLOUD STORAGE
目录
安装
使用CARGO
cargo install wrestic
AUR
paru -S wrestic
下载二进制文件
curl -sL $(curl -s https://api.github.com/repos/alvaro17f/wrestic/releases/latest | grep browser_download_url | cut -d '"' -f 4) | sudo tar zxf - -C /usr/bin --overwrite
从源代码构建
要求
git clone https://github.com/alvaro17f/wrestic.git
cd wrestic
cargo build --release
sudo cp target/release/wrestic /usr/bin
配置
将 wrestic.toml
复制到 /home/$USER/.config/wrestic/wrestic.toml
并根据您的需求修改内容。
用法

只需运行 sudo wrestic
。
$ wrestic help
Restic wrapper built in Rust
Usage: wrestic [OPTIONS] [COMMAND]
Commands:
backup, -b Make a backup of all your repositories
restore, -r Restore a snapshot
snapshots, -s List snapshots
delete, -d Delete a snapshot
init, -i Initialize all of your repositories
check Check repository health
repair Fix any issue
cache Clean cache
update, -u Update Wrestic
custom, -c Custom command
help Print this message or the help of the given subcommand(s)
Options:
--generate <GENERATOR> [possible values: bash, elvish, fish, powershell, zsh]
-h, --help Print help
-V, --version Print version
补全
如果您的shell是
bash
,您还需要安装bash-completion
包。
要获取 <TAB>
补全,请运行 sudo wrestic --generate <your shell>
依赖关系
~16–34MB
~538K SLoC