Example: limit processing

The following example shows how limit processing affects the content of a generation data group.

Consider a generation data group, audit, that has a limit of three generations, a days option of 5, and the noempty option, and that was created with the following four new member generation files:

0: audit.g0001v00
0: audit.g0003v00
0: audit.g0005v00
0: audit.g0007v00

Because none of the files was beyond its expiration date when the group was created, the group is allowed to be over the limit of three generations. But after seven days, all the existing generations are expired. Therefore if a new generation is then added, the two least-current expired generations are removed to comply with the limit after the addition.

Typically the addition is done by running a program, but the following example shows another way of adding a generation, and shows the resulting group content:

gdgmgr -a "audit(+2)" -1
0: audit.g0005v00
0: audit.g0007v00
0: audit.g0009v00

If the original group had the empty option instead, the group content after the addition contains only one generation file, as follows:

0: audit.g0009v00