Example db2.conf file using ARCFUNC COPY
Assume that you need to back up a database named SAMPLE and its archive logs. USEREXIT is enabled for database SAMPLE. The policies for the database SAMPLE include 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 ARCFUNC COPY command copies the archive logs to the ARCDIR directory.
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 C:\MyLogs\arcdir\ RETDIR C:\MyLogs\arcdir\ ARCDIR /home/db2inst1/arcdir RETDIR /home/db2inst1/arcdir ENDOPER