Changeset 200 for bin/backup_db.sh


Ignore:
Timestamp:
Apr 27, 2009, 9:46:37 AM (16 years ago)
Author:
george
Message:
  • Upraveno: Cesty k přesunutým souborům webu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/backup_db.sh

    r199 r200  
    88cd /tmp/backup
    99
     10DB_NAME=forum
     11echo ${DB_NAME}
     12mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql
     13tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz
     14unlink ${DB_NAME}.sql
     15
    1016DB_NAME=is
    1117echo ${DB_NAME}
    1218mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql
    13 tar -c -z is.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz
     19tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz
    1420unlink ${DB_NAME}.sql
    1521
     
    1723echo ${DB_NAME}
    1824mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql
    19 tar -c -z is.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz
     25tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz
    2026unlink ${DB_NAME}.sql
    2127
Note: See TracChangeset for help on using the changeset viewer.