diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-05-05 04:08:43 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-05-05 04:08:43 +0200 |
commit | e267f97d90784583e2b3fbec6a45732120ea102d (patch) | |
tree | cedf532734a242d807da6d2da25c5fe80e507079 | |
parent | 3483fe8f67349ec110a154a4063cbc6ddc6cf9bb (diff) | |
download | backup-e267f97d90784583e2b3fbec6a45732120ea102d.tar.gz backup-e267f97d90784583e2b3fbec6a45732120ea102d.tar.xz backup-e267f97d90784583e2b3fbec6a45732120ea102d.zip |
simplifying log function
-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 } |