Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
de:server:services:borg [2022/03/04 19:41] – created dodi | de:server:services:borg [2022/10/24 08:24] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <alert type=" | ||
====== Borg ====== | ====== Borg ====== | ||
Line 11: | Line 10: | ||
* Freie Software (BSD-Lizenz) | * Freie Software (BSD-Lizenz) | ||
* Unterstützt von einer großen und aktiven Open-Source-Gemeinschaft | * Unterstützt von einer großen und aktiven Open-Source-Gemeinschaft | ||
+ | |||
+ | |||
+ | ===== Pakete ===== | ||
+ | |||
+ | < | ||
+ | pacman -S borg python-llfuse | ||
+ | </ | ||
+ | |||
+ | <alert type=" | ||
+ | <alert type=" | ||
+ | |||
+ | ===== Backup ===== | ||
+ | |||
+ | Wenn du dies einfach nur erledigen willst, gehe zu unserem [[de: | ||
+ | |||
+ | Unten findest du einige Kommandobeispiele/ | ||
+ | |||
+ | ==== Repo erstellen ==== | ||
+ | |||
+ | < | ||
+ | borg init --encryption=keyfile-blake2 --make-parent-dirs borg/ | ||
+ | </ | ||
+ | |||
+ | ==== Backup mit Verschlüsselung erstellen ==== | ||
+ | |||
+ | < | ||
+ | borg create --stats --list --progress --verbose --filter AMEhsx --show-version --show-rc --exclude-caches --compression zstd,11 borg/::' | ||
+ | </ | ||
+ | |||
+ | ==== Verschiedene Verschlüsselungsmethoden ==== | ||
+ | |||
+ | === Schlüssel im Repository, Repokey-Verschlüsselung, | ||
+ | |||
+ | Der Schlüssel wird in Ihrem Backup-Repository abgelegt. | ||
+ | |||
+ | < | ||
+ | borg init --encryption=repokey-blake2 / | ||
+ | </ | ||
+ | |||
+ | === Lokales Repository (keine Verschlüsselung) === | ||
+ | |||
+ | < | ||
+ | borg init --encryption=none / | ||
+ | </ | ||
+ | |||
+ | === Schlüsseldatei === | ||
+ | |||
+ | Der Schlüssel wird unter home dir gespeichert - '' | ||
+ | |||
+ | < | ||
+ | borg init --encryption=keyfile user@hostname: | ||
+ | </ | ||
+ | |||
+ | ==== Remote / SSH mit Speicherplatzkontingent ==== | ||
+ | |||
+ | < | ||
+ | borg init --encryption=keyfile-blake2 --storage-quota (e.g. 5G, 1.5T) --make-parent-dirs ssh:// | ||
+ | </ | ||
+ | |||
+ | ==== Liste / Einhängen / Aushängen von Backups ==== | ||
+ | |||
+ | < | ||
+ | borg list /path | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | mkdir / | ||
+ | borg mount .::Tuesday / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | borg mount repo/ / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | borg umount .::Tuesday / | ||
+ | borg umount repo/ / | ||
+ | </ | ||
+ | |||
+ | <alert type=" | ||
+ | |||
+ | ==== Unterschied zwischen zwei Backups ==== | ||
+ | |||
+ | < | ||
+ | borg diff repo/:: | ||
+ | </ | ||
+ | |||
+ | ==== Delete ==== | ||
+ | |||
+ | Wenn du ein Backup endgültig löschen willst, führe den Befehl ohne '' | ||
+ | |||
+ | < | ||
+ | borg delete --dry-run --stats repo/ | ||
+ | borg delete --dry-run --stats repo/:: | ||
+ | </ | ||
+ | |||
+ | ==== Info ==== | ||
+ | |||
+ | < | ||
+ | borg info repo/ | ||
+ | borg info repo/:: | ||
+ | </ | ||
+ | |||
+ | ==== | ||
+ | Wiederherstellung/ | ||
+ | |||
+ | Wenn du wiederherstellen willst, führe den Befehl ohne '' | ||
+ | |||
+ | < | ||
+ | borg extract --dry-run repo/:: | ||
+ | </ | ||
+ | |||
+ | ==== | ||
+ | Daten prüfen/ | ||
+ | |||
+ | < | ||
+ | borg check repo/ | ||
+ | borg check repo/:: | ||
+ | borg check --verify-data repo/ | ||
+ | borg check --verify-data repo/:: | ||
+ | </ | ||
+ | |||
+ | ==== Borg Webseite ==== | ||
+ | |||
+ | Weitere Informationen sind auch auf der Website von [[https:// |