diff options
-rwxr-xr-x | mysql/mysql_backup.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mysql/mysql_backup.sh b/mysql/mysql_backup.sh index d988f45..108791d 100755 --- a/mysql/mysql_backup.sh +++ b/mysql/mysql_backup.sh @@ -24,7 +24,7 @@ FTP_TARGET="mysql" TMP_DIRECTORY="/tmp" # backup name -BACKUP_PREFIX="$(hostname -f)_${MYSQL_SERVER}_$(date +%F)_" +BACKUP_PREFIX="$(hostname -f)_${MYSQL_SERVER}_$(date +%F)" # logging LOGGING="0" @@ -36,10 +36,7 @@ log() { if [ -n "$1" ]; then echo "$@" else - while line line - do - echo -n $line - done + cat fi fi } |