📄 restoredata.sh
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -