Unable to export database using smuggler

46 Views Asked by At

I am trying to clone a database by providing source db name and target db name(both are created), on the same server(same documentstore url). But it doesn't do anything without throwing any exception. Below is the code:

Console.WriteLine("start");
var exportOperation =  await store
    .Smuggler
    .ForDatabase(name)
    .ExportAsync(
        new DatabaseSmugglerExportOptions(),
        store.Smuggler.ForDatabase(target));
await exportOperation.WaitForCompletionAsync();
Console.WriteLine("ends");

It's a console application, the program is halted while executing ExportAsync function. I am using latest version of ravendb and ravendb.client, and I've .Net 6.

Expected result would be to copy all the content from source db to target db.

0

There are 0 best solutions below