Dzianis Yafimau
Dzianis Yafimau

Reputation: 2016

How to migrate NServiceBus Sagas from one Raven database to another?

I need to copy several types of Sagas from one database to another. They are on the different servers. I'm going to export this with a Smuggler something like this:

raven.smuggler out http://localhost:8080/ dump.raven --database=Host1 --metadata-filter=Raven-Entity-Name=TestSaga

And then import this dump to new database.

The question is: Will it be safe or I need to care about additional things like indexes or something?

Upvotes: 0

Views: 104

Answers (2)

Embri
Embri

Reputation: 622

That command export the collection "TestSaga" and also indexes and transformers (but all of them that are in your db). If you want only documents include --operate-on-types=Documents . I suggest you to read the documentantion in particoular the section "Command line options" and the option --operate-on-types that could be right for you.

Finally i think that you need to change dump.raven to dump.ravendump

Upvotes: 1

Ayende Rahien
Ayende Rahien

Reputation: 22956

If you are going to point an NServiceBus server to that, probably you do need to create indexes as well

Upvotes: 1

Related Questions