diff --git a/sauvegarde_script.sh b/sauvegarde_script.sh new file mode 100755 index 0000000..c469eb2 --- /dev/null +++ b/sauvegarde_script.sh @@ -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 + diff --git a/sv/dump.latest.tgz b/sv/dump.latest.tgz new file mode 100644 index 0000000..55ecdcb Binary files /dev/null and b/sv/dump.latest.tgz differ diff --git a/sv/gsbvisite-dump-4.sql.gz b/sv/gsbvisite-dump-4.sql.gz new file mode 100644 index 0000000..55ecdcb Binary files /dev/null and b/sv/gsbvisite-dump-4.sql.gz differ diff --git a/sv/gsbvisite-dump-4.sql.gzcp b/sv/gsbvisite-dump-4.sql.gzcp new file mode 100644 index 0000000..4cb0506 Binary files /dev/null and b/sv/gsbvisite-dump-4.sql.gzcp differ