Omitting libraries from backup

It is also important to understand the recovery implications for saving user data. For example, suppose that you plan to perform an *ALLUSR save in your control group. Before you perform this *ALLUSR save, you may need to save larger libraries separately using the parallel feature.

When you set up your control group, be sure to define the libraries to omit in your backup policy. You may also want to omit libraries from control groups by using the *IBM, *SAVSYS, *ALLDLO, and ASPnn special values.

Take the following steps to get to the Work with Items to Omit from Backup display:

  1. Type WRKPCYBRM *BKU at a command line and press Enter.
  2. Take option 2 (Work with Items to Omit from Backup) from the Backup Policy menu.
                          Work with Items to Omit from Backup            RCHAS400   
                                                                                    
     Type options, press Enter.                                                     
        1=Add   4=Remove                                                            
                                                                                    
     Opt Type     Backup item                                                       
                                                                                    
         *ALLUSR  TEMP*                                                             
         *IBM     Q1ABRMSF*                                                         
                                                                                    
                                                                                    
                                                                                    
                                                                                    
                                                                                    
                                                                                    
                                                                                    
                                                                                    
                                                                                    
                                                                                    
                                                                                    
                                                                             Bottom 
                                                                                    
     F3=Exit   F5=Refresh   F12=Cancel                                              
  3. Review or change the following parameters on this display.
    • In the Opt field, type a 1 (Add) to add the item to a list of items to omit.
    • In the Type field, specify the type of backup you want to perform, which in this case will be *ALLUSR.
    • In the Backup item field, type the name of the item you want to omit, which in this case is a TEMP library.
  4. Press Enter to process the request.

In this example, BRMS omits all libraries that begin with TEMP from the *ALLUSR backups. To save data to save files, BRMS places the files in a library that is called Q1ABRMSFxx. The xx indicates the ASP number into which the library is placed. Typically, you would use the Save Save File with BRM (SAVSAVFBRM) command to save the save files, which can be quite large and time-consuming to save.

In addition to the special values *IBM, *ALLUSR, *SAVSYS, *ALLDLO, and *ASPnn, you can also specify *ALL in the Type field. *ALL instructs BRMS not to save a library when you specify a special or generic value in a control group or a SAVLIBBRM command. Other things to consider when using the Work with Items to Omit option are:
  • You cannot include the special values *ALLPROD and *ALLTEST in a list of items to omit. If you omit a library from an *ALLUSR group, then BRMS automatically omits it from an *ALLPROD group if it uses a PROD type. Similarly, BRMS also omits the library from an *ALLTEST group if it uses a TEST type.
  • The *SYSTEM backup control group ignores any Items to omit from backup that may be specified in the backup policy. If you need to omit libraries from your backup you need to use an alternate backup control group.
  • You can specify the *SECDATA, *USRASPAUT, and *CFG special values as items to omit with the *SAVSYS special value in the Type field.
  • You can specify the *USRASPAUT special value as an item to omit with the *SECDATA special value in the Type field.
  • If your backup device is a TSM server, you should omit the QUSRADSM library from an *ALLUSR backup.
  • You can omit up to a maximum of 300 items.
  • Be aware that if you omit a library from a control group, BRMS will omit that library from all control groups with the same name until you reenter it into the control group. For example, if you omit a library from the *ALLUSR control group, BRMS will omit that library from all saves of that control group, even from the *BKUGRP control group, until you reenter it. To avoid this situation, you may want to save the library in a different control group.
Note: If you perform a restore operation exclusive of BRMS (for example, with the IBM® i RSTLIB command), BRMS cannot recover the QGPL and QUSRSYS libraries. In this case, you must restore them separately.