root / bin / flush-individual-databases-backups.sh @ eec59787
1 |
#!/bin/sh |
---|---|
2 |
|
3 |
usage() { |
4 |
echo "ARGS: manual or auto, Drupal version." |
5 |
} |
6 |
|
7 |
. /home/assos/bin/print-help-if-required.sh |
8 |
|
9 |
. /home/assos/bin/scripts-config.sh |
10 |
|
11 |
cd "${dir_individual_backup}/$1/$2" |
12 |
|
13 |
for dir in $(ls) ; do |
14 |
cd "${dir}" |
15 |
if [ "$1" = 'auto' ] ; then |
16 |
flush-files.sh -n "${db_individual_auto_backup_number}" -m "${email_multi_assos}" |
17 |
else |
18 |
flush-files.sh -n "${db_individual_manual_backup_number}" |
19 |
fi |
20 |
cd - |
21 |
done |