diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-05-05 04:18:53 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-05-05 04:18:53 +0200 |
commit | b1fa7bfd8ab98b710eb638d04b9fcc27491b4c22 (patch) | |
tree | ca0ed8f334661d5fc1bed34d5e636b2640b455cd /mysql | |
parent | e267f97d90784583e2b3fbec6a45732120ea102d (diff) | |
download | backup-b1fa7bfd8ab98b710eb638d04b9fcc27491b4c22.tar.gz backup-b1fa7bfd8ab98b710eb638d04b9fcc27491b4c22.tar.xz backup-b1fa7bfd8ab98b710eb638d04b9fcc27491b4c22.zip |
bugfix: removed output from ncftpput & added finish line to output
Diffstat (limited to 'mysql')
-rwxr-xr-x | mysql/mysql_backup.sh | 5 |
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} |