Logical backup
cd D:\soft\Kingbase\ES\V8\Server\bin
sys_dump -h 127.0.0.1 -p 54321 -U SYSTEM -W SYSTEM -f G:\2020\bak\dumpfile.dmp DEMO
After the above command is executed, the DEMO database will be backed up toG:\2020\bak\dumpfile.dmp
- Parameter description:
-U: database user account
-W: database user password
-f: storage path of the backup file
DEMO: the name of the database to be backed up
Logical restore
cd D:\soft\Kingbase\ES\V8\Server\bin
ksql -USYSTEM -WSYSTEM -dDEMO2 -p54321 -f G:\2020\bak\dumpfile.dmp
After the above command is executed, the database backup file will be G:\2020\bak\dumpfile.dmp
restored to the DEMO2 database
- Parameter description:
-U: database user account
-W: database user password
-d : database to be restored (database needs to be built in advance)
-f: storage path of restored files
The actual measurement steps are as follows: