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
This commit is contained in:
parent
e77c8e8f43
commit
183b16acde
13
README.md
13
README.md
|
|
@ -33,7 +33,7 @@ Prepare virutal environment.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo mkdir /opt/borg && cd /opt/borg
|
sudo mkdir /opt/borg && cd /opt/borg
|
||||||
sudo pip3 -m venv borg-venv
|
sudo python3 -m venv borg-venv
|
||||||
```
|
```
|
||||||
|
|
||||||
Install `borg` via `pip`.
|
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/<user>/<host>",restrict ssh-ed25519 AAAAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx someuser@somehost' >> $HOME/.ssh/authorized_keys
|
echo 'command="borg serve --restrict-to-path ~/backups/<user>/<host>",restrict ssh-ed25519 AAAAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx someuser@somehost' >> $HOME/.ssh/authorized_keys
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Create the backup directory for the host.
|
||||||
|
```bash
|
||||||
|
mkdir -p ~/backups/<user>/<host>
|
||||||
|
```
|
||||||
|
|
||||||
### Set up Borgbackup Script
|
### Set up Borgbackup Script
|
||||||
|
|
||||||
Download the repository.
|
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:
|
different formats:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
borg key export /path/to/repo > encrypted-key-backup
|
borg key export > encrypted-key-backup
|
||||||
borg key export --paper /path/to/repo > encrypted-key-backup.txt
|
borg key export --paper > encrypted-key-backup.txt
|
||||||
borg key export --qr-html /path/to/repo > encrypted-key-backup.html
|
borg key export --qr-html > encrypted-key-backup.html
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue