Example db2.conf file (vendor method)
Assume that you need to back up a database named SAMPLE and its archive logs. The VENDOR method is enabled for database SAMPLE. The policies for the database SAMPLE specify the required schedules for the backups.
The policies are as follows:
The DB2_DB_Policy backs up the database. This policy has an application backup schedule and an automatic backup schedule. The first definition in the example db2.conf file specifies this policy and its application backup schedule, which is named Default-Application-Backup. The automatic backup schedule is not specified in db2.conf.
The DB2_ARCH_Policy backs up the archive logs. This policy has an application backup schedule named Default-Application-Backup. The third entry in the example file specifies this policy and its application backup schedule.
DATABASE SAMPLE OBJECTTYPE DATABASE POLICY DB2_DB_Policy SCHEDULE Default-Application-Backup ENDOPER #DATABASE SAMPLE #OBJECTTYPE ARCHIVE #POLICY DB2_Log_Policy #SCHEDULE User #ARCFUNC SAVE #ARCFUNC COPY #ARCDIR /home/db2inst1/arcdir #RETDIR /home/db2inst1/arcdir #ENDOPER DATABASE SAMPLE OBJECTTYPE ARCHIVE POLICY DB2_ARCH_Policy SCHEDULE Default-Application-Backup ENDOPER