TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


sync:definition

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sync:definition [2021/06/07 01:30] – [Setting Literal Values] Scott Cunliffesync:definition [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 32: Line 32:
   000006L6,000006L6,tape,LTO,Racking,weekly_full,2021-07-21   000006L6,000006L6,tape,LTO,Racking,weekly_full,2021-07-21
   000007L6,000007L6,tape,LTO,Racking,weekly_full,2021-10-14   000007L6,000007L6,tape,LTO,Racking,weekly_full,2021-10-14
 +  CLN00012,CLN00012, CLN,LTO,,Cleaning_Tape,
      
 === Add File Type Directives === === Add File Type Directives ===
Line 42: Line 43:
  
 Skip any line starting with volume, as it is a heading and not a Volume Skip any line starting with volume, as it is a heading and not a Volume
 +Skip any Volume that starts with CLN.
  
   AddString(EXCLUSION, 0, "volume*");   AddString(EXCLUSION, 0, "volume*");
-  +  AddExclusionOnValue(VOLUME, "CLN*");
  
  
Line 57: Line 59:
      
 ==== Define Fields ==== ==== Define Fields ====
 +
 +Definition fields to pass date format to Sync engine, Y=YYYY (y-YY), m=mm, d=dd.
 +Permanent date value sets the specified date to Permanent or no next move date.
  
   SetMoveDateFormat("%%Y/%%m/%%d");   SetMoveDateFormat("%%Y/%%m/%%d");
Line 83: Line 88:
   RemoveSpaces(DESCRIPTION);   RemoveSpaces(DESCRIPTION);
      
 +Extract Movedate from column 5, length 11
 +
 +  Extract(MOVEDATE, 5, 11, 0);
 ==== Translate Fields Directly ==== ==== Translate Fields Directly ====
  
Line 118: Line 126:
   Extract(DESCRIPTION, 5, 30, 0);   Extract(DESCRIPTION, 5, 30, 0);
   RemoveSpaces(DESCRIPTION);   RemoveSpaces(DESCRIPTION);
 +  
 +  SetMoveDateFormat("%%Y/%%m/%%d");
 +  Extract(MOVEDATE, 5, 11, 0);
 +  
 +  AddString(EXCLUSION, 0, "volume*");
 +  AddExclusionOnValue(VOLUME, "CLN*");
      
   AddTranslation(REPOSITORY, "Offsite", "OFFS");   AddTranslation(REPOSITORY, "Offsite", "OFFS");
sync/definition.1623029404.txt.gz · Last modified: 2025/01/21 22:07 (external edit)