From fca877174916c97f878c5e26b4e8f222d7990628 Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Fri, 23 Dec 2022 17:21:43 +0200 Subject: [PATCH] better readme --- README.md | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 0da8eb1..2ca38e9 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,27 @@ # Backup -- Asks for LUKS password from external server -- Backup data from local disk to encrypted USB disk -- Send details email +1. Asks the LUKS password from password API external server +2. Backup data from local disk to encrypted USB disk +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 @@ -27,18 +41,11 @@ 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 - - - -