This commit is contained in:
Zheng Kai
2023-03-29 17:42:41 +08:00
parent 94b04a181a
commit 1b107ed035
36 changed files with 617 additions and 0 deletions

16
misc/db/dump-full.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
DB="orca"
DIR="$(dirname "$(readlink -f "$0")")" && cd "$DIR" || exit 1
/usr/bin/mysqldump \
--default-character-set=binary \
--add-drop-database \
--add-drop-table \
--add-locks \
--hex-blob \
--quick \
--skip-dump-date \
--databases "$DB" \
> "${DB}-full.sql"