upload scripts of the libre server

This commit is contained in:
2023-07-17 10:41:34 +03:00
parent ec8da86abc
commit 917a3059f3
4 changed files with 15 additions and 0 deletions

5
scwipts/weekly_db_copy Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
scp oracle:~/DB/db.7z /bck/$(date +'%Y-%m-%d').7z
curl https://ntfy.d.metallum.eu.org/Saretify -H 'Content-Type: application/json' -d @/dev/stdin<<EOF
{"text":"precentage of full drive are: main: $(ssh oracle df -hl |grep -P 'sda1\b' | awk '{print $5}'). Mongodb storage: $(ssh oracle df -hl |grep -P 'sdb\b' | awk '{print $5}')"
EOF