Decrypting a Database Backup File During a Restore

From InterBase

Go Up to Encrypting Backup Files


The -decrypt switch is used during the database restore process to provide the password of the encryption that was used to originally backup the database. Please note that encrypted databases can be restored only as a service, and thus will also need to provide full path names to the database file and backup file.

The following example shows how to use the -decrypt and -sep switches to decrypt a sample database file during a database restore:

gbak -se service -r c:\backup_dir\employee.ibak c:\embarcadero\interbase\examples\database\employee.ib -sep “’sep password”’ -decrypt 'my password'
gbak -se localhost:service -r c:\backup_dir\employee.ibak c:\embarcadero\interbase\examples\database\employee.ib -sep “’sep password”’ -decrypt 'my password'

For more information about using the GBAK -b and -r options to perform database backups and restores, see the InterBase Operations Guide.

Advance To: