Files-From and Advanced Selection
Files-from workflows provide deterministic, auditable transfer scope by using explicit path manifests instead of broad wildcard matching. This section helps you combine manifests with additional filters so compliance exports, legal holds, and controlled publish pipelines remain reproducible.
Explicit List Workflow
/tmp/selected-files.txt
logs/2026-01-01/app.log
exports/customers-2026-01.csv
reports/kpi-q1.pdf
rclone copy /srv/data remote-prod:exports --files-from /tmp/selected-files.txt
Combine with Filters
rclone copy /srv/data remote-prod:exports \
--files-from /tmp/selected-files.txt \
--exclude "**/*.tmp" \
--dry-run
When This Pattern Helps
| Situation | Benefit |
|---|---|
| Audit export | Deterministic transfer scope |
| Legal hold package | Repeatable and reviewable list |
| Release artifact copy | Only approved files move |
tip
Generate --files-from lists in CI and archive them with logs so every transfer is traceable.
Common Pitfalls
| Pitfall | Consequence | Fix |
|---|---|---|
| Paths in list do not match source root | Nothing transfers | Build list relative to source path |
| Stale list reused accidentally | Missing new files | Include timestamp/version in list name |
| No dry-run on list updates | Surprises in production | Preview every new manifest |