I'm trying to restore a backup of RavenDb.
RavenDb Version: RavenDB-Build-2380
Operating System: Win8
From Documentation. I have tried the following,
Raven.Server.exe -src [backup location] -dest [restore location] -restore
This is working in Offline mode and I got the success message, But I'm unable to view this in Raven Studio.
When I checked the restored folder, having a strange look.
Test - Database I created via Raven studio
Test2 - Database I restored via command
The icons looks different. When I checked the Raven Studio, the Test2 database is not shown.
Update: Forget to mention it.
Also tried de-fragmentation of the data
in my restored database.
esentutl /d Data
This is really driving crazy my mind.
Please share your suggestions.
Thanks in advance.
The documentation is quite clear about this. Excerpt taken from http://ravendb.net/docs/server/administration/backup-restore :
So if you have a database "Test" that you have a backup from, and you want to restore a backup for that database, then you will have to delete (or rename) the data directory of that database ("Test" in this case). RavenDb may not be running (= offline) for the restore.