add-circle-bold add-circle add-square add alarm-bell-1 alert-diamond analytics-pie-2 archive archive arrow-down-1 arrow-down-2 arrow-left-1 arrow-right-1 arrow-up-1 attachment-1 bin-paper-1 book-star button-record check-1 check-circle-1 close close-quote close cog-1 cog common-file-stack copy-paste credit-card-1 diagram-fall-down disable time-clock-midnight download-thick-bottom drawer-send envelope-letter envelope-letter expand-6 expand-6 file-code filter-1 floppy-disk flying-insect-honey folder-file-1 headphones-customer-support hierarchy-9 hyperlink-2 information-circle keyboard-arrow-down keyboard-arrow-up layout-module-1 list-bullets lock-2 lock-unlock-1 love-it messages-bubble-square move-to-top multiple-circle multiple-neutral-1 multiple-users-1 navigation-menu-horizontal navigation-menu network-browser open-quote pencil-1 pencil-write pencil-1 print-text rating-star rating-star remove-circle remove-square-1 search send-email-1 shield-warning single-neutral-actions single-neutral smiley-sad-1 smiley-unhappy smiley-indifferent smiley-smile-1_1 smiley-happy smiley-sad-1 smiley-unhappy smiley-indifferent smiley-happy smiley-thrilled social-media-twitter synchronize-arrows-1 tags-double ticket-1 ticket-1 time-clock-circle undo view-1 view-off view wench

Rebuilding plan indexes

In rare cases a plan's index files may have grown larger than expected after repeated results with errors and warnings. For improved performance and use of system resources the indexes should be rebuilt based off of the last good restore point generated.

The version 9.0 release of the software trims plan indexes after a successful protection plan run to reflect the current state of the server file system. When the plan ends with an error or warning, indexes are not trimmed. There is also a backup copy of indexes the plan reverts to in case of corruption.  It is unlikely that ending a plan midway would lead to an issue.

To rebuild plan indexes follow the steps below.

Open a command prompt as administrator and change to the installation folder. See: How to open a command prompt as administrator and change to the installation directory

The command to rebuild plan indexes is:
 
aiq archive index -store [the store id] -archive [the archive id] -time [the time or $latest$] -rebuild all


To get the store id and archive id for the command above, use Archive Manager to go to Storage > All Stores > [the store} > Archives > [the archive]. Right click on the archive and select Properties from the pop up menu. The path listed on properties page includes the store folder (which includes the store id) and the plan folder (which includes the archive id).

To get the time value, use Windows Explorer to go to the path listed in the properties page. Look for the catalog file with the desired datestamp in the name, e.g. for October 24, 2016, 12pm, use the catalog 20161024.1.120001.389

The command in this case, for example, is:

aiq archive index -store {70649f1a-fe86-4b50-95e4-c27d0ff43842} -archive Plan{cccc2b0d-b912-49fe-9aba-d88c79b98bf6} -time 20161024.1.120001.389 -rebuild all

You can type aiq archive index at the command line to get help. See below:
  AIQ ARCHIVE INDEX parameters


  Parameters

  -store <storename>     Object store to index


  Options

  -archive <archivename> Name of archive to index (default is all)
  -time <restorepoint>   Restore-point to index (default is $latest$)
                         Restore-point = {$latest$ | <restorepoint>}
                         Specify '$latest$' (default) for the latest version,
                         or a restore-point. See ARCHIVE LIST command.
                         The time specified can be:
                         - the numeric leading portion of the archive
                           catalog, e.g., 20060222.3.105802.376
                         - the numeric portion of the archive path prefaced
                           with 'UTC-', e.g., UTC-2006.06.16-22.44.18.078
  -select <regex>        Selection criteria for items to index
                           Regular expression quick reference:
                           .        Wildcard: any character
                           *        Repeat: zero or more occurrences of previous
 character or class
                           ^        Line position: beginning of line
                           $        Line position: end of line
                           [class]  Character class: any one character in set
                           [^class] Inverse class: any one character not in set
                           [x-y]    Range: any characters within the specified r
ange
                           \x       Escape: literal use of metacharacter x
                           \<xyz    Word position: beginning of word
                           xyz\>    Word position: end of word
  -rebuild {index,...}   index = {all | index{0..4}
  -rebuild {index,...}   index = {catalogindex | versionindex | vaultndx}
  -validate <check>      check = {none | items | metadata | data}
                         (default is 'none')
                         Determines the extent of data validation checks
                         none     - Skips all referential integrity checks
                         items    - Verifies store content exits for items
                         metadata - Complete referential integrity check
                         data     - Full data recovery check
  -noverifyindex         Disable use of verified blob index
  -update                Append to existing (update) verified blob index
  -quarantine            Quarantine invalid items
  -verbose               Lists items indexed
Attachments