示例一:执行gs_dump,导出hr模式全量信息,导出文件格式为文本格式。
gs_dump -f /home/gbase/backup/MPPDB_schema_backup.sql -p 5600 human_resource -n hr -F p
Password:
gs_dump[port='5600'][human_resource][2017-07-21 16:05:55]: dump database human_resource successfully
gs_dump[port='5600'][human_resource][2017-07-21 16:05:55]: total time: 2425 ms示例二:执行gs_dump,仅导出hr模式的数据,导出文件格式为tar归档格式。
gs_dump -f /home/gbase/backup/MPPDB_schema_data_backup.tar -p 5600 human_resource -n hr -a -F t
Password:
gs_dump[port='5600'][human_resource][2018-11-14 15:07:16]: dump database human_resource successfully
gs_dump[port='5600'][human_resource][2018-11-14 15:07:16]: total time: 1865 ms示例三:执行gs_dump,仅导出hr模式的定义,导出文件格式为目录归档格式。
gs_dump -f /home/gbase/backup/MPPDB_schema_def_backup -p 5600 human_resource -n hr -s -F d
Password:
gs_dump[port='5600'][human_resource][2018-11-14 15:11:34]: dump database human_resource successfully
gs_dump[port='5600'][human_resource][2018-11-14 15:11:34]: total time: 1652 ms示例四:执行gs_dump,导出human_resource数据库时,排除hr模式,导出文件格式为自定义归档格式。
gs_dump -f /home/gbase/backup/MPPDB_schema_backup.dmp -p 5600 human_resource -N hr -F c
Password:
gs_dump[port='5600'][human_resource][2017-07-21 16:06:31]: dump database human_resource successfully
gs_dump[port='5600'][human_resource][2017-07-21 16:06:31]: total time: 2522 ms版权声明:本文为qq_41614765原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。