Linux command
bup 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Initialize
bup init
Initialize
BUP_DIR=[/path/to/repo] bup init
Index
bup index [/path/to/backup]
Save
bup save -n [backup-name] [/path/to/backup]
List
bup ls
List
bup ls [backup-name]/latest/
Restore
bup restore -C [/restore/path] [backup-name/latest/path]
Check
bup fsck
说明
bup is a backup system based on git's packfile format. It provides very efficient storage through deduplication, splitting large files into chunks, and using rolling checksums to find duplicate data. The tool is particularly effective for backing up large files with small changes.
参数
- init
- Initialize bup repository. Uses ~/.bup by default or BUP_DIR if set.
- index _path_
- Index files for backup. Must be run before save.
- save -n _name_ _path_
- Save indexed files as a named backup set.
- restore -C _target_ _backup-path_
- Restore files from a backup to the target directory.
- ls _backup_
- List backups or files within a backup.
- fsck
- Check repository integrity.
- fuse _mountpoint_
- Mount backups as a read-only FUSE filesystem.
- damage
- Deliberately damage a repository for testing fsck.
- margin
- Report the maximum number of matching prefix bits between objects.
- midx
- Create or display midx (multi-index) files.
- memtest
- Test memory throughput.
- web
- Start a web server to browse backups.
FAQ
What is the bup command used for?
bup is a backup system based on git's packfile format. It provides very efficient storage through deduplication, splitting large files into chunks, and using rolling checksums to find duplicate data. The tool is particularly effective for backing up large files with small changes.
How do I run a basic bup example?
Run `bup init` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does init do in bup?
Initialize bup repository. Uses ~/.bup by default or BUP_DIR if set.