summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-05-05 04:18:53 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2009-05-05 04:18:53 +0200
commitb1fa7bfd8ab98b710eb638d04b9fcc27491b4c22 (patch)
treeca0ed8f334661d5fc1bed34d5e636b2640b455cd
parente267f97d90784583e2b3fbec6a45732120ea102d (diff)
downloadbackup-b1fa7bfd8ab98b710eb638d04b9fcc27491b4c22.tar.gz
backup-b1fa7bfd8ab98b710eb638d04b9fcc27491b4c22.tar.xz
backup-b1fa7bfd8ab98b710eb638d04b9fcc27491b4c22.zip
bugfix: removed output from ncftpput & added finish line to output
-rwxr-xr-xmysql/mysql_backup.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql/mysql_backup.sh b/mysql/mysql_backup.sh
index 108791d..8a22ee5 100755
--- a/mysql/mysql_backup.sh
+++ b/mysql/mysql_backup.sh
@@ -76,10 +76,13 @@ du -sch * | log
# move backups to ftp server
for file in *
do
- ncftpput -u${FTP_USER} -p${FTP_PASSWORD} -DD ${FTP_SERVER} \
+ ncftpput -u${FTP_USER} -p${FTP_PASSWORD} -V -DD ${FTP_SERVER} \
${FTP_TARGET} ${file} >/dev/null
done
+echo | log
+echo "Finished backup of mysql databases ($(date +%c))" | log
+
# restore old cwd
popd >/dev/null 2>&1
rmdir ${TMP_DIR}