mirror of
https://github.com/zhengkai/orca.git
synced 2026-02-17 02:02:26 +08:00
up
This commit is contained in:
16
misc/db/dump-full.sh
Executable file
16
misc/db/dump-full.sh
Executable 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"
|
||||
Reference in New Issue
Block a user