How to Use embeddableDocumentStore.DocumentDatabase.StartBackup(...) Third Parameter

StackOverflow https://stackoverflow.com/questions/18681360

  •  28-06-2022
  •  | 
  •  

質問

In RavenDB v2.5 a third parameter has been added to the StartBackup method. How do you create/supply this third parameter? Everything I found on the web only references two parameters.

embeddableDocumentStore.DocumentDatabase.StartBackup(string, bool, **DatabaseDocument**)
役に立ちましたか?

解決

The best reference is to looking on the RavenDB tests themselves:

https://github.com/ayende/ravendb/blob/2.5/Raven.Tests/Storage/BackupRestore.cs#L69

db.StartBackup(BackupDir, false, new DatabaseDocument());
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top