← 返回命令列表

Linux command

borg 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Initialize

borg init --encryption=[repokey] [/path/to/repo]

Create

borg create [/path/to/repo::backup-{now}] [/path/to/data]

List

borg list [/path/to/repo]

Extract

borg extract [/path/to/repo::backup-name]

Check

borg check [/path/to/repo]

Prune

borg prune --keep-daily [7] --keep-weekly [4] [/path/to/repo]

说明

borg (BorgBackup) is a deduplicating backup program with compression and authenticated encryption. It efficiently stores multiple backups by sharing common data blocks, making it ideal for frequent backups of large datasets. The tool provides security, efficiency, and reliability for local and remote backups.

参数

init
Initialize repository
create
Create new archive
extract
Extract archive contents
list
List archives or contents
diff
Compare archives
delete
Delete archive
prune
Delete old archives by retention policy
info
Show archive/repository information
mount
Mount archive as filesystem
check
Verify repository consistency

FAQ

What is the borg command used for?

borg (BorgBackup) is a deduplicating backup program with compression and authenticated encryption. It efficiently stores multiple backups by sharing common data blocks, making it ideal for frequent backups of large datasets. The tool provides security, efficiency, and reliability for local and remote backups.

How do I run a basic borg example?

Run `borg init --encryption=[repokey] [/path/to/repo]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does init do in borg?

Initialize repository