Subject Re: [firebird-support] Re: GBAK - Restore Failure from 1.5 on Linux
Author Helen Borrie
At 11:03 AM 5/01/2007, Alexandre Benson Smith wrote:

>I did not follow the entire thread, so sorry if I am out of sync with
>the thread.
>
>AFAIK -R resolves to -C, -REP behaves exactly as -R on FB 1.5 in other
>words.
>
>-R on FB 2.0 refuses to continue if the file already exists
>-REP on FB 2.0 delete and create a new file
>
>Or I am missing something ?

Yes, you are missing something. Under Fb 2.0 there is only one way
to overwrite an existing database (or, in other words, to get the
same behaviour as gbak -r[eplace_database] in Fb 1.5.x and
before): you must use

gbak -r[ecreate_database] O[VERWRITE]

That is, gbak -REP now resolves to gbak -c[reate_database] and will
therefore fail if the database already exists.

./heLen