TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


engine:sync:setvolumescript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
engine:sync:setvolumescript [2018/08/14 18:56] – created dcummingengine:sync:setvolumescript [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 1: Line 1:
-setvolumescript+====== SetVolumeScript ======
  
-==== SetVolumeScript ==== 
 Set a script to be called for each of the updated volumes. Set a script to be called for each of the updated volumes.
  
-==== Phase ====+===== Phase ====
 This instruction is used by the TapeTrack Synchronization Engine. This instruction is used by the TapeTrack Synchronization Engine.
  
-==== Syntax ==== +===== Syntax =====
-**SetVolumeScript**//(script);//+
  
-//string script;//+''SetVolumeScript(script);''
  
-|script| The script to be called for each Volume.|+^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ 
 +|script| String | The script to be called for each Volume.| 1 | 1024 |
  
 <note tip>Before each script is called the engine will resolve the variables $CUSTOMER-ID, <note tip>Before each script is called the engine will resolve the variables $CUSTOMER-ID,
 $MEDIA-ID, $VOLUME-ID.</note> $MEDIA-ID, $VOLUME-ID.</note>
  
-==== Example ==== +===== Example ====
-**SetVolumeScript: Eject all tapes that are being moved.** + 
-|SetVolumeScript("eject $VOLUME-ID");| Eject all tapes that are being moved.|+Eject all tapes that are being moved. 
 + 
 +<code> 
 +SetVolumeScript("eject $VOLUME-ID"); 
 +</code> 
 + 
 +{{tag> import_engine sync_engine}}
engine/sync/setvolumescript.1534273001.txt.gz · Last modified: 2025/01/21 22:07 (external edit)