Linux command
rustic 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Initialize repository
rustic init
Create backup
rustic backup [path/to/backup]
List snapshots
rustic snapshots
Restore snapshot
rustic restore [snapshot_id] [target/]
Forget old snapshots
rustic forget --keep-daily [7] --keep-weekly [4]
Prune unused data
rustic prune
Check repository
rustic check
Mount repository
rustic mount [mountpoint/]
说明
rustic is a fast backup tool written in Rust that is fully compatible with the restic repository format. It provides encrypted, deduplicated backups using AES-256 encryption with authenticated tags, ensuring data confidentiality and integrity at rest. The tool uses content-defined chunking and deduplication so that only unique data chunks are stored, significantly reducing storage requirements for incremental backups. Multiple storage backends are supported including local filesystems, S3-compatible object storage, SFTP, and REST servers. Retention policies specified through forget with keep rules (daily, weekly, monthly) automate snapshot cleanup. The prune command reclaims space by removing data chunks no longer referenced by any snapshot.
参数
- -r, --repo _PATH_
- Repository location.
- -p, --password _PASS_
- Repository password.
- --password-file _FILE_
- Password file.
- -v, --verbose
- Verbose output.
- --dry-run
- Simulate only.
FAQ
What is the rustic command used for?
rustic is a fast backup tool written in Rust that is fully compatible with the restic repository format. It provides encrypted, deduplicated backups using AES-256 encryption with authenticated tags, ensuring data confidentiality and integrity at rest. The tool uses content-defined chunking and deduplication so that only unique data chunks are stored, significantly reducing storage requirements for incremental backups. Multiple storage backends are supported including local filesystems, S3-compatible object storage, SFTP, and REST servers. Retention policies specified through forget with keep rules (daily, weekly, monthly) automate snapshot cleanup. The prune command reclaims space by removing data chunks no longer referenced by any snapshot.
How do I run a basic rustic example?
Run `rustic init` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -r, --repo _PATH_ do in rustic?
Repository location.