From 6988c9540b13d34bdfa4ca566540920ce3776e71 Mon Sep 17 00:00:00 2001 From: DeltaLima Date: Sun, 25 Jun 2023 01:53:48 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eborgmatic-quickguide.md=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- borgmatic-quickguide.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/borgmatic-quickguide.md b/borgmatic-quickguide.md index 8dd2fd5..ebacd8a 100644 --- a/borgmatic-quickguide.md +++ b/borgmatic-quickguide.md @@ -3,15 +3,15 @@ 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 +4. mkdir -p /etc/borgmatic/ +5. /etc/borgmatic/config.yml ``` location: source_directories: - /etc/ - /home/ repositories: - - borgbackup@BACKUPHOST:/home/borgbackup/repos/FQDN + - borgbackup@BACKUPHOST:repos/FQDN storage: encryption_passphrase: PASSPHRASE retention: @@ -20,4 +20,10 @@ retention: keep_monthly: 6 keep_yearly: 1 -``` \ No newline at end of file +``` +6. /etc/cron.daily/borgmatic +``` +#!/bin/sh +borgmatic +``` +chmod +x /etc/cron.daily/borgmatic \ No newline at end of file