New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GBak does not check correctly parameters and backups random database with -B ":" [CORE3875] #4212
Comments
Modified by: @AlexPeshkoffassignee: Alexander Peshkov [ alexpeshkoff ] |
Commented by: @AlexPeshkoff I do not see how this can affect windows builds, but that probably requires more checks |
Modified by: @AlexPeshkoffFix Version: 3.0 Alpha 1 [ 10331 ] Fix Version: 2.5.3 [ 10461 ] Fix Version: 2.1.6 [ 10460 ] |
Commented by: @AlexPeshkoff Semi, please try (after 2 or days) with snapshot build of 2.1 or 2.5 to make sure did I fix your problem completely. |
Commented by: @sim1984 Fix Version/s: 3.0 Alpha 1, 2.5.3, 2.1.6 |
Commented by: Sean Leyne (seanleyne) v2.5.2 has already reach the RC stage, no new bug fixes should be added now. |
Commented by: @dyemanov Sean, 2.5.2 is not at RC yet, although very close. And technically speaking, Alex has committed the patch into v2.5.2, as this version does not have a tag fork yet. So it will be available in v2.5.2. |
Commented by: Sean Leyne (seanleyne) Obviously, I stand corrected. |
Commented by: @dyemanov Alex, shouldn't we resolve this ticket? |
Commented by: @AlexPeshkoff I was waiting for people to check it on windows. If it's OK - resolve it please. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: Semi (semi)
Given command:
"C:\Program Files\Firebird\Firebird_2_0\bin\gbak.exe" -T -B ":" "C:\Backup\BackupFileName.FBK" -v
the gbak 2.0.4 picks up some database for backup instead of giving error report.
Having this as a daily backup (due to batch error), it picked up different databases on different days...
Usual output is:
gbak: ERROR:file is not a valid database
gbak:Exiting before completion due to errors
Sometimes it writes:
gbak: ERROR:I/O error for file "MyDatabaseName
?"
gbak: ERROR: Error while trying to open file
(where the ? is char #04)
In cca 1/10 cases it had backed up some database...
It probably happens only, if another program has a database opened...? It also backed up the database after some time the last program, that had it opened, has terminated... (as detected from my logs)
Test batch:
@echo off
:retry
"C:\Program Files\Firebird\Firebird_2_0\bin\gbak.exe" -T -B ":" "C:\Backup\test.fbk" -v
if errorlevel 1 goto retry
During running this batch, other program starting or terminating sometimes triggers this...
Using -B "localhost:" also sometimes triggers this error...
Commits: 23016b7 74c282b dbe4674
The text was updated successfully, but these errors were encountered: