Documentation

Quick Start & Usage Reference

Everything you need to configure and run iris-sscp (formerly go-sscp, iris2iris) for InterSystems IRIS SuperServer file transfers using Caretdev's caretdev/go-irisnative Go library.

1. Zero Custom Class Loading Required

iris-sscp requires no IPM installation and no custom ObjectScript classes on either the source or target InterSystems IRIS instances.

It connects over IRIS SuperServer (port 1972) using Caretdev's caretdev/go-irisnative Go driver to execute RPC calls against built-in IRIS system classes (%File and %Stream.FileBinary) that exist out of the box on every IRIS installation.


2. Execution Modes

Direct Out-of-Band Copy (Default / Recommended)

Streams files directly between IRIS SuperServer instances or from a local container file to a target IRIS filesystem using stock %Stream.FileBinary system calls:

export SSCP_SOURCE="_SYSTEM:SYS@source-host:1972@USER:/data/source.dat"
export SSCP_TARGET="_SYSTEM:SYS@target-host:1972@USER:/data/destination.dat"
export SSCP_MODE="direct"

# Single-shot execution
iris-sscp --once

Initiator RPC Mode

Connects to a source IRIS instance over SuperServer and triggers a remote RPC copy operation:

export SSCP_SOURCE="_SYSTEM:SYS@source-host:1972@%SYS:/data/source.dat"
export SSCP_TARGET="_SYSTEM:SYS@target-host:1972@SDOH:/data/destination.dat"
export SSCP_MODE="initiator"

iris-sscp --once

3. Environment Variables Reference

All configuration parameters can be supplied via standard environment variables:

VariableDescriptionDefaultExample
SSCP_SOURCEFull source connection string or local file path_SYSTEM:SYS@iris1:1972@USER:/iris1/TESTA.txt_SYSTEM:SYS@source-host:1972@USER:/data/file.dat
SSCP_TARGETFull target connection string and destination path_SYSTEM:SYS@iris2:1972@USER:/iris2/copyTESTA.txt_SYSTEM:SYS@target-host:1972@USER:/data/file.dat
SSCP_INTERVALRepeat ticker interval (5s, 1m, 0, once)5s10s or once
SSCP_MODECopy execution mode (direct, initiator)directdirect or initiator
SSCP_SOURCE_HOSTSource IRIS host / IP override""iris-source.prod
SSCP_SOURCE_PORTSource SuperServer port override19721972
SSCP_SOURCE_USERSource connection username""_SYSTEM
SSCP_SOURCE_PASSSource connection password""SYS
SSCP_SOURCE_NAMESPACESource IRIS namespace""USER
SSCP_SOURCE_FILESource file path""/data/export.dat
SSCP_TARGET_HOSTTarget IRIS host / IP override""iris-target.prod
SSCP_TARGET_PORTTarget SuperServer port override19721972
SSCP_TARGET_USERTarget connection username""_SYSTEM
SSCP_TARGET_PASSTarget connection password""SYS
SSCP_TARGET_NAMESPACETarget IRIS namespace""SDOH
SSCP_TARGET_FILETarget destination file path""/data/import.dat