User Tools

Site Tools


mysql_backup_simple

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
mysql_backup_simple [2014/09/01 20:40]
kyxap created
mysql_backup_simple [2014/09/02 00:09]
kyxap
Line 22: Line 22:
 #########################​ #########################​
  
-print_error() +print_error() { echo "​$@"​write_log "​[ERROR] $@"exit 1
-{ +print_info() ​ { echo "​$@"​write_log "​[INFO] $@"
-  ​echo "​$@"​ +write_log() ​  ​{ echo "`date -R -u` $@" >> $LOG}
-  ​write_log "​[ERROR] $@" +
-  ​exit 1 +
-} +
- +
-print_info() +
-{ +
-  ​echo "​$@"​ +
-  ​write_log "​[INFO] $@" +
-} +
- +
-write_log() +
-{ +
-  ​echo "`date -R -u` $@" >> $LOG +
-}+
  
 ##########################​ ##########################​
mysql_backup_simple.txt · Last modified: 2015/04/04 10:39 by kyxap