使用 nbackup 恢复 Firebird 数据库时出现错误 80
Error 80 while restoring Firebird database using nbackup
我使用了 nbackup
,当我尝试使用命令恢复时:
nbackup -R D:\test.fdb D:\test.nbk
显示错误信息:
Error(80) Creating database file D:\test.fdb via copying from D:\test.nbk
错误消息中的错误代码 80 是 Windows specific error code for ERROR_FILE_EXISTS
。您只能将 nbackup 备份恢复到新的数据库文件,当您尝试覆盖现有数据库时它将失败。
如 NBackup 文档中所写,Making and restoring backups:
If the specified database file already exists, the restore fails and you get an error message.
在 Firebird 2.5 及更早版本中,错误不包括原因,在 Firebird 3 中,它将显示:
Error creating database file: D:\DATA\DB\FB3\FB3TESTDATABASE.FDB via copying from: fb3testdatabase.nbk
-The file exists.
我使用了 nbackup
,当我尝试使用命令恢复时:
nbackup -R D:\test.fdb D:\test.nbk
显示错误信息:
Error(80) Creating database file D:\test.fdb via copying from D:\test.nbk
错误消息中的错误代码 80 是 Windows specific error code for ERROR_FILE_EXISTS
。您只能将 nbackup 备份恢复到新的数据库文件,当您尝试覆盖现有数据库时它将失败。
如 NBackup 文档中所写,Making and restoring backups:
If the specified database file already exists, the restore fails and you get an error message.
在 Firebird 2.5 及更早版本中,错误不包括原因,在 Firebird 3 中,它将显示:
Error creating database file: D:\DATA\DB\FB3\FB3TESTDATABASE.FDB via copying from: fb3testdatabase.nbk -The file exists.