Link to home
Start Free TrialLog in
Avatar of rmmarsh
rmmarshFlag for United States of America

asked on

Problem with restore

I have the following gbak parameters that cause the following error:

C:\Program Files\Firebird\bin>gbak -REP -user sysdba -pass prager "E:\Downloads\
Email Attachments\20081021.gbk" c:\Prager\dbBooks.fdb
gbak: ERROR:Your user name and password are not defined. Ask your database admin
istrator to set up a Firebird login.
gbak: ERROR:failed to create database c:\Prager\dbBooks.fdb
gbak:Exiting before completion due to errors

What is it talking about?  (the backup came from a user who is having some problems; I asked him to send me the latest backup).
gbak -REP -user sysdba -pass prager "E:\Downloads\
Email Attachments\20081021.gbk" c:\Prager\dbBooks.fdb

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Nick Upson
Nick Upson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rmmarsh

ASKER

Hi Nick...
"second, firebird is installed on the local machine, with that user/password?"    not sure; hopefully the user didn't change it, since I didn't give any directions on how to accomplish that...


"third, current user has permission to overwrite the current database with that filename?"  not sure what you mean... if the backup came from his machine, would he, by default, have permissions?
this is about your machine, the one you want to restore the backup onto
Avatar of rmmarsh

ASKER

I restored it on my machine at home and had no problems; tried to restore it on the machine at work and got the problem... it came from one of my users...
I can't remember if REPL requires the file to be there first, check you can connect to another database on the work machine using the same password

this this version:
gbak -CREATE -user sysdba -pass prager "E:\Downloads\Email Attachments\20081021.gbk" c:\Prager\dbBooks_1.fdb
Avatar of rmmarsh

ASKER

What bothers me is that it works on an XP machine and won't on a Server 2003 R2 machine... is there a connection?
Avatar of rmmarsh

ASKER

BTW, "CREATE" doesn't work either...  sounds more and more like a Server 2003 R2 issue.
Avatar of rmmarsh

ASKER

Found the problem!  the master password was wrong!!  (how I did that I'll never know)...
Thanks for your help... points awarded anyway...

Rolf
Avatar of rmmarsh

ASKER

thanks again...
common mistake, that's why I suggested it