Project

General

Profile

Revision c45ffcc0

Added by Julien Enselme almost 9 years ago

Scripts uses drush aliases, no need to go into the site's dir to launch commands

View differences:

bin/d7-all-dump-individual.sh
28 28

  
29 29
current_date=$(date "+%Y-%m-%d-%Hh%Mm%Ss")
30 30

  
31
cd "${d7_dir_sites}"
32

  
33 31
for site in $(sites_list); do
34 32
    drush @"${site}" cc all
35 33

  
......
40 38
    else
41 39
        drush @"${site}" sql-dump --result-file="${d7_dir_individual_manual_backup}/${dir}/${current_date}.${dir}.sql" --gzip
42 40
    fi
43
    cd -
44 41
done

Also available in: Unified diff