COMPRESS statement examples

The following example compresses all of the files with the extension dbf on the multi-volume file system tier2 that have not been accessed for last 30 days:

  <SELECT Flags="Data">
    <PATTERN> *.dbf </PATTERN>
  </SELECT>

  <COMPRESS>
    <FROM>
      <SOURCE>
        <CLASS> tier2 </CLASS>
      </SOURCE>
    </FROM>
    <WHEN>
      <ACCAGE Units="days">
        <MIN Flags="gt">30</MIN>
      </ACCAGE>
    </WHEN>
  </COMPRESS>

The files designated by the rule's SELECT statement that reside on volumes in placement class tier2 at the time the fsppadm enforce command executes are compressed in place. Each instantiation of fsppadm enforce compresses files created since the last run on the tier2 volumes.

The following example compresses all of the files with the extension dbf on a single volume if the file was not accessed for one minute.

  <SELECT Flags="Data">
    <PATTERN> *.dbf </PATTERN>
  </SELECT>

  <COMPRESS>
    <WHEN>
      <ACCAGE Units="minutes">
        <MIN Flags="gt">1</MIN>
      </ACCAGE>
    </WHEN>
  </COMPRESS>

No <FROM> clause is required for single volume. The files designated by the rule's SELECT statement at the time the fsppadm enforce command executes are compressed in place. Each instantiation of fsppadm enforce compresses files created since the last run on the volume.

The following example compresses all of the files on tier3:

  <SELECT Flags="Data">
    <PATTERN> * </PATTERN>
  </SELECT>

  <COMPRESS>
    <FROM>
      <SOURCE>
        <CLASS> tier3 </CLASS>
      </SOURCE>
    </FROM>
  </COMPRESS>

This rule compresses in place all files that reside on tier3 at the time the fsppadm enforce command executes.