Projet

Général

Profil

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

root / bin / d7-all-dump-individual.sh @ 4127f213

1 d52a5b2f jenselme
#!/bin/sh
2
3
. /users/guest/assos/bin/scripts-config.sh
4
. scripts-utils.sh
5
6
help="# ARGS: auto or manual"
7
8
check_arguments $# 1 "$help"
9
10
current_date=`date "+%Y-%m-%d-%Hh%Mm%Ss"`
11
12
cd $d7_dir_sites
13
14
for dir in `find . -maxdepth 1 -mindepth 1 -type d ! -name all | cut -c3-` ; do
15
    cd $dir
16
    drush cc all
17
    if [ $1 = 'auto' ] ; then
18 4127f213 Julien Enselme
        drush sql-dump | gzip > $d7_dir_individual_auto_backup/$dir/$current_date.$dir.sql
19 d52a5b2f jenselme
    else
20 4127f213 Julien Enselme
        drush sql-dump | gzip  > $d7_dir_individual_manual_backup/$dir/$current_date.$dir.sql
21 d52a5b2f jenselme
    fi
22
    cd -
23
done