Project

General

Profile

Paste
Download (549 Bytes) Statistics
| Branch: | Revision:

root / bin / d7-all-dump-individual.sh @ 06e9d071

1 d52a5b2f jenselme
#!/bin/sh
2
3 06e9d071 Assos Assos
. /home/assos/bin/scripts-config.sh
4 d52a5b2f jenselme
. 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 e3fe00c6 Julien Enselme
        drush sql-dump | gzip > $d7_dir_individual_auto_backup/$dir/$current_date.$dir.sql.gz
19 d52a5b2f jenselme
    else
20 e3fe00c6 Julien Enselme
        drush sql-dump | gzip  > $d7_dir_individual_manual_backup/$dir/$current_date.$dir.sql.gz
21 d52a5b2f jenselme
    fi
22
    cd -
23
done