better readme

This commit is contained in:
Ste Vaidis 2022-12-23 17:21:43 +02:00
parent 0dcbb25ebd
commit fca8771749

View File

@ -1,13 +1,27 @@
# Backup # Backup
- Asks for LUKS password from external server 1. Asks the LUKS password from password API external server
- Backup data from local disk to encrypted USB disk 2. Backup data from local disk to encrypted USB disk
- Send details email 3. Send details email
Crontab ## Install
``` ```
0 1 * * * /opt/backup.sh --host=10.0.0.1 --dir=Documents --user=myuser --pass=mypass --title=server git clone https://git.vaidis.eu/stevaidis/Backup.git clone /opt
```
## Test
```
/opt/backup.sh --src=/mnt/data --dst=/backup
```
## Crontab
```
0 1 * * * /opt/backup.sh --src=/mnt/data --dst=/backup
0 2 * * * /op./backup.sh --src=/mnt/vmachines/storage --dst=/backup/data/VMachines
0 3 * * * /op./backup.sh --src=/mnt/projects --dst=/backup --delete=yes
``` ```
## Password API ## Password API
@ -27,18 +41,11 @@ pip install aiohttp
# Restart systemd daemon # Restart systemd daemon
systemctl daemon-reload && systemctl status password systemctl daemon-reload && systemctl status password
systemctl start password && systemctl enable password systemctl start password && systemctl enable password
```
# Test the service # Test the service
```
curl http://192.168.1.199:9999/andthepasswordis curl http://192.168.1.199:9999/andthepasswordis
``` ```
TODO
- send mails