Révision c45ffcc0
Ajouté par Julien Enselme il y a environ 9 ans
bin/d7-all-dump-individual.sh | ||
---|---|---|
28 | 28 |
|
29 | 29 |
current_date=$(date "+%Y-%m-%d-%Hh%Mm%Ss") |
30 | 30 |
|
31 |
cd "${d7_dir_sites}" |
|
32 |
|
|
33 | 31 |
for site in $(sites_list); do |
34 | 32 |
drush @"${site}" cc all |
35 | 33 |
|
... | ... | |
40 | 38 |
else |
41 | 39 |
drush @"${site}" sql-dump --result-file="${d7_dir_individual_manual_backup}/${dir}/${current_date}.${dir}.sql" --gzip |
42 | 40 |
fi |
43 |
cd - |
|
44 | 41 |
done |
bin/d7-all-usage.sh | ||
---|---|---|
4 | 4 |
|
5 | 5 |
# For each modules and themes, list and count how much sites use its. |
6 | 6 |
|
7 |
cd "${d7_dir_sites}" |
|
8 |
|
|
9 | 7 |
for line in $(drush pml --no-core --pipe); do |
10 | 8 |
usage.sh -v d7 -s enabled -n "${line}" |
11 | 9 |
echo -e "\n" |
bin/usage.sh | ||
---|---|---|
58 | 58 |
echo "${site}"; |
59 | 59 |
number_found=$((${number_found} + 1)) |
60 | 60 |
fi |
61 |
cd - |
|
62 | 61 |
done |
63 | 62 |
|
64 | 63 |
echo "Number of sites found for project ${project_name} and status ${project_status} : $number_found"; |
Formats disponibles : Unified diff
Scripts uses drush aliases, no need to go into the site's dir to launch commands