From 183b16acdedc3dbc367257ecda39dbe345753385 Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Thu, 9 Mar 2023 14:27:07 +0100 Subject: [PATCH] improve documentation - fixed command to creat virtual python environment - removed unnecessary reference of file path in `borg key export` command - added paragraph for creation of a backup directory on the remote server --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 51da2fb..73590ea 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Prepare virutal environment. ```bash sudo mkdir /opt/borg && cd /opt/borg -sudo pip3 -m venv borg-venv +sudo python3 -m venv borg-venv ``` Install `borg` via `pip`. @@ -83,6 +83,11 @@ Add the public key to your `authorized_keys` file on the server. echo 'command="borg serve --restrict-to-path ~/backups//",restrict ssh-ed25519 AAAAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx someuser@somehost' >> $HOME/.ssh/authorized_keys ``` +Create the backup directory for the host. +```bash +mkdir -p ~/backups// +``` + ### Set up Borgbackup Script Download the repository. @@ -144,9 +149,9 @@ Don't forget to export your repository key and store it in a *very* safe place. different formats: ```bash -borg key export /path/to/repo > encrypted-key-backup -borg key export --paper /path/to/repo > encrypted-key-backup.txt -borg key export --qr-html /path/to/repo > encrypted-key-backup.html +borg key export > encrypted-key-backup +borg key export --paper > encrypted-key-backup.txt +borg key export --qr-html > encrypted-key-backup.html ``` ## Usage