MariaDB
MariaDB
容器备份
逻辑备份
备份
$ docker exec some-%%REPO%% mariadb-dump --all-databases -uroot -p"$MARIADB_ROOT_PASSWORD"'
> /some/path/on/your/host/all-databases.sql
docker exec shlink-database-doc.truenas-scale.tech mariadb-dump --all-databases -uroot -p"5hM#Fz2*r7X9@Wc1$Lp3D!6N"
还原
$ docker exec -i some-%%REPO%% sh -c 'exec mariadb -uroot -p"$MARIADB_ROOT_PASSWORD"'
< /some/path/on/your/host/all-databases.sql