sauvegarde svbase

This commit is contained in:
sio2022-ppe25 2021-03-23 11:51:10 +01:00
parent bd51f01102
commit 37266c7a48
2 changed files with 7 additions and 0 deletions

3
restorebase Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
DAT=$(date "+%u")
scp /root/sauvegarde/bdgsb-$DAT.sql.tgz root@ppe25:/root

4
svbase Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
DAT=$(date "+%u")
ssh root@ppe25 "mysqldump -u gsbadm -pgsbadm bdgsb | gzip" > /root/sauvegarde/bdgsb-$DAT.sql.tgz