Projet

Général

Profil

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

root / bin / flush-individual-databases-backups.sh @ 7e5f306e

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