restoredata.sh

来自「gnugk软交换产品」· Shell 代码 · 共 19 行

SH
19
字号
#!/bin/bash## This script restores data from a previously generated database dump.# The database should be empty (no data, only table definitions) prior# to the restore operation. Use dumpdata.sh script to dump data to a file.## Usage:#   restoredata < dumpecho "Restoring data from the database dump..."DBUSER=gkradiusDBSUPERUSER=postgresDBSERVER=localhostDBEXTRAOPTS=DUMPTYPE="-a --disable-triggers"pg_restore $DUMPTYPE -S $DBSUPERUSER -U $DBUSER -h $DBSERVER $DBEXTRAOPTS -d voipdb

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?