Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

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

0
rmmarsh
Asked:
rmmarsh
  • 6
  • 4
1 Solution
 
NickUpsonCommented:
first, don't use REPlace, it's just a bad habit to get into, use CREATE instead, then rename

second, firebird is installed on the local machine, with that user/password?

third, current user has permission to overwrite the current database with that filename?
0
 
rmmarshAuthor Commented:
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?
0
 
NickUpsonCommented:
this is about your machine, the one you want to restore the backup onto
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
rmmarshAuthor Commented:
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...
0
 
NickUpsonCommented:
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
0
 
rmmarshAuthor Commented:
What bothers me is that it works on an XP machine and won't on a Server 2003 R2 machine... is there a connection?
0
 
rmmarshAuthor Commented:
BTW, "CREATE" doesn't work either...  sounds more and more like a Server 2003 R2 issue.
0
 
rmmarshAuthor Commented:
Found the problem!  the master password was wrong!!  (how I did that I'll never know)...
Thanks for your help... points awarded anyway...

Rolf
0
 
rmmarshAuthor Commented:
thanks again...
0
 
NickUpsonCommented:
common mistake, that's why I suggested it
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now