Transfer Files using Rsync Between Hosted Clarity Instance and Customer File Server For File-Based Integrations
In Clarity file-based integrations such as NextSeq 500/550, there may be a need for file transfer between hosted Clarity LIMS instance and Customer File Server.
Examples of file transfer scenarios:
Transfer of sample sheet from Clarity LIMS instance to Customer File Server
Transfer of sequencing/analysis run data from Customer File Server to Clarity LIMS instance
Rsync-based File Transfer
Rsync can be used as an alternative to VPN for transferring files between Clarity LIMS instance and Customer File Server. Rsync is a command-line tool to copy and synchronize files and directories between two locations and leverages SSH network protocol through port 22.

Prerequisites
Same version of Rsync should be installed on both Clarity LIMS instance and Customer File Server.
Install Rsync by running either commands as root user:
Check the rsync version and protocol version:
SSH (port 22) on the Clarity LIMS instance must be accessible from the Customer's instance where the rsync script will be run.
Requires appropriate permissions:
Read permissions to the source directory and files in the Clarity LIMS instance
Write permissions to the destination directory in the Clarity LIMS instance
Command
Transfer file from customer file server to Clarity LIMS instance.
Transfer file from Clarity LIMS instance to customer file server.
Refer to https://download.samba.org/pub/rsync/rsync.1 for detailed information on rsync
Example
transfer_samplesheet.sh:
transfer_run_data.sh:
Data Clean Up
cleanup_rundata.sh:
Automated Bash Script
Crontab can be used to automatically schedule bash scripts to run at a given set interval.
Example
Run the following command to open and edit the current cron jobs for the current user.
Add the following lines to run the transfer scripts every 15 minutes.
Add the following lines to run the clean up script every Sunday at midnight.
Last updated
Was this helpful?