Fichier Bash AP22
This commit is contained in:
parent
86bc93a8e4
commit
d76c9b8afa
2
Sio1/AP22/restorebase
Executable file
2
Sio1/AP22/restorebase
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
zcat latest.sql.gz|ssh root@ap22 "mysql -u gsbadm -pgsbadm gsbvisite"
|
5
Sio1/AP22/svbase
Executable file
5
Sio1/AP22/svbase
Executable 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
|
Loading…
x
Reference in New Issue
Block a user