Changeset 198 for bin


Ignore:
Timestamp:
Apr 27, 2009, 9:37:08 AM (16 years ago)
Author:
george
Message:
  • Upraveno: Konfigurace pro skripty prostředí oddělena do skriptu s konfigurací.
Location:
bin
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • bin

    • Property svn:ignore set to
      config.sh
  • bin/backup_db.sh

    r115 r198  
    11#!/bin/sh
    22
    3 DB_USER=centrala
    4 DB_PASSWORD=peknejhnus
     3. config.sh
    54
    65echo Zaloha database...
     
    1110echo IS
    1211
    13 mysqldump --user=${DB_USER} --password=${DB_PASSWORD} --opt is > is.sql
     12mysqldump --user=${DB_USER} --password=${DB_PASSWORD} centrala > is.sql
    1413
    15 tar -c -z is.sql > /a/backup/database/is_$(date +"%Y-%m-%d").tar.gz
     14tar -c -z is.sql > ${DB_BACKUP_DIR}centrala/is_$(date +"%Y-%m-%d").tar.gz
    1615
    1716unlink is.sql
     
    2120mysqldump --user=${DB_USER} --password=${DB_PASSWORD} --opt share > share.sql
    2221
    23 tar -c -z share.sql > /a/backup/database/share_$(date +"%Y-%m-%d").tar.gz
     22tar -c -z share.sql > ${DB_BACKUP_DIR}share/share_$(date +"%Y-%m-%d").tar.gz
    2423
    2524unlink share.sql
Note: See TracChangeset for help on using the changeset viewer.