40 lines
630 B
Markdown
40 lines
630 B
Markdown
# Backup
|
|
|
|
- Asks for LUKS password from external server
|
|
- Backup data from local disk to encrypted USB disk
|
|
- Send details email
|
|
|
|
|
|
## Password API
|
|
|
|
A Raspberry PI connected to local network can do the job of serving the password
|
|
|
|
```bash
|
|
# copy the files
|
|
cp password /opt/
|
|
cp password.service /etc/systemd/system/
|
|
|
|
# Install the depentencies
|
|
apt update
|
|
apt install python3-pip
|
|
pip install aiohttp
|
|
|
|
# Restart systemd daemon
|
|
systemctl daemon-reload && systemctl status password
|
|
systemctl start password && systemctl enable password
|
|
|
|
# Test the service
|
|
curl http://192.168.1.199:9999/andthepasswordis
|
|
```
|
|
|
|
|
|
|
|
|
|
TODO
|
|
|
|
- send mails
|
|
|
|
|
|
|
|
|