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