job:scp#
Copy files to or from the head node of the cluster where a job is currently running. By default, files are copied from the cluster to your local file system.
This command works only on Linux and macOS and only if you have added an SSH key to your account.
Hint
As an alternative to running this command, you can run SCP directly from the command line on any operating system.
Usage
horizon job:scp [options]
Examples
# Download outputs_original directory from the cluster to the current directory
horizon job:scp --job="f9jfgvcd77py" \
--source="/mnt/fs/files/cases/case1/outputs_original" --destination="."
# Upload files in the current directory to the case directory on the cluster
horizon job:scp --job="f9jfgvcd77py" --source="." \
--destination="/mnt/fs/files/cases/case1" --direction="upload"
Options
This command supports the general CLI options in addition to those listed below.
--job=JOB_ID, -j JOB_IDThe ID of the running job. To get the job ID, run job:list or navigate to Jobs > Job Details in the web interface. If you omit this option, you will be prompted to select a running job.
--source=SOURCE, -s SOURCEThe directory containing the files to copy. The entire directory will be copied to the destination.
--destination=DESTINATION, -d DESTINATIONThe directory to which files will be copied.
--direction=DIRECTIONThe direction in which files will be copied.
download= Copy files from the cluster to your local file system (default),upload= Copy files from your local file system to the cluster.