Révision 8550e097
Ajouté par Julien Enselme il y a plus de 9 ans
other-scripts/d7-sync.sh | ||
---|---|---|
60 | 60 |
|
61 | 61 |
|
62 | 62 |
### sync databases |
63 |
now="$(date +%s)"
|
|
63 |
now=$(date +%s)
|
|
64 | 64 |
sql_file="$1.${now}.sql" |
65 | 65 |
remote_sql_file="${REMOTE_DIR_TMP_SAS}/${sql_file}" |
66 | 66 |
ssh "${WEBASSOS_ID}" "drush @$1 sql-dump > ${remote_sql_file}" |
Formats disponibles : Unified diff
Command subsitution are not quoted. Quotes posed problems in loop.