blitcp — High-Speed File Copier with Deduplication & SSH Streaming
blitcp is the new name of fast-copy (renamed in v4.0.0 — "blit" as in bit-block transfer, which is what the block-order engine does). Existing installs upgrade in place via
--update; on-disk state under the old names is still read (and nothing new is written under them).FAST_COPY_*environment variables still work with a deprecation warning and stop working in 5.0 — useBLITCP_*. See the CHANGELOG.
A fast, cross-platform tool for copying files and directories at maximum sequential disk speed — built for USB drives, external HDDs, NAS backups and large SSH transfers. CLI + desktop GUI, in 7 languages.
Why blitcp?
| Problem | Solution |
|---|---|
cp -r is slow on HDDs due to random seeks |
Reads files in physical disk order for sequential throughput |
| Thousands of small files copy painfully slow | Bundles small files into tar stream batches |
| Duplicate files waste space and time | Content-aware dedup — copies once, hard-links or reflinks the rest |
| No space check until copy fails mid-way | Pre-flight space check before any data is written |
| Copies that quietly fail half-way | Post-copy verification — every file written is checked against the hash of the source taken as it was read: read back on a local disk or an SMB share, hashed on the host over SSH, against the store's checksum on S3/GCS (see Verification). Either way the run ends on an exit code a script can act on |
| Copying between two servers is painful | Remote-to-remote relay via SSH tar pipe streaming |
| SFTP is disabled, or the box has nothing installed on it | Raw SSH tar streaming using the remote's own tar — duplicates hard-linked on the far side rather than sent twice |
Quickstart
pip install blitcp # CLI — zero dependencies, Python 3.8+
blitcp /data /media/usb/data # local → local
blitcp /data user@host:/backup # local → remote over SSH
blitcp user@host:/data s3://bucket/backup # any combination of local/SSH/cloud
blitcp --help # everything else
Optional: pip install paramiko for SSH, blitcp[cloud] for S3/Azure/GCS/SMB,
xxhash for ~10× faster hashing. Prebuilt CLI and GUI binaries for Linux,
macOS and Windows are on the
Releases page — no Python needed.
Key features
- Block-order reads — files are read in physical disk order (
FIEMAP/fcntl/FSCTL), eliminating random seeks on HDDs - Reflink copies on btrfs / XFS / APFS / bcachefs — metadata-only CoW clones make a 10 GB same-volume copy complete in milliseconds
- Content-aware deduplication — xxHash-128/SHA-256; each unique file is copied once, duplicates become hard links or reflinks, with a cross-run SQLite cache
- SSH transfers without SFTP — tar batches over raw SSH channels, local↔remote and remote↔remote relay (streamed through your machine, never stored)
- Cloud object storage —
s3://,az://,gs://as source or destination, with encrypted saved connections and a built-in passphrase generator - SMB / UNC shares — copy straight to
\\server\sharewith saved credentials - Several destinations from one read —
--dest(repeatable) or--dests-file, to any mix of local, SSH, SMB and S3/Azure/GCS; an optional ASC MHL manifest per destination, checkable later without the source - Full-screen dashboard —
--ui dashboard, or[ui] modein~/.config/blitcp/config.toml - Sparse-file awareness — VM images copied via
SEEK_DATA/SEEK_HOLE; holes never hit the wire - Faithful metadata — permissions, timestamps, owner, xattrs and POSIX ACLs / NTFS DACLs+ADS, matching
cp -a - Safety rails — pre-flight space check, post-copy verification with proper exit codes, honest dedup accounting on FAT32/exFAT
--use-sudoself-elevation with a tamper-resistant (chattr +i) JSONL audit log- Interface in 7 languages — English, Ελληνικά, 中文, Deutsch, Italiano, Español, 日本語
- Multiple sources, globs, single-file renames —
cp -r-style ergonomics across every mode - Works on Linux, macOS, Windows (long paths included) · Synology/busybox-friendly · self-updating
Several destinations
--dest (repeatable) writes one local source to several destinations from
one read — local folders, user@host:/path, smb://, s3://, az://,
gs://, or saved connections as NAME:folder/; --dests-file FILE lists
them one per line. Each destination is planned, verified and summarised as a
copy to it alone; one that fails, or makes no progress for --stall-timeout
seconds (default 120), is left out and the others finish.
blitcp /data --dest /mnt/usb1 --dest backup@nas.local:/backup --dest s3://my-bucket/data
- Pre-flight — before anything is written, each destination is probed
(a hidden file written and removed; a store listed), space is checked for
destinations on one filesystem together, and what cannot be done is
refused with exit 2.
blitcp creds test NAMEruns the same probe on a saved connection. - A web source —
blitcp https://example.com/file.iso --dest /mnt/a/ --dest backup@nas.local:/isos/downloads once and writes to every local, SSH and SMB destination. - Manifests —
--manifestwrites an ASC MHL generation (ascmhl/,blitcp.xxh128) at each verified destination;--verify-manifest DESTchecks it later without the source. --use-sudotakes several local folders; SSH, SMB and cloud destinations under--use-sudoare refused before the password.--ui dashboardshows the run full screen (q stops safely, v the details).
Details: DOCUMENTATION.md.
Second runs
- Without
--manifest(the default), a local destination is decided by blitcp's records: every file a run writes and verifies (or compares in full) is recorded on both sides — size, modification time, change time, hash. A re-run skips a file whose records still hold without reading it, and reads and compares every other file of the same size. Where the filesystem keeps a real change time (ext4, XFS, Btrfs, ZFS, F2FS, APFS, …) a file rewritten with its modification time put back is caught. On FAT, exFAT, NFS, SMB and FUSE, size and modification time decide (as in rsync's quick check): there such a change is caught only with--no-cache, which reads and compares every file. On a USB drive formatted exFAT/FAT, run with--no-cachenow and then (or after editing files on the drive elsewhere) to compare every file in full. - On SSH and SMB destinations, without
--manifest, blitcp's signed hash cache there decides for each file whose size and modification time there are still the ones the cache recorded; any other file of the same size is hashed on the host (SSH) or written again (SMB). A destination file changed outside blitcp at the same size with its modification time put back is not detected on a re-run unless you pass--no-cache. - With
--manifest, each destination also gets a new ASC MHL generation (ascmhl/) andblitcp.xxh128, written from the hashes the run already has; what is skipped is decided as above.blitcp --verify-manifest DESTchecks that destination later against it, without the source.
Verification
Every destination is checked after the copy, for one destination or several
(unless --no-verify) — how much depends on where it is. Links and clones the
run makes are checked by existence and size:
| Destination | What is checked |
|---|---|
| Local folder | every file read back from the disk and hashed |
| SMB share | every file by existence and size (the share keeps no checksum to compare) |
| SSH | every file by existence and size, and a random sample of up to 20 hashed on the remote host |
| S3 / GCS | every object against the checksum the store computed |
| Azure | a blob sent in one request against Azure's MD5; a blob sent in blocks (over 64 MiB, the Azure SDK's default single-put size) by size only — after a --manifest run, --verify-manifest DEST --deep downloads and hashes it |
The summary says how each file was checked, and says "Verified" only where content was compared. Details: DOCUMENTATION.md.
Measured, not marketed
| Scenario | Result |
|---|---|
| Linux, 12,347 small files, cold HDD → SSD | 2.5× faster than cp -ar (5.9s vs 15.0s, dedup+verify ON) |
| Windows, 9,578 files off USB 2.0 | 1.3× faster than robocopy (2m28s vs 3m16s /MT:1, verification ON) |
| SSH, 1,098 files / 1.1 GB over LAN | Level with scp -r (1m50.4s vs 1m55.4s, verify+dedup ON) via tar streaming — single run |
Full methodology and more scenarios: blitcp.dev/benchmarks · DOCUMENTATION.md
The SSH row is one run, not a median of three, and to a Windows drive through
WSL scp was ahead. Over SSH blitcp is not sold on speed: what it adds is
verification, dedup and a resumable second run.
Both runs, with the caveats.
Desktop GUI
pip install "blitcp[gui]" && blitcp-gui
Transfers, saved connections, file browser, history and settings — same engine, point and click. More screenshots →
Documentation
- blitcp.dev/docs — guides: local copies, SSH transfers, cloud storage, sparse files, everyday options
- DOCUMENTATION.md — the full manual: every option, how it works internally, examples, benchmarks
- CHANGELOG.md — release history
- 简体中文 — README.zh-CN.md · DOCUMENTATION.zh-CN.md · glossary.zh-CN.md
Support
blitcp is free and Apache-2.0 licensed, and stays that way. Donations via Ko-fi or Liberapay go towards the Windows code signing certificate, hosting for blitcp.dev, and the hardware the published benchmarks run on. Starring the repository or filing a good bug report helps just as much.
License
Apache License 2.0 — see LICENSE. The --index-existing /
--dedup-existing features were contributed by
York-Simon Johannsen (#3).
Metadata
Release files for blitcp 4.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blitcp-4.4.0.tar.gz | 1.3 MB | Without provenance | Details for blitcp-4.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blitcp-4.4.0-py3-none-any.whl | Python 3 | none | any | Details for blitcp-4.4.0-py3-none-any.whl |
Total release size: 2.6 MB
Release files / blitcp-4.4.0.tar.gz
| Download URL | blitcp-4.4.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdeb9c89550de57b81004fc9e2cc2505db0cbe4ce1da4f1dab43253dfa0f8b76
|
|
BLAKE2b-256 checksum How to use checksums |
cc90f73242cbecf62d7ff7adfea814864a10df913f97baab3b3451766eb77106
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.10
|
Release files / blitcp-4.4.0-py3-none-any.whl
| Download URL | blitcp-4.4.0-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a7375c5224a18ef3aaa404f47f6f0b3b243d7aaa8c0cd9f6e64c511f2503b90
|
|
BLAKE2b-256 checksum How to use checksums |
a13488db82e3234ec016b4f5c2c04d6e44bcf79d84b9cd2461d8956497f04692
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.10
|
Security for blitcp 4.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.