Linux command
rdiff-backup 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Backup
rdiff-backup [source/] [backup/]
Backup
rdiff-backup [source/] [user@host::backup/]
Restore
rdiff-backup -r now [backup/] [restore/]
Restore
rdiff-backup -r [3D] [backup/] [restore/]
List
rdiff-backup --list-increments [backup/]
Remove
rdiff-backup --remove-older-than [2W] [backup/]
Verify
rdiff-backup --verify [backup/]
Backup
rdiff-backup --exclude '[**/*.tmp]' [source/] [backup/]
说明
rdiff-backup creates incremental backups using reverse diffs. The destination mirrors current state while storing history. Each backup stores only differences from previous. Space-efficient for frequent backups. Restoration from any point in history is possible. Diffs are applied to reconstruct old states. Remote backup works over SSH. No special server needed, just rdiff-backup on both ends. Retention policies remove old increments. Balance history depth against storage.
参数
- -r, --restore-as-of _TIME_
- Restore from time.
- --list-increments
- Show backup history.
- --remove-older-than _TIME_
- Delete old increments.
- --verify
- Verify backup integrity.
- --include _PATTERN_
- Include files.
- --exclude _PATTERN_
- Exclude files.
- -v, --verbosity _N_
- Verbosity level.
- --force
- Force operation, even if destination is not empty or increments are corrupt.
- --print-statistics
- Print file transfer statistics after backup.
FAQ
What is the rdiff-backup command used for?
rdiff-backup creates incremental backups using reverse diffs. The destination mirrors current state while storing history. Each backup stores only differences from previous. Space-efficient for frequent backups. Restoration from any point in history is possible. Diffs are applied to reconstruct old states. Remote backup works over SSH. No special server needed, just rdiff-backup on both ends. Retention policies remove old increments. Balance history depth against storage.
How do I run a basic rdiff-backup example?
Run `rdiff-backup [source/] [backup/]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -r, --restore-as-of _TIME_ do in rdiff-backup?
Restore from time.