commit des differents fichiers

This commit is contained in:
corentin 2022-05-20 11:05:39 +02:00
parent b90c71fea9
commit 50dad7d458
4 changed files with 9 additions and 0 deletions

9
sauvegarde_script.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
DAT=$(date "+%u")
# On compresse la base avec le filtre gzip
ssh root@ap21 "mysqldump -u root -proot gsbvisite | gzip" > /root/sv/gsbvisite-dump-$DAT.sql.gz
# Permet d'obtenir la dernière sauvegarde
cp /root/sv/gsbvisite-dump-$DAT.sql.gz /root/sv/dump.latest.tgz

BIN
sv/dump.latest.tgz Normal file

Binary file not shown.

BIN
sv/gsbvisite-dump-4.sql.gz Normal file

Binary file not shown.

Binary file not shown.