Serveur Sv

This commit is contained in:
Louis Déprés 2022-03-10 10:24:27 +01:00
parent dc8f24250c
commit 00c717686b
3 changed files with 8 additions and 0 deletions

1
sv/cron.txt Normal file
View File

@ -0,0 +1 @@
0 21 * * 1-7 /root/svbase

2
sv/restorebase Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
zcat latest.sql.gz|ssh root@ap22 "mysql -u gsbadm -pgsbadm gsbvisite"

5
sv/svbase Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
DAT=$(date "+%u")
ssh root@ap22 "mysqldump -u gsbadm -pgsbadm gsbvisite | gzip" > gsbvisite-$DAT.sql.gz
cp gsbvisite-$DAT.sql.gz latest.sql.gz