From ccedc4b6791d9921abb4fb3be401396e8e892265 Mon Sep 17 00:00:00 2001 From: DeltaLima Date: Sun, 25 Jun 2023 01:38:24 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eborgmatic-quickguide.md=E2=80=9C=20hin?= =?UTF-8?q?zuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- borgmatic-quickguide.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 borgmatic-quickguide.md diff --git a/borgmatic-quickguide.md b/borgmatic-quickguide.md new file mode 100644 index 0000000..143ad72 --- /dev/null +++ b/borgmatic-quickguide.md @@ -0,0 +1,23 @@ +# borgmatic quickguide + +1. ssh-keygen # without passphrase +2. echo 'command="borg serve --restrict-to-repository /home/borgbackup/repos/FQDN",restrict ' $(cat ~/.ssh/id_rsa.pub) | ssh borgbackup@BACKUPHOST -c "cat - >> ~/.ssh/authorized_keys" +3. borg init -e repokey borgbackup@BACKUPHOST:repos/FQDN # you have to enter a PASSPHRASE (`pwgen 24 1`) +3. mkdir -p /etc/borgmatic/ +4. /etc/borgmatic/config.yml +``` +location: + source_directories: + - /etc/ + - /home + repositories: + - borgbackup@BACKUPHOST:/home/borgbackup/repos/FQDN +storage: + encryption_passphrase: PASSPHRASE +retention: + keep_daily: 7 + keep_weekly: 4 + keep_monthly: 6 + keep_yearly: 1 + +``` \ No newline at end of file