Skip to content

v4.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 22:33

blitcp 4.4.0 — several destinations from one read

blitcp 4.4.0 copies one local source to several destinations at once and reads the source only once: local folders, SSH hosts, SMB shares and S3, Azure Blob or Google Cloud Storage buckets, in any mix. A file on a web server can be downloaded once and written to several local, SSH and SMB destinations.

Each destination is planned, written and verified the way a copy to it alone would be, and one that fails or stops answering is left out while the others finish. The release also adds a full-screen terminal dashboard, ASC MHL manifests that can be checked later without the source, the same features in the desktop app, and a set of security and data-integrity fixes that affect 4.2.15 and earlier.

Highlights

Several destinations, one read of the source

Each destination keeps its own dedup, incremental check, space check and verification.

blitcp ~/photos --dest /mnt/usb1/photos --dest nas@host:/backup/photos --dest s3://bucket/photos

A web source to several destinations

Downloaded once, written to every destination.

blitcp https://host/file.iso --dest ~/iso/ --dest user@host:/iso/ --dest smb://nas/share/iso/

A destination that stops answering is left out

The others finish.

blitcp SRC --dest /mnt/a --dest user@host:/b --stall-timeout 60

Every destination is probed before the copy

One line says what is wrong and how to fix it. The same probe backs creds test and the desktop app's Test button.

blitcp creds test nas

ASC MHL manifests, checked later without the source

blitcp SRC /mnt/archive --manifest
blitcp --verify-manifest /mnt/archive          # --deep reads every file back

--use-sudo with several local destinations

Each destination gets its own dedup database and audit record. A drive that is not mounted is refused before the password.

blitcp --use-sudo /var/lib/data --dest /mnt/a --dest /mnt/b

A full-screen dashboard

Phases, a rate graph and a row per destination.

blitcp SRC --dest /mnt/a --dest /mnt/b --ui dashboard

The desktop app copies to several destinations

"Add destination", saved presets, a row per destination with its verdict, "Verify against manifest", and the manifest and stall-timeout options.

Verification says what it checked

A local check reads the copy back from the device (O_DIRECT on Linux), and Phase 6 shows its progress. A check that compared no content says so instead of "✓ Verified".

Upgrade notes

  • Exit codes. A connection that cannot be made, a host key that cannot be confirmed, a destination that cannot be looked at, or a copy that stops before writing anything now exits 2 (4.2.15: 1). Scripts that test for 1 should be checked. The table is in blitcp --help.
  • Verification output changed. Lines now say how each file was checked. "content not compared" replaces "✓ Verified" where nothing was compared. A local verification takes longer, because it reads from the disk and not from memory.
  • --stall-timeout goes with several destinations; with one it is refused (exit 2).
  • Several destinations take a local source (or an HTTP(S) URL). A saved connection among them is written NAME:folder/. --log-file and --small-files stream take one destination.
  • Same name, different content is replaced at every destination, as in 4.2.15. For camera cards, give each card its own folder: --dest /mnt/shuttle/2026-11-26_CARD01.
  • A bare name that is both a local folder and a saved connection is refused. Write ./name for the folder or name: for the connection.
  • --preserve without mode: a new file gets the usual mode (0666 less the umask). A file already there keeps its own mode.
  • Elevated runs: a source file replaced between the scan and the copy (log rotation, for example) is reported failed instead of copied in part.
  • Script installs (blitcp.py run with Python): blitcp now ships as blitcp.py, blitcp_iface.py and blitcp_cloud.py (plus the optional blitcp_dashboard.py). blitcp --update from 4.2.15 replaces blitcp.py only. Run blitcp --fetch-modules once afterwards, or answer y at the prompt. Until then, unattended runs (cron) exit 2 and copy nothing. pip installs and the binaries are not affected. From 4.4.0 on, --update fetches every file.
  • Legacy names. The fast_copy import shims are removed. FAST_COPY_* environment variables still work, with a warning, and stop working in 5.0. Data under pre-rename names is read and moved, and nothing new is written under them. Going back to 4.2.x re-checks a destination's files once.
  • Azure needs azure-storage-blob 12.10 or later. GCS no longer sends a default project name of its own.
  • Windows: no dedup database is created inside a OneDrive, Dropbox or Google Drive folder unless --dedup-in-sync-folder is given.

Security

4.4.0 fixes a high-severity issue in elevated runs (sudo, --use-sudo, or root) on Linux and macOS: a local user who could write inside the source or the destination could swap a folder for a symlink during the copy. Root then wrote files outside the destination, or read and copied a file that user could not read. All versions up to and including 4.2.15 are affected; unelevated runs are not. Until you upgrade, do not run blitcp elevated on folders that other users can write.

Also fixed in 4.4.0 (all versions up to and including 4.2.15):

  • elevated metadata applied through a path;
  • cloud prefixes matching backups2/ for backups;
  • bucket metadata choosing downloaded file names, owner and mode;
  • remote → remote archives carrying links, folders or setuid modes, with verification that compared nothing;
  • pulls linking files on the source host's word;
  • a dedup database writable by others being trusted (new --strict-cache);
  • blitcp-linked-files.txt written through a planted symlink;
  • root writing into the user's home under macOS sudo;
  • Windows elevated times set through a path;
  • URL passwords and signatures in --log-file and audit records;
  • control characters in file names printed raw.

Two data-integrity faults are fixed too: a file with an identical twin could keep the wrong content while the run reported it up to date (since 2.1.0), and a corrupted cloud object passed verification.

Full changelog

See CHANGELOG.md, section 4.4.0. It replaces the 4.4.0 beta notes and the unreleased 4.3.0 and 4.2.16 sections, whose changes are all in this release.