We recommend using the Smuggler tool to manage exporting from or importing to a RavenHQ database. For documentation of the complete set of Smuggler options, please view the RavenDB Smuggler documentation.
Exporting
Raven.Smuggler out https://lark.ravenhq.com export.ravendump
--database=MyTestDatabase
--api-key=627707FA-59AF-44A4-BF25-0BCB2A4E75F3
--negative-metadata-filter:@id=Raven/Replication/Destinations
--negative-metadata-filter:@id=Raven/Backup/Periodic/Setup
--negative-metadata-filter:@id=Raven/Backup/Periodic/Status
--negative-metadata-filter:@id=Raven/Replication/VersionHilo
This will export all indexes, documents, and attachments in MyTestDatabase to a file named export.ravendump.
NOTE: This process specifically excludes a number of documents that should not be included when exporting from a RavenHQ database. It is important to exclude those documents, as it will cause issues if they are present during the import process.
Importing
Raven.Smuggler in https://lark.ravenhq.com export.ravendump
--database=MyTestDatabase
--api-key=627707FA-59AF-44A4-BF25-0BCB2A4E75F3
5 Comments