Creating encrypted backup images

Create an encrypted backup image of your database using the BACKUP DATABASE command and specifying which library you would like to use in backup operations.

Procedure

  • If you have the encrlib value set in the database configuration file, simply run the BACKUP DATABASE command:
    db2 backup database <database_name>
  • If you do not have the encrlib value set in the database configuration file, specify the encrypt keyword:
    db2 backup database <database_name> encrypt
    Note: These examples use the default set of options for backing up an encrypted database. For the full set of encryption and master key options available, refer to the BACKUP DATABASE reference topic.