Skip to content

Commit 8820413

Browse files
committed
* fichiers de synchro (Cf. bascule Neptune2)
1 parent a24e987 commit 8820413

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

hosting/sync/[email protected]

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
cp /etc/mysql/my.cnf.binlog /etc/mysql/my.cnf
4+
/etc/init.d/mysql restart
5+
/etc/init.d/apache2 restart

hosting/sync/[email protected]

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
cd
4+
VLMRACINE=/home/vlm
5+
echo "Passage en maintenance de N2"
6+
~/scripts/maintenance.sh "Bienvenue sur Neptune2, nous rouvrons le service VLM bientôt" > sync1.log
7+
echo "Passage en maintenance de N1"
8+
ssh [email protected] "export VLMRACINE=/home/vlm && /home/vlm/scripts/maintenance.sh \"Ici Neptune1 : VLM vous retrouve bientot sur Neptune2.. Adieu !\"" >>sync1.log
9+
echo "Export datas sur N1"
10+
ssh [email protected] "export VLMRACINE=/home/vlm && /home/vlm/vlmcode/base/scripts/dump-alive.sh /home/vlm/tmp/vlmdump-alive.sql" >>sync1.log
11+
ssh [email protected] "export VLMRACINE=/home/vlm && /home/vlm/vlmcode/base/scripts/dump-history.sh /home/vlm/tmp/vlmdump-history.sql" >>sync1.log
12+
echo "Transport datas de N1 vers N2"
13+
scp [email protected]:/home/vlm/tmp/vlmdump-alive.sql.gz ~/tmp/ >>sync1.log
14+
scp [email protected]:/home/vlm/tmp/vlmdump-history.sql.gz ~/tmp/ >>sync1.log
15+
echo "Import datas sur N2"
16+
~/vlmcode/base/scripts/importdump.sh ~/tmp/vlmdump-alive.sql.gz >>sync1.log
17+
~/vlmcode/base/scripts/importdump.sh ~/tmp/vlmdump-history.sql.gz >>sync1.log
18+
echo "Import OK sur N2, sortie maintenance"
19+
~/scripts/maj_module.sh site >>sync1.log
20+
~/scripts/maj_module.sh lib/phpcommon >>sync1.log
21+
~/scripts/maj_module.sh moteur >>sync1.log
22+
echo "Done, Welcome Neptune2"

0 commit comments

Comments
 (0)