我使用的是RavenDB 2.750的最新版本。
在使用以下cmd:
启动操作之前,我已关闭服务器。\ Raven.Server.exe -src“C:\ From”-dest“C:\ Target”-restore
但是,我没有看到任何新数据库添加到仪表板中的数据库列表中。我已经将备份/恢复操作缩减到最简单的数据库,我可以让它工作的唯一方法是,如果我要创建一个新的数据库,编辑设置以将该数据库重命名到已恢复的数据库目录。
虽然这可能适用于测试数据库,但这不适用于具有多个捆绑包括加密的生产数据 - 缺少复制并将设置从生产粘贴到较低的环境,这将是一个可怕的黑客攻击。
=============================================== ===
使用raven 2750的全新副本时,“任务”选项卡实际上有一个“还原数据库”菜单,但出现错误时该项目已消失。 即使删除了有问题的数据库并清除了错误,该项目仍然不错!!!
Raven Studio中的错误
服务器错误:
-----------------------------------------无法打开名为的数据库: ProductionServiceBus
在Raven.Studio.Infrastructure.InvocationExtensions.Catch(任务 parent,Func
2 func) at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Action
1动作)at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent)
在Raven.Studio.Infrastructure.Model.TimerTicked()处 Raven.Studio.Infrastructure.PageView.b__7(型号 模型)在Raven.Studio.Infrastructure.PageView.InvokeOnModel(对象 ctx,Action`1动作)at Raven.Studio.Infrastructure.PageView.InvokeTimerTicked(Object ctx)
在Raven.Studio.Infrastructure.PageView.DispatcherTimerOnTick(对象 sender,EventArgs eventArgs)at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, 委托handlerDelegate,Object sender,Object args)at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj,IntPtr unmanagedObjArgs,Int32 argsTypeIndex,Int32 actualArgsTypeIndex, String eventName,UInt32 flags)客户端异常:System.Net.WebException:远程服务器 返回错误:NotFound。在 System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult的 asyncResult)在System.Func
2.Invoke(T arg) at System.Threading.Tasks.TaskFactory
1.FromAsyncCoreLogic(IAsyncResult) iar,Func2 endFunction, Action
1 endAction,Task`1 promise)"restoreStatus": [ "Copying D:\\RavenBackup\\ProductionPVServiceBus2\\IndexDefinitions\\Raven%2fDocumentsByEntityName.index", "Copying D:\\RavenBackup\\ProductionPVServiceBus2\\IndexDefinitions\\RavenTimeoutPersistence%2fTimeoutData%2fBySagaId.index", "Copying D:\\RavenBackup\\ProductionPVServiceBus2\\IndexDefinitions\\RavenTimeoutPersistence%2fTimeoutDataSortedByTime.index", "Copying Index: Raven%2fDocumentsByEntityName", "Error: File \"_51_1.del\" is missing from index Raven%2fDocumentsByEntityName", "Error: File \"_51.cfs\" is missing from index Raven%2fDocumentsByEntityName", "Error: File \"_50_c.del\" is missing from index Raven%2fDocumentsByEntityName", "Error: File \"_50.fdt\" is missing from index Raven%2fDocumentsByEntityName", "Error: File \"_50.fdx\" is missing from index Raven%2fDocumentsByEntityName", "Error: File \"_50.tii\" is missing from index Raven%2fDocumentsByEntityName", "Error: File \"_50.tis\" is missing from index Raven%2fDocumentsByEntityName", "Error: File \"_50.prx\" is missing from index Raven%2fDocumentsByEntityName", "Error: File \"_50.frq\" is missing from index Raven%2fDocumentsByEntityName", "Error: File \"_50.fnm\" is missing from index Raven%2fDocumentsByEntityName", "Error: File \"segments_7q\" is missing from index Raven%2fDocumentsByEntityName", "Copying Index: RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2n_1.del\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2n.cfs\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2m_1.del\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2m.cfs\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2l_1.del\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2l.cfs\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2k_1.del\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2k.cfs\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2j_1.del\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2j.cfs\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2i_3.del\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2i.fdt\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2i.fdx\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2i.tii\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2i.tis\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2i.prx\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2i.frq\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"_2i.fnm\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Error: File \"segments_54\" is missing from index RavenTimeoutPersistence%2fTimeoutData%2fBySagaId", "Copying Index: RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2n_1.del\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2n.cfs\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2m_1.del\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2m.cfs\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2l_1.del\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2l.cfs\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2k_1.del\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2k.cfs\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2j_1.del\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2j.cfs\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2i_3.del\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2i.fdt\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2i.fdx\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2i.tii\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2i.tis\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2i.prx\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2i.frq\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"_2i.fnm\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Error: File \"segments_54\" is missing from index RavenTimeoutPersistence%2fTimeoutDataSortedByTime", "Esent Restore: Restore Begin ", "Esent Restore: Restore RecoveryStep ", "Esent Restore: Restore RecoveryStep ", "Esent Restore: Restore Progress JET_SNPROG(25/100)", "Esent Restore: Restore Progress JET_SNPROG(26/100)", "Esent Restore: Restore RecoveryStep ", "Esent Restore: Restore Progress JET_SNPROG(50/100)", "Esent Restore: Restore RecoveryStep ", "Esent Restore: Restore Progress JET_SNPROG(75/100)", "Esent Restore: Restore RecoveryStep ", "Esent Restore: Restore RecoveryStep ", "Esent Restore: Restore RecoveryStep ", "Esent Restore: Restore Complete ", "The new database was created" ]
=============================================== =
我们可能已将其缩小到加密密钥的问题
答案 0 :(得分:1)
存在多个问题
1)为了从工作室恢复数据库,您必须首先进入“system”db。然后会出现恢复选项。
2)2.5.2750之前的RavenDB存储加密密钥的方式存在问题。即。他们仍然加密。并且由于密钥与在线数据库的帐户绑定,甚至可能是机器 - 谁知道,这些备份不能恢复到除生成备份文件的计算机之外的任何其他计算机!这完全违背了备份的目的。
答案 1 :(得分:0)
您所做的是离线恢复,如果您想进行在线恢复(将其添加到活动数据库中),您可以从工作室进行此操作。