From 183c122a8e28b46141aaff8a2a08213cf9a4b20d Mon Sep 17 00:00:00 2001 From: rwxd Date: Fri, 30 Aug 2024 21:56:31 +0200 Subject: [PATCH] fix: storagebox --- Misc/Hetzner-Storagebox.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Misc/Hetzner-Storagebox.md diff --git a/Misc/Hetzner-Storagebox.md b/Misc/Hetzner-Storagebox.md new file mode 100644 index 00000000..031cd3cc --- /dev/null +++ b/Misc/Hetzner-Storagebox.md @@ -0,0 +1,27 @@ +# Hetzner Storagebox + +## Copy SSH Key for User + +```bash +cat ~/.ssh/id_ed25519.pub | ssh -p23 uXXXX-sub1@uXXXX.your-storagebox.de install-ssh-key +``` + +## Borg + +### Borgmatic + +#### Init + +```bash +borgmatic -c /etc/borgmatic.d/hetzner.yaml init --encryption repokey +borgmatic -c /etc/borgmatic.d/hetzner.yaml borg key export +``` + +#### Upgrade + +```bash +borgmatic -c /etc/borgmatic.d/hetzner.yaml borg info --debug 2>&1 | grep TAM | grep -i manifest +borgmatic -c /etc/borgmatic.d/hetzner.yaml borg list --consider-checkpoints --format='{name} {time} tam:{tam}{NL}' +BORG_WORKAROUNDS=ignore_invalid_archive_tam borgmatic -c /etc/borgmatic.d/hetzner.yaml borg list --consider-checkpoints --format='{name} {time} tam:{tam}{NL}' +BORG_WORKAROUNDS=ignore_invalid_archive_tam borgmatic borg upgrade --archives-tam +```