engine:sync:addrepositoryonwritetime
This is an old revision of the document!
Table of Contents
addrepositoryonwritetime
AddRepositoryOnWriteTime
Set a Repository value based upon a range of Write Times.
Phase
This instruction is used by the TapeTrack Synchronization Engine.
Special Considerations
This instruction will not be invoked by the Synchronization Engine if a matching
AddRepositoryOnMoveDate entry has been used to change the Repository
Syntax
AddRepositoryOnWriteTime(field, filter, time, target, movedate);
string field;
string filter;
string time;
string target;
string movedate;
field | A field for comparison. |
filter | A filter to compare against. |
time | Number of hours, days, months and years from the Write Date. |
target | The Target Repository. |
movedate | Number of hours, days, months and years from the Write Date to set the Move Date. |
Example
AddRepositoryOnWriteTime: Set the Repository based upon time from Write Date.
Extract(WRITEDATE, 10, 20, 0); | Extract the WRITEDATE from column 10, length 20. |
SetWriteDateFormat("%%H:%%M:%%S %%d/%%m/%%Y"); | Set the WRITEDATE format. |
Extract(DESCRIPTION, 11, 100, 0); | Extract the DESCRIPTION from column 11, length 100. |
AddRepositoryOnWriteTime(DESCRIPTION, “*YEARLY*”, “0:1”, “LIBR”, “0:1”); | If the DESCRIPTION contains YEARLY and the WRITEDATE is within one day move the Volume to LIBR and give it a one day MOVEDATE. |
AddRepositoryOnWriteTime(DESCRIPTION, “*YEARLY*”, “0:0:1”, “OFFS”, “0:1:1”); | If the DESCRIPTION contains YEARLY and the WRITEDATE is within one year move the Volume to OFFS and give it a one year MOVEDATE. |
engine/sync/addrepositoryonwritetime.1534279662.txt.gz · Last modified: 2025/01/21 22:07 (external edit)