Don't allocate pseudo-tty
-T allows execution of the backup script by cron or similar tools.
Dieser Commit ist enthalten in:
Ursprung
43e7d27469
Commit
e96c54cbba
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -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
|
||||
|
|
Laden …
In neuem Issue referenzieren