1

I followed URL to do database backup and restore process of RavenDB 2.5 but it has throwing error in every computer while restoring database only. I can successfully backup my database but not able to restore.

URL: Backup and Restore RavenDB 2.5

Error:

C:\Program Files (x86)\RavenDB>Raven.Server.exe -src C:\Users\AppUser1\Desktop\Backup -dest C:\Program Files (x86)\RavenDB\Databases\Test171015 -restore

Error: Database already exists, cannot restore to an existing database.
Error: Restore Canceled
System.IO.IOException: Database already exists, cannot restore to an existing database.

at Raven.Storage.Esent.Backup.RestoreOperation.Execute()
at Raven.Database.DocumentDatabase.Restore(RavenConfiguration configuration, String backupLocation, String databaseLocation, Action`1 output, Boolean defrag)
at Raven.Server.Program.RunRestoreOperation(String backupLocation, String databaseLocation, Boolean defrag)

I removed database from the panel, removed data from the folder, removed database folder from "Databases" folder but does not able to identify what's going wrong and what I'm missing?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Keval Gangani
  • 1,326
  • 2
  • 14
  • 28
  • To restore backups with Esent, you'll need to make sure that the user is the _owner_ of the backup files – Ayende Rahien Oct 15 '17 at 09:13
  • @AyendeRahien I'm using Windows's command prompt for backup and restore databases. Can you please clear me for `owner`? Is it RavenDB Database Owner OR Windows' User? Is there any RavenDB syntax to take backup using `owner`? – Keval Gangani Oct 15 '17 at 13:20
  • This is the windows owner in the file permissions – Ayende Rahien Oct 17 '17 at 07:58

0 Answers0