"安全,恢复到时间"不存在于将数据库恢复到安全时间戳所需的主机状态?

时间:2018-02-12 12:35:27

标签: marklogic

我需要将数据库恢复到安全时间戳。为此我在下面执行命令从主机状态检索safe-restore-timestamp值 -

let $hostStatus := xdmp:host-status(xdmp:hosts())
return $hostStatus/*:safe-restore-to-time

我无法在XML配置文件中的任何位置看到元素safe-restore-to-time 有人可以解释如何将数据库恢复到启用了日记归档的安全时间戳吗?

1 个答案:

答案 0 :(得分:2)

如果有人偶然发现这件事,请回答这个问题。

let $safeTime :=  xdmp:host-status(xdmp:host("host_name"))/host:restore-jobs/host:restore-job/host:safe-restore-to-time
return $safeTime  

手动链接是 -
Restoring DB to the Safe Timestamp