-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
executable file
·107 lines (77 loc) · 1.7 KB
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#! /bin/bash
# Prep work
TODAY=`date "+%Y%m%d"`-`date +%H%M%S`
echo "FYI Today is $TODAY"
echo
echo "Saving a db snapshot called site-db-d6.sql."
drush sql-dump --skip-tables-key=common > site-db-d6.sql
echo
echo "Change into sites/default directory."
cd ../../default
echo
echo
echo "* * * * Beginning Part 1. * * * *"
echo
echo "Running part1.sh"
echo
../all/migrate_scripts/part1.sh
echo
echo "Saving a db snapshot called site-db-part1.sql."
drush sql-dump --skip-tables-key=common > site-db-part1.sql
echo
echo
echo "* * * * Beginning Part 2. * * * *"
echo
echo "Running part2.sh"
echo
../all/migrate_scripts/part2.sh
echo
echo "Saving a db snapshot called site-db-part2.sql."
drush sql-dump --skip-tables-key=common > site-db-part2.sql
echo
echo
echo "* * * * Beginning Part 3. * * * *"
echo
echo "Running part3.sh"
echo
../all/migrate_scripts/part3.sh
echo
echo "Saving a db snapshot called site-db-part3.sql."
echo
drush sql-dump --skip-tables-key=common > site-db-part3.sql
echo
echo
echo "* * * * Beginning Part 4. * * * *"
echo
echo "Running part4.sh"
echo
../all/migrate_scripts/part4.sh
echo
echo "Part 4 does NOT get a database backup."
echo
echo
echo "* * * * Beginning Part 5. * * * *"
echo
echo "Running part5.sh"
echo
../all/migrate_scripts/part5.sh
echo
echo "Saving a db snapshot called site-db-part5.sql."
echo
drush sql-dump --skip-tables-key=common > site-db-part5.sql
echo
echo
echo "* * * * Beginning Part 6. * * * *"
echo
echo "Running part6.sh"
echo
../all/migrate_scripts/part6.sh
echo
echo "Saving a db snapshot called site-db-part6.sql."
echo
drush sql-dump --skip-tables-key=common > site-db-part6.sql
echo
echo
echo "* * * * We are all done! * * * *"
echo
echo "[ALL DONE!]"