Backup/README.md
2022-12-17 23:27:18 +02:00

45 lines
750 B
Markdown

# Backup
- Asks for LUKS password from external server
- Backup data from local disk to encrypted USB disk
- Send details email
Crontab
```
0 1 * * * /opt/backup.sh --host=10.0.0.1 --dir=Documents --user=myuser --pass=mypass --title=server
```
## Password API
A Raspberry PI connected to local network can do the job of serving the password
```bash
# copy the files
cp password.py /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