Skip to main content

lium rsync

Synchronize directories to pods.

lium rsync POD LOCAL_DIR [REMOTE_PATH] [OPTIONS]

Arguments​

  • POD — Pod name, index, list, or all.
  • LOCAL_DIR — Local directory to sync.
  • REMOTE_PATH — Destination path on the pod.

Options​

FlagEffect
--deleteDelete files on the pod that don't exist locally
--exclude PATTERNExclude files matching pattern
--dry-runShow what would be synced without changing anything

Examples​

lium rsync my-pod ./project                       # Sync project
lium rsync 1 ./data /root/datasets/ # Specific path
lium rsync all ./configs --delete # Mirror exactly
lium rsync my-pod ./code --exclude "*.pyc" # Exclude files
lium rsync my-pod ./project --dry-run # Preview

See also​