Preserving tags during data movement

Before you begin

Generate a report of the files to be moved or copied before you start the data movement process. This report includes the relevant tags for each source file. A sample report is shown in the following table:
Table 1. Report generated for moving files
Path Filename Filetype Datasource tagA tagB
/ Chrysanthemum.jpg jpg dir1 image value1
/ Lighthouse.jpg jpg dir1 image value1
/ newtextfile.txt txt dir1 text value2
/ Hydrangeas.jpg jpg dir1 jpg value1
/ Thumbs.db db dir1 unknown value1
/ Koala.jpg jpg dir1 jpg value1
/ Desert.jpg jpg dir1 jpg value1

About this task

If IBM Spectrum® Discover tags must be preserved during data migration, then you can follow a manual procedure to ensure that the tags are preserved in the moved or the copied files.

Procedure

  1. Run the data movement process.
  2. Rescan the destination connection after the data movement completes successfully.
  3. Refer to the information provided in the report, shown in Table 1 that was generated before you started the data movement process, to identify the files for which you need to preserve the tags.
    Note: You can define a filter to identify and select the correct set of files that must be tagged. For example, if we want to move files shown in Table 1 to a new datasource (ddsource), you can define filters that include the actions to be taken for the tag values. For a filter defined as shown:
    datasource in ('ddsource') and filetype in ('jpg') 
    You can create an AUTOTAG policy that sets the value of tagA to image.
    This process assumes either of the two things.
    • No other files belonging to these filetypes exist in the destination datasource.
    • Those files can also be tagged with the tagA values.
  4. Reapply the tags (for example, tagA) on the moved or copied files by using the auto tagging capability of IBM Spectrum Discover.
    Note:

    You must perform a search using the above filters to check that it retrieves the correct documents that are being selected. You can also sort, based on the report headings in MS Excel, to identify a suitable filter.

    It is not easy to identify a suitable filter to reapply the tagB values shown in Table 1 which indicates the difficulty in manually reapplying the tags.

    This solution is feasible only where you can define a small number of filters that identify the groups of files to which you need to apply the tags. If filters cannot be defined then you must run several AUTOTAG policies, which might be an impractical and tedious process.