restore_file
插件命令用于从远程存储系统移动备份文件。
概要
plugin_executable restore_file plugin_config_file file_to_restore
描述
gprestore
在master服务器和每个segment主机上调用restore_file插件命令,以获取gprestore
将从本地磁盘上的备份目录中读取的文件。
restore_file
命令应处理文件并将文件从远程存储系统移动到本地主机上的file_to_restore
。
参数
plugin_config_file 插件配置YAML文件的绝对路径。 file_to_restore 从远程存储系统移动备份文件的绝对路径。
返回值
restore_file
命令必须在成功时以值0退出,如果发生错误则必须为非零。
在非零退出代码的情况下,gprestore
向用户显示stderr
的内容。