Choosing a Transfer Method
Last updated on 2026-08-27 | Edit this page
Overview
Questions
- How do I choose the right transfer method for different scenarios?
- What are the tradeoffs between OnDemand, FileZilla, and rsync?
Objectives
After completing this episode, participants will be able to: - Select the appropriate transfer method based on file size and frequency - Apply the decision matrix to real research scenarios - Combine methods effectively in a workflow
Decision Matrix
File Size:
Small (< 50 MB) --> OnDemand
Medium (50 MB - 1 GB) --> FileZilla or rsync
Large (> 1 GB) --> rsync
Frequency:
One-time --> simplest method
Occasional (weekly) --> rsync or FileZilla
Frequent / automated --> rsync scripts
Interface:
Graphical preferred --> OnDemand or FileZilla
Command-line preferred --> rsync
Method Comparison
| Method | Speed | GUI | Resume | Batch | Best For |
|---|---|---|---|---|---|
| OnDemand | Slow | Yes | No | No | Small files, browsing |
| FileZilla | Medium | Yes | Yes | No | Interactive transfers |
| rsync | Fast | No | Yes | Yes | Large files, automation |
Scenario Examples
Upload 500 MB dataset at project start:
Method: rsync. Time: ~1 minute.
Interactive file management during development: Use FileZilla for visual feedback and easy drag-and-drop of multiple small files.
Download 2 GB results file:
BASH
rsync -avhP <myusername>@sagehen.hpc.pomona.edu:/rhome/<myusername>/results/output.h5 ~/Downloads/
Method: rsync. Time: 2-3 minutes.
Sync code between laptop and Sagehen HPC daily:
BASH
# Push changes
rsync -avhPr --exclude='.git' ~/myproject/ <myusername>@sagehen.hpc.pomona.edu:/rhome/<myusername>/myproject/
# Pull changes
rsync -avhPr <myusername>@sagehen.hpc.pomona.edu:/rhome/<myusername>/myproject/ ~/myproject/
Weekly backup of entire project:
Combining Methods in a Workflow
A typical research workflow might use all three methods:
- OnDemand: Browse files, check results, quick edits
- FileZilla: Interactive upload of new datasets during development
- rsync: Large data transfers, automated backups, job script staging
Choose based on what you are doing at each stage, not one method for everything.
Challenge: Method Selection
For each scenario, choose the best transfer method and explain why:
- Upload a 10 MB configuration file to Sagehen
- Transfer a 50 GB genomics dataset to Sagehen
- Download 200 analysis result files (1-5 MB each) to your laptop
- Set up a weekly automated backup of your home directory
- OnDemand – Small file, one-time, easiest method
-
rsync – Very large file, needs resume capability:
rsync -avhP dataset.tar.gz user@sagehen:/rhome/<myusername>/ -
rsync – Many files, batch operation:
rsync -avhPr user@sagehen:/rhome/<myusername>/results/ ~/results/ - rsync script via cron – Automated, recurring, needs to handle many files efficiently
- Choose transfer method based on file size, frequency, and interface preference
- OnDemand for small files, FileZilla for interactive work, rsync for everything else
- rsync is the only method suitable for automation and very large files
- Compressing data before transfer saves time regardless of method