Update b_n_r-backup_restore-mysql.de.md
Dieser Commit ist enthalten in:
Ursprung
c2bcc40c48
Commit
b931593386
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
|
@ -2,7 +2,7 @@
|
|||
|
||||
```
|
||||
cd /pfad/zu/mailcow-dockerized
|
||||
Quelle mailcow.conf
|
||||
source mailcow.conf
|
||||
DATE=$(Datum +"%Y%m%d_%H%M%S")
|
||||
docker-compose exec -T mysql-mailcow mysqldump --default-character-set=utf8mb4 -u${DBUSER} -p${DBPASS} ${DBNAME} > backup_${DBNAME}_${DATE}.sql
|
||||
```
|
||||
|
@ -14,6 +14,6 @@ docker-compose exec -T mysql-mailcow mysqldump --default-character-set=utf8mb4 -
|
|||
|
||||
```
|
||||
cd /pfad/zu/mailcow-dockerized
|
||||
Quelle mailcow.conf
|
||||
source mailcow.conf
|
||||
docker exec -i $(docker-compose ps -q mysql-mailcow) mysql -u${DBUSER} -p${DBPASS} ${DBNAME} < backup_file.sql
|
||||
```
|
||||
```
|
||||
|
|
Laden …
In neuem Issue referenzieren