The database format GRAMPS uses is not a real file, so you cannot move or rename it, see http://gramps-project.org/wiki/index.php?title=Recover_corrupted_grdb
I believe you have encountered this, no?

 Always keep .gramps files of your work, GRAMPS 2.2.x stores them automatically where the .grdb file is as .backup.gramps.

As you use ubuntu, you can upgrade to version 3.0.1 with many new features with the package on our website. This error is less likely there

Benny


2008/9/29 Gabriel Criado <gabriel.criado@gmail.com>
User Information:
===================

Closing Application


Error Details:
===================

83637: ERROR: gramps.py: line 148: Unhandled exception
Traceback (most recent call last):
  File "/usr/share/gramps/ViewManager.py", line 492, in quit
    self.state.db.close()
  File "/usr/share/gramps/GrampsDb/_GrampsBSDDB.py", line 1073, in close
    self.env.txn_checkpoint()
DBRunRecoveryError: (-30975, 'DB_RUNRECOVERY: Fatal error, run database recovery -- txn_checkpoint: failed to flush the buffer cache: DB_RUNRECOVERY: Fatal error, run database recovery')


System Information:
===================

Python version: 2.5.2 (r252:60911, Jul 31 2008, 17:31:22) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
BSDDB version: 4.4.5.3
Gramps version: 2.2.10-1
LANG: es_CL.UTF-8
OS: Linux
Distribution: 2.6.24-19-generic


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-bugs mailing list
Gramps-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-bugs