commit des differents fichiers
This commit is contained in:
parent
b90c71fea9
commit
50dad7d458
9
sauvegarde_script.sh
Executable file
9
sauvegarde_script.sh
Executable 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
BIN
sv/dump.latest.tgz
Normal file
Binary file not shown.
BIN
sv/gsbvisite-dump-4.sql.gz
Normal file
BIN
sv/gsbvisite-dump-4.sql.gz
Normal file
Binary file not shown.
BIN
sv/gsbvisite-dump-4.sql.gzcp
Normal file
BIN
sv/gsbvisite-dump-4.sql.gzcp
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user