Projet

Général

Profil

Paste
Télécharger (448 octets) Statistiques
| Branche: | Révision:

root / bin / flush-individual-databases-backups.sh @ 1aa883a3

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