Add server configuration to README.
This commit is contained in:
parent
cd6350ecd9
commit
aa1e30c069
10
README.md
10
README.md
|
@ -52,8 +52,16 @@ head -c 1024 /dev/urandom | base64 > /data/data/com.termux/files/home/borgbackup
|
|||
|
||||
Change `<server>` and `<port>` in `borg.sh` to correct values.
|
||||
|
||||
Generate keypair for root with empty password
|
||||
```bash
|
||||
tsudo ssh-keygen -t ed25519
|
||||
tsudo cat
|
||||
```
|
||||
|
||||
Dont forget to set ssh configs accordingly!
|
||||
Add ~/.ssh/id_ed25519.pub to authorized_users on server
|
||||
```bash
|
||||
command="mkdir -p ~/repos/phone; cd ~/repos/phone; borg serve --restrict-to-path ~/repos/phone",restrict ssh-ed25519 AAA..yX root@phone
|
||||
```
|
||||
|
||||
|
||||
## Known Issues
|
||||
|
|
Loading…
Reference in a new issue