Projet

Général

Profil

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

root / bin / flush-individual-databases-backups.sh @ d05743f7

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
cd $dir_individual_backup/$1/$2
8
9 683f57f9 Julien Enselme
for dir in $(ls) ; do
10 d52a5b2f jenselme
    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