lgrt-backup-solution/README.md

20 lines
511 B
Markdown
Raw Normal View History

2021-01-27 20:42:16 +00:00
# lgrt-backup-solution
2021-01-27 20:48:52 +00:00
## Preperation
Initialize a borg-repository on the server which should store the backup-repo:
```
borg init --encrpytion=repokey /path/which/is/configured/in/backup-script
```
The following line has to go into the corresponding authorized_keys file on the Host which should store the backups:
```
command="/usr/bin/borg serve --restrict-to-path /path/which/is/configured/in/backup-script",restrict ssh-rsa ....
```
## Actual backups
Adjust backup.sh to your needs and execute it.