Removed double timestamps in log
This commit is contained in:
parent
31c12ecde2
commit
8efd42599a
@ -2,12 +2,9 @@
|
|||||||
|
|
||||||
BACKUP_DIR="/backup/database"
|
BACKUP_DIR="/backup/database"
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Starting to backup database"
|
echo "Starting to backup database"
|
||||||
date
|
|
||||||
mkdir --parents $BACKUP_DIR
|
mkdir --parents $BACKUP_DIR
|
||||||
mysqldump --single-transaction --host=$MYSQL_BACKUP_HOST --user=$MYSQL_BACKUP_USER --password=$MYSQL_BACKUP_PASSWORD $MYSQL_BACKUP_DATABASE > $BACKUP_DIR/$MYSQL_BACKUP_DATABASE.sqldump
|
mysqldump --single-transaction --host=$MYSQL_BACKUP_HOST --user=$MYSQL_BACKUP_USER --password=$MYSQL_BACKUP_PASSWORD $MYSQL_BACKUP_DATABASE > $BACKUP_DIR/$MYSQL_BACKUP_DATABASE.sqldump
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Database backup finished"
|
echo "Database backup finished"
|
||||||
date
|
|
||||||
|
Reference in New Issue
Block a user