← 返回
未分类

FastCP

Multi-target parallel file copy CLI. Reads source once into memory, writes to multiple USB drives concurrently. | 多目标并行复制工具,源文件只读一次,同时写入多个U盘。
多目标并行复制工具,源文件一次读取,同时写入多个U盘。
dongsheng123132 dongsheng123132 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 399
下载
💾 0
安装
1
版本
#latest

概述

FastCP - 多目标并行复制 / Multi-target Parallel Copy

将源目录一次性读入内存,并行复制到多个目标(U盘)。专为 AI 工具自动化调用设计。

Read source directory into memory once, copy to multiple targets (USB drives) in parallel. Designed for AI tool automation.

使用场景 / When to use

  • 同一份文件同时复制到多个U盘 / Copy same files to multiple USB drives
  • 批量部署文件到多个目标目录 / Batch deploy to multiple destinations
  • 需要复制后校验完整性 / Copy with integrity verification

安装 / Install

从 GitHub Releases 下载或源码编译:

go install github.com/dongsheng123132/fastcp@latest

用法 / Usage

# 复制到多个U盘 / Copy to multiple USB drives
fastcp <source_dir> <target1> <target2> [target3] ...

# Windows 示例
fastcp.exe D:\源文件夹 E:\ F:\ G:\ H:\

# Linux/macOS 示例
fastcp /path/to/source /media/usb1 /media/usb2 /media/usb3

# 带校验 / With verification (xxhash)
fastcp --verify <source> <target1> <target2>

# 增量复制 / Incremental (skip unchanged)
fastcp --incremental <source> <target1>

# 控制并发数 / Control parallelism (default 3)
fastcp -c 2 <source> <target1> <target2> <target3>

# 预览模式 / Preview without copying
fastcp --dry-run <source> <target1> <target2>

参数 / Flags

  • -c, --concurrency N: 同时写入目标数 / simultaneous target writes (default 3)
  • -b, --buffer-size: 写缓冲区 / write buffer (default 4M)
  • --verify: xxhash 校验 / integrity check after copy
  • --incremental: 跳过未变更文件 / skip unchanged files
  • --dry-run: 预览不复制 / preview only
  • --preload-all: 强制全量预加载 / force all files into memory

典型流程 / Typical workflow

  1. 确认U盘挂载盘符 / Identify mounted drives
  2. 执行: fastcp --verify D:\source E:\ F:\ G:\
  3. 检查校验结果 / Check verification output

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 04:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 331,069
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,226
it-ops-security

Mac AI Optimizer

dongsheng123132
Optimize macOS for AI workloads (OpenClaw, Docker, Ollama). Turn an 8GB Mac into a lean AI server node with near-16GB pe
★ 0 📥 882