Subject Re: [firebird-support] Re: Programmatically using GBAK
Author Stefan Heymann
> Not correct. The -c[reate_database] and
> -r[eplace_database] switches are mutually exclusive.

I have never had a problem with using them both together, starting
with InterBase 4.0 up until today ;-) It does exactly what I want:
delete the current database and overwrite it with the database from
the backup file.

> However, NOBODY should use the -r switch unless
> s/he really knows what s/he is doing.

Nobody should use ANY switch unless s/he really knows what s/he is
doing ;-)

> Totally avoid it until one reaches a point where one is confident
> that [dest]R[oy_database is really what one wants to do.

Especially in development work, entirely replacing a database with one
from a backup is quite common.

> In Fb 2, you're really going to need to be serious about destroying
> the old database if that's your intention. You will have to add a
> keyword to the -r switch in order to overwrite.

I don't think that will change a lot. I will have to learn the new
switch, but I will use it. If you really want to prevent people from
unintentionally deleting a database, then IMHO no such switch should
be available at all, whatever its name or keyword may be.


Best Regards

Stefan