GBak does not check correctly parameters and backups random database with -B ":" --------------------------------------------------------------------------------
Key: CORE-3875 URL: http://tracker.firebirdsql.org/browse/CORE-3875 Project: Firebird Core Issue Type: Bug Components: GBAK Affects Versions: 2.0.5 Environment: Windows XP SP2, Firebird 2.0.4 Reporter: Semi Priority: Minor 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... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel