# Archive Information

You can archive records of index actions that the DIH receives and documents that the DIH was unable to index.

## Archive Actions

Use the following procedure to set up archiving for index actions. The archived data includes any data that you send in the action.

To enable archiving of index actions

1. Open the DIH configuration file in a text editor.
2. In the `[Server]` section, set `ArchiveMode` to `True`.
3. In the `[Paths]` section, set `Archive` to the path (either absolute or relative to the DIH executable) to a directory to store the list of actions in.

4. In the `[Server]` section, set `ArchiveFolderDateFormat` to the IDOL date format string to use to name the folders. You can also use forward slashes (`/`) as path separators to specify subfolders. For example:

       ArchiveFolderDateFormat=YYYY_MM_DD/HH/NN

   In this example, an archive folder is produced every day, with a subfolder every hour, each with a further subfolder every minute. The default value is `YYYY_MM_DD`.

5. In the `[Server]` section, set `CompressArchive` to `True` if you want to compress the action archive to save disk storage space.

6. In the `[Server]` section, set `ArchiveUseHashDir` to `False` if you do not want to use a hashed directory structure in your archive folder (64 folders each containing 64 folders).

   A hashed directory structure can avoid slow file operations that can occur in some file systems when there are many files in a single folder. If you have set `ArchiveFolderDateFormat` to give a small time interval for each folder, hashed directories might not be necessary.

7. Save and close the configuration file.

8. Restart the DIH for your changes to take effect.

## Archive Failed Documents

Use the following procedure to set up archiving for documents that the DIH was unable to index.

To enable archiving of failed documents

1. Open the DIH configuration file in a text editor.
2. In the `[Server]` section, set the `ArchiveFailedTasks` parameter to `True`.
3. In the `[Paths]` section, set the `Failed` configuration parameter to the path (either absolute or relative to the DIH executable) to a directory to store the unindexed documents in.

4. Save and close the configuration file.

5. Restart the DIH for your changes to take effect.

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm