Transfer Files To or From a Workstation¶
Your workstation scratch storage is located in /mnt/scratch/case. There are several ways to transfer files to and from scratch storage, as explained below.
After you complete your work, any files in scratch storage that you want to keep must be uploaded to a space or copied to another device before the workstation is deleted. This will happen when a user deletes the workstation or when the workstation reaches its time limit.
Upload/Download Files To/From Space Using CLI
The CONVERGE Horizon CLI is installed on all workstations by default. You can upload/download files to/from any of your team’s spaces using the space:upload and space:download commands. Open a terminal on the workstation to run these commands (examples are shown below).
# Download "output" directory from My Space to scratch storage
horizon space:download "My Space" "/path/to/output/" "/mnt/scratch/case"
# Upload .png files from scratch storage to "images" directory in My Space
horizon space:upload --include=*.png "My Space" "/path/to/images/" "/mnt/scratch/case"
Upload/Download Files To/From Space Using Browser
You can open a browser within the virtual desktop and log in to the CONVERGE Horizon web interface to upload/download files to/from your team’s spaces. The Firefox browser is installed on all workstations by default.
Copy Files To/From Another Device Using SCP/rsync
Prerequisites
Before using this option, you must add an SSH key to your account.
You can copy files directly to/from another device using the secure copy protocol (SCP) or the remote sync utility (rsync). The other device could be your own computer, a CONVERGE Horizon file system, or any machine to which you have access, provided that SCP or rsync is installed. SCP is installed by default on most systems. rsync is included by default in most Linux distributions.
Example SCP and rsync commands are shown below (these examples assume that you are logged in to the other device). Remember to replace x.x.x.x with the workstation IP address, which you can find in the workstation URL.
# Recursively copy files from local Case Directory to workstation scratch storage
scp -r /local/path/to/case [email protected]:/mnt/scratch/case
# Same as above, but using rsync instead
rsync -r --progress /local/path/to/case [email protected]:/mnt/scratch/case
# Recursively copy files from workstation scratch storage to local Downloads directory
scp -r [email protected]:/mnt/scratch/case /local/path/to/Downloads
# Same as above, but using rsync instead
rsync -r --progress [email protected]:/mnt/scratch/case /local/path/to/Downloads