Files
tldr/pages.zh/linux/rusnapshot.md

28 lines
721 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# rusnapshot
> 用Rust编写的BTRFS快照工具。
> 更多信息:<https://github.com/Edu4rdSHL/rusnapshot>。
- 使用配置文件创建快照:
`sudo rusnapshot --config {{path/to/config.toml}} --cr`
- 列出已创建的快照:
`sudo rusnapshot -c {{path/to/config.toml}} --list`
- 通过ID或快照名称删除快照
`sudo rusnapshot -c {{path/to/config.toml}} --del --id {{snapshot_id}}`
- 删除所有`hourly`快照:
`sudo rusnapshot -c {{path/to/config.toml}} --list --keep {{0}} --clean --kind {{hourly}}`
- 创建一个可读写的快照:
`sudo rusnapshot -c {{path/to/config.toml}} --cr --rw`
- 恢复快照:
`sudo rusnapshot -c {{path/to/config.toml}} --id {{snapshot_id}} --restore`