1.6.5.8.1.  Block [Backups]

For own part catalogs you can automatically create backups of the Geo, Topo and Partial Index.

By default, backups are created for the most recent 2 versions (see config key). (In case of a defective index, delete the index to be replaced, copy data from backup and restart PARTapplicationServer.)

Configuration possibilities in detail

Settings are made in the configuration file geomsearch.cfg, in the block [Backups].

  • MostRecentMaxBackups: Default value 2

    Backups are created ...

    • ... when updating the index via PARTadmin

    • ... when starting a reintegration of the update files[33] in PLMsynchro

    • ... when starting a reintegration of the update files using a VBS script

      Code:

      dim geoUtils = CreateObject("cnstools.geoindexutils")
      geoUtils.backupIndexes("cat/issues")
      

    If the set limit is exceeded, the oldest backup is deleted.

    These backups are identified by the file extension .zip.

  • BeforeFailMaxBackups: Default value 2

    If there is a hint that the index is possibly defective, a backup of the current index is created (up to the number of set value).

    These backups can be identified by the file extension .zip.bak.

    If the number exceeds the set value, the two oldest backups are kept, as an error in the older index is presumably also contained in the newer one.

    The file size is used as an indication that the index is incorrect. See MinRatio key below.

  • BasePath=$ CADENAS_DATA/index/backups

    Backups are stored under the stated path.

  • Catalogs=

    List of catalogs for which a backup shall be created (e.g. cat/test1,cat/test2)

  • MinRatio=0.9

    The ratio of old and new file size is automatically compared. If the value is smaller than 0.9 (default), the newly created index could be defective. (Of course the reason could also be a reduction of the version. So this should only be seen as a pointer and has to be manually checked.)




[33] Update files are created during a PLMsysnchro run. These are reintegrated into the main index depending on the setting at geomsearch.cfg -> Block [settings] -> Key MaxSizeOfUpdateList ). They are marked with a "u" in the file extension and can be found in the directory of the main index.