engine:sync:addrepositoryonwritetime
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
engine:sync:addrepositoryonwritetime [2018/08/14 16:49] – created dcumming | engine: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: |
- | Phase | + | |
+ | ===== Phase ===== | ||
This instruction is used by the TapeTrack Synchronization Engine. | This instruction is used by the TapeTrack Synchronization Engine. | ||
- | Special Considerations | + | |
- | Note | + | |
- | This instruction will not be invoked by the Synchronization Engine if a matching | + | <note important> |
- | AddRepositoryOnMoveDate entry has been used to change the Repository | + | [[engine: |
- | Syntax | + | |
- | AddRepositoryOnWriteTime(field, | + | ===== Syntax |
- | string field; | + | '' |
- | string filter; | + | |
- | string time; | + | ^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ |
- | string target; | + | |field| String | A field for comparison.|1|40| |
- | string movedate; | + | |filter| String | A filter to compare against.|1|256| |
- | field A field for comparison. | + | |time| String | Number of hours, days, months and years from the Write Date.|1|30| |
- | filter A filter to compare against. | + | |target| String | The Target Repository.|1|4| |
- | time Number of hours, days, months and years from the Write Date. | + | |movedate| String | Number of hours, days, months and years from the Write Date to set the Move Date.|1|30| |
- | target The Target Repository. | + | |
- | movedate Number of hours, days, months and years from the Write Date to set the Move Date. | + | ===== Example |
- | Examples | + | Set the [[object: |
- | Example | + | |
- | from Write Date. | + | < |
+ | # | ||
+ | # Extract the WRITEDATE from column 10, length 20. | ||
Extract(WRITEDATE, | Extract(WRITEDATE, | ||
- | TapeTrack Synchronization Suite | + | |
- | 14 | + | #Set the WRITEDATE format. |
SetWriteDateFormat(" | SetWriteDateFormat(" | ||
+ | |||
+ | # Extract the DESCRIPTION from column 11, length 100. | ||
Extract(DESCRIPTION, | Extract(DESCRIPTION, | ||
+ | |||
+ | # 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, | AddRepositoryOnWriteTime(DESCRIPTION, | ||
+ | |||
+ | # If the DESCRIPTION contains YEARLY and the WRITEDATE is within one year | ||
+ | # move the Volume to OFFS and give it a one year MOVEDATE. | ||
AddRepositoryOnWriteTime(DESCRIPTION, | AddRepositoryOnWriteTime(DESCRIPTION, | ||
- | Extract the WRITEDATE from column 10, length 20. | + | </ |
- | Set the WRITEDATE format. | + | |
- | Extract the DESCRIPTION from column 11, length 100. | + | Set the Repository to OFFS, based on Volume-ID if last write time is within |
- | If the DESCRIPTION contains YEARLY and the WRITEDATE | + | |
- | to LIBR and give it a one day MOVEDATE. | + | < |
- | If the DESCRIPTION contains YEARLY and the WRITEDATE is within one year move the Volume | + | AddRepositoryOnWriteTime(VOLUME, |
- | to OFFS and give it a one year MOVEDATE. | + | </ |
+ | |||
+ | |||
+ | |||
+ | ===== See Also ===== | ||
+ | |||
+ | [[engine: | ||
+ | [[cli: | ||
+ | [[cli: | ||
+ | {{tag> import_engine sync_engine}} |
engine/sync/addrepositoryonwritetime.1534265380.txt.gz · Last modified: 2025/01/21 22:07 (external edit)