From e96c54cbba777de9656f784e1c05a1f864852b7c Mon Sep 17 00:00:00 2001 From: Levin Date: Tue, 13 Jun 2017 15:24:37 +0200 Subject: [PATCH] Don't allocate pseudo-tty -T allows execution of the backup script by cron or similar tools. --- docs/u_e-backup_restore-mysql.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/u_e-backup_restore-mysql.md b/docs/u_e-backup_restore-mysql.md index 817d7b3b5..781828f91 100644 --- a/docs/u_e-backup_restore-mysql.md +++ b/docs/u_e-backup_restore-mysql.md @@ -4,7 +4,7 @@ cd /path/to/mailcow-dockerized source mailcow.conf DATE=$(date +"%Y%m%d_%H%M%S") -docker-compose exec mysql-mailcow mysqldump --default-character-set=utf8mb4 -u${DBUSER} -p${DBPASS} ${DBNAME} > backup_${DBNAME}_${DATE}.sql +docker-compose exec -T mysql-mailcow mysqldump --default-character-set=utf8mb4 -u${DBUSER} -p${DBPASS} ${DBNAME} > backup_${DBNAME}_${DATE}.sql ``` ## Restore