目录

BorgBackup

BorgBackup (short: Borg) is a deduplicating backup program. Optionally, it supports compression and authenticated encryption.

Usage

Initialize a Borg repository:

borg init -e repokey <repo-name>

Add backup file to the repo:

borg create --stats <repo-name>::<archive-name> /path/to/file [/path/to/other-file]

List

List all archives in this repo:

borg list <repo-name>

List contents in one archive:

borg list <repo-name>::<archive-name>

Restore

Restore the archive by extracting the files relative to the current directory

borg extract <repo>::<archive>

Delete

Delete specify archive:

borg delete <repo>::<archive>

Reference