engine:sync:addrepositoryonwritetime
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| engine:sync:addrepositoryonwritetime [2018/10/19 00:08] – [Example] Scott Cunliffe | 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 tip>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, | ||
| - | string // | ||
| - | string // | ||
| - | string //time;//\\ | ||
| - | string // | ||
| - | string // | ||
| - | |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 ==== | + | <note important> |
| - | Set the Repository | + | [[engine: |
| - | <sxh> | + | ===== Syntax ===== |
| + | '' | ||
| + | |||
| + | ^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ | ||
| + | |field| String | A field for comparison.|1|40| | ||
| + | |filter| String | A filter to compare against.|1|256| | ||
| + | |time| String | Number of hours, days, months and years from the Write Date.|1|30| | ||
| + | |target| String | The Target Repository.|1|4| | ||
| + | |movedate| String | Number of hours, days, months and years from the Write Date to set the Move Date.|1|30| | ||
| + | |||
| + | ===== Example ===== | ||
| + | Set the [[object: | ||
| + | |||
| + | <code> | ||
| # | # | ||
| # Extract the WRITEDATE from column 10, length 20. | # Extract the WRITEDATE from column 10, length 20. | ||
| Line 36: | Line 34: | ||
| 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. | + | # 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. | + | # 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, | ||
| - | </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. | ||
| + | |||
| + | < | ||
| + | AddRepositoryOnWriteTime(VOLUME, | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== See Also ===== | ||
| + | |||
| + | [[engine: | ||
| + | [[cli: | ||
| + | [[cli: | ||
| + | {{tag> import_engine sync_engine}} | ||
engine/sync/addrepositoryonwritetime.1539907692.txt.gz · Last modified: 2025/01/21 22:07 (external edit)
