From f05adefcbe94972614523ef03dff7de4f4000b4c Mon Sep 17 00:00:00 2001 From: Anton Bracke Date: Wed, 19 Sep 2018 08:51:12 +0000 Subject: [PATCH] =?UTF-8?q?'README.md'=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index f51ffc6..2322ce6 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,19 @@ git clone ... cp config.exp config nano config - ``` -* Now set your config + +Now set your config + + ``` ssh-keygen -t rsa -b 4096 -f id_backup - ``` -* Copy content of id_backup to your backup server. (~/.ssh/authorized_keys) IMPORTANT: use correct user (exp. "borg")! + +Copy content of id_backup to your backup server. (~/.ssh/authorized_keys) IMPORTANT: use correct user (exp. "borg")! + ``` crontab -e - ``` > 0 3 * * * /opt/backup/run.sh > /dev/null 2>&1 @@ -23,7 +25,6 @@ crontab -e ### Add folders to backup ``` nano run.sh - ``` Add your folders to "borg create" and don't forget "\" on each, but the last line. @@ -31,10 +32,13 @@ Add your folders to "borg create" and don't forget "\" on each, but the last lin ``` nano run.sh ``` -> borg prune \ -> --list \ -> --prefix '{hostname}-' \ -> --show-rc \ -> --keep-daily 7 \ -> --keep-weekly 4 \ -> --keep-monthly 6 + +``` +borg prune \ + --list \ + --prefix '{hostname}-' \ + --show-rc \ + --keep-daily 7 \ + --keep-weekly 4 \ + --keep-monthly 6 +```