cookbook:sync
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cookbook:sync [2019/06/13 02:54] – [Constructing a Definition File] Scott Cunliffe | cookbook:sync [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== TMSS10Sync Implementation ===== | ===== TMSS10Sync Implementation ===== | ||
| - | The TapeTrack Sync uses, in its minimum format, uses an executable TMSS10Sync, an input file containing the information to syncronise | + | The TapeTrack Sync uses, in its minimum format, uses an executable TMSS10Sync, an input file containing the information to synchronize |
| ==== TTIDEF Definition File Explained ==== | ==== TTIDEF Definition File Explained ==== | ||
| Line 11: | Line 11: | ||
| {{sync_no_translator.png}} | {{sync_no_translator.png}} | ||
| - | The solution to this problem is the implementation of a translator who speaks both languages. | + | The solution to this problem is the implementation of a translator who speaks both languages. |
| {{sync_translator.png}} | {{sync_translator.png}} | ||
| - | This is similar the situation faced by TapeTrack Sync when importing information into the database. A text or CSV input file can contain Volume information in many formats so direct import is not possible in the raw format. | + | This is similar |
| {{tmss10sync_no_translator.png}} | {{tmss10sync_no_translator.png}} | ||
| Line 34: | Line 34: | ||
| === CSV Input File Format === | === CSV Input File Format === | ||
| - | Sample CSV File - '' | + | Sample CSV File - '' |
| + | This file can be found in your Sync installation directory at TapeTrack\TapeTrack Sync\var\sample.csv | ||
| - | <sxh> | + | <code> |
| GZB0001, | GZB0001, | ||
| GZB0002, | GZB0002, | ||
| Line 47: | Line 48: | ||
| GZB0009, | GZB0009, | ||
| GZB0010, | GZB0010, | ||
| - | </sxh> | + | </code> |
| Line 55: | Line 56: | ||
| * Volume Description in column 3 | * Volume Description in column 3 | ||
| - | Missing from the CSV file is the Customer-ID, | + | Missing from the CSV file is the Customer-IDand Media-ID, which will set directly from within the definition file. |
| - | Lines in the definition file that start with # are comments for explanation and are not read by the Sync engine. | + | Lines in the definition file that start with #, or midline after the #, are comments for explanation and are not read by the Sync engine. |
| - | Sample Definition File - default.ttidef | + | Sample Definition File - default.ttidef \\ |
| + | This file can be found in your Sync installation directory at TapeTrack\TapeTrack Sync\etc\sample.ttidef | ||
| - | <sxh> | + | <code> |
| # | # | ||
| # Object Type: TapeTrack Sync Definition File | # Object Type: TapeTrack Sync Definition File | ||
| # Description: | # Description: | ||
| # System: TapeTrack | # System: TapeTrack | ||
| - | # SecLevel: | + | # SecLevel: |
| # | # | ||
| # | # | ||
| Line 72: | Line 74: | ||
| SetLiteral(MEDIA, | SetLiteral(MEDIA, | ||
| SetCSVDelimiter("," | SetCSVDelimiter("," | ||
| - | Extract(VOLUME, | + | Extract(VOLUME, |
| Extract(USER1, | Extract(USER1, | ||
| Extract(DESCRIPTION, | Extract(DESCRIPTION, | ||
| RemoveSpaces(DESCRIPTION); | RemoveSpaces(DESCRIPTION); | ||
| # | # | ||
| - | # Add L suffixes to the Volume-ID based on Media Type and Generation | + | # Add L suffixes to the Volume-ID based on Media Generation |
| # | # | ||
| AddTranslation2(VOLUME, | AddTranslation2(VOLUME, | ||
| Line 86: | Line 88: | ||
| AddTranslation2(VOLUME, | AddTranslation2(VOLUME, | ||
| AddTranslation2(VOLUME, | AddTranslation2(VOLUME, | ||
| - | </sxh> | + | </code> |
| + | {{tag> cookbook}} | ||
cookbook/sync.1560394460.txt.gz · Last modified: 2025/01/21 22:07 (external edit)
