TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


engine:sync:addrepositoryonwritetime

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
engine:sync:addrepositoryonwritetime [2020/02/24 00:48] Scott Cunliffeengine:sync:addrepositoryonwritetime [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== AddRepositoryOnWriteTime ====== ====== AddRepositoryOnWriteTime ======
  
-Set a Repository value based upon a range of Write Times.+Set a [[object:repository|Repository]] value based upon a range of Write Times.
  
 ===== Phase ===== ===== Phase =====
 This instruction is used by the TapeTrack Synchronization Engine. This instruction is used by the TapeTrack Synchronization Engine.
  
-===== Special Considerations ===== + 
-<note tip>This instruction will not be invoked by the Synchronization Engine if a matching +<note important>This instruction will not be invoked by the Synchronization Engine if a matching 
-AddRepositoryOnMoveDate entry has been used to change the Repository</note>+[[engine:sync:addrepositoryonmovedate|AddRepositoryOnMoveDate]] entry has been used to change the Repository</note>
  
 ===== Syntax ===== ===== Syntax =====
-**AddRepositoryOnWriteTime**(//field, filter, time, target, movedate//); \\ +''AddRepositoryOnWriteTime(field, filter, time, target, movedate);'' 
-string //field;//\\ + 
-string //filter;//\\ +^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ 
-string //time;//\\ +|field| String | A field for comparison.|1|40
-string //target;//\\ +|filter| String | A filter to compare against.|1|256
-string //movedate;//\\ +|time| String | Number of hours, days, months and years from the Write Date.|1|30
-|field| A field for comparison.| +|target| String | The Target Repository.|1|4
-|filter| A filter to compare against.| +|movedate| String | Number of hours, days, months and years from the Write Date to set the Move Date.|1|30|
-|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 ===== ===== Example =====
-Set the Repository based upon time from Write Date.+Set the [[object:repository|Repository]] based upon time from Write Date.
  
-<sxh>+<code>
 # #
 # Extract the WRITEDATE from column 10, length 20. # Extract the WRITEDATE from column 10, length 20.
Line 44: Line 41:
 # move the Volume to OFFS and give it a one year MOVEDATE. # move the Volume to OFFS and give it a one year MOVEDATE.
 AddRepositoryOnWriteTime(DESCRIPTION, "*YEARLY*", "0:0:1", "OFFS", "0:1:1"); AddRepositoryOnWriteTime(DESCRIPTION, "*YEARLY*", "0:0:1", "OFFS", "0:1:1");
-</sxh>+</code> 
 + 
 +Set the Repository to OFFS, based on Volume-ID if last write time is within 7 days ago with no next move date. 
 + 
 +<code> 
 +AddRepositoryOnWriteTime(VOLUME, "SC*", "7", "OFFS", "0"); 
 +</code> 
 + 
 + 
 + 
 +===== See Also =====
  
-{{tag> import_enginesync_engine}}+[[engine:import|Import Engine Functions]] \\ 
 +[[cli:sync_fields|Sync Engine Fields]] \\ 
 +[[cli:tmss10sync|TMSS10Sync]] 
 +{{tag> import_engine sync_engine}}
engine/sync/addrepositoryonwritetime.1582505290.txt.gz · Last modified: 2025/01/21 22:07 (external edit)