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 if you have added an SSH key to your account.
Usage
horizon job:scp [options] <job> <source> <destination> [<direction>]
Examples
# Download outputs_original directory from cluster to current directory
horizon job:scp 9bff2977-4051-43fd-93d7-d03867bb5cc5 /mnt/fs/files/path/to/case/outputs_original .
# Upload files in current directory to Case Directory on cluster
horizon job:scp 9bff2977-4051-43fd-93d7-d03867bb5cc5 . /mnt/fs/files/path/to/case/ upload
Arguments
<job>The ID of the running job. To get the job ID, run job:list or navigate to Jobs > Job Details in the web interface.
<source>The directory from which files will be copied. All files in this directory will be copied to the destination.
<destination>The directory to which files will be copied.
<direction>The direction in which files will be copied.
download= Copy files from cluster to local file system (default),upload= Copy files from local file system to cluster.
Options
This command supports the general CLI options.