Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:server:services:borg [2022/03/24 19:18] – added packages dan | en:server:services:borg [2023/08/10 03:37] (current) – [Borg] added borgbackup website link dan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <alert type=" | ||
====== Borg ====== | ====== Borg ====== | ||
- | Deduplicating archiver with compression and encryption BorgBackup (short: Borg) gives you: | + | Deduplicating archiver with compression and encryption |
* Space efficient storage of backups. | * Space efficient storage of backups. | ||
Line 19: | Line 18: | ||
</ | </ | ||
+ | <alert type=" | ||
+ | <alert type=" | ||
+ | |||
+ | ===== Backup ===== | ||
+ | |||
+ | If you just want to get this done, go to our [[en: | ||
+ | |||
+ | Below you will find some command examples/ | ||
+ | |||
+ | ==== Create repo ==== | ||
+ | |||
+ | < | ||
+ | borg init --encryption=keyfile-blake2 --make-parent-dirs borg/ | ||
+ | </ | ||
+ | |||
+ | ==== Create backup with encryption ==== | ||
+ | |||
+ | < | ||
+ | borg create --stats --list --progress --verbose --filter AMEhsx --show-version --show-rc --exclude-caches --compression zstd,11 borg/::' | ||
+ | </ | ||
+ | |||
+ | ==== Different encryption methods ==== | ||
+ | |||
+ | === Key in repository, repokey encryption, BLAKE2b (often faster, since Borg 1.1) === | ||
+ | |||
+ | The key will be placed in your backup repository. | ||
+ | |||
+ | < | ||
+ | borg init --encryption=repokey-blake2 / | ||
+ | </ | ||
+ | |||
+ | === Local repository (no encryption) === | ||
+ | |||
+ | < | ||
+ | borg init --encryption=none / | ||
+ | </ | ||
+ | |||
+ | === Keyfile === | ||
+ | |||
+ | The key gets stored in your home dir - '' | ||
+ | |||
+ | < | ||
+ | borg init --encryption=keyfile user@hostname: | ||
+ | </ | ||
+ | |||
+ | ==== Remote / SSH including storage quota ==== | ||
+ | |||
+ | < | ||
+ | borg init --encryption=keyfile-blake2 --storage-quota (e.g. 5G, 1.5T) --make-parent-dirs ssh:// | ||
+ | </ | ||
+ | |||
+ | ==== List / Mount / umount backup ==== | ||
+ | |||
+ | < | ||
+ | borg list /path | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | mkdir / | ||
+ | borg mount .::Tuesday / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | borg mount repo/ / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | borg umount .::Tuesday / | ||
+ | borg umount repo/ / | ||
+ | </ | ||
+ | |||
+ | <alert type=" | ||
+ | |||
+ | ==== Difference between two backups ==== | ||
+ | |||
+ | < | ||
+ | borg diff repo/:: | ||
+ | </ | ||
+ | |||
+ | ==== Delete ==== | ||
+ | |||
+ | If you want to delete your backup for good, run the command without '' | ||
+ | |||
+ | < | ||
+ | borg delete --dry-run --stats repo/ | ||
+ | borg delete --dry-run --stats repo/:: | ||
+ | </ | ||
+ | |||
+ | ==== Info ==== | ||
+ | |||
+ | < | ||
+ | borg info repo/ | ||
+ | borg info repo/:: | ||
+ | </ | ||
+ | |||
+ | ==== Restore/ | ||
+ | |||
+ | If you want to restore, run the command without '' | ||
+ | |||
+ | < | ||
+ | borg extract --dry-run repo/:: | ||
+ | </ | ||
+ | |||
+ | ==== Check/ | ||
+ | |||
+ | < | ||
+ | borg check repo/ | ||
+ | borg check repo/:: | ||
+ | borg check --verify-data repo/ | ||
+ | borg check --verify-data repo/:: | ||
+ | </ | ||
+ | |||
+ | ==== Borg website ==== | ||
+ | |||
+ | More information can also be found on [[https:// |