Skip to main content

Interactive directory/file transfer with SHA-256 checksum verification over SSH

Project description

verisync — Interactive Directory Transfer with Checksum Verification

PyPI version Python Versions License: MIT

A general-purpose interactive file/directory transfer utility with end-to-end SHA-256 checksum verification over SSH.
Transfer files or directories to a remote server via rsync or tar.gz, then automatically verify every file's integrity — all from a single command.


Table of Contents


Features

  • 📁 File and directory — transfer a single file or an entire directory tree
  • End-to-end SHA-256 verification — a checksum manifest is generated locally and re-verified remotely after transfer
  • ♻️ rsync mode (default) — incremental, resumable, and bandwidth-efficient
  • 🗜️ Zip mode (--zip) — packs source into a .tar.gz, uploads, and auto-extracts on the remote
  • 🔌 SSH multiplexing — a single SSH control socket is reused across all remote operations, including 2FA/password auth flows
  • 📏 Space checks — remote free disk space is measured before transfer; warns if source exceeds 100 GiB
  • 🖥️ Interactive + CLI — all parameters can be supplied as CLI flags or entered interactively at runtime
  • 🕒 Elapsed time — reports total transfer and verification duration

Requirements

Requirement Notes
Bash >= 4.0 Required for string manipulations and set -euo pipefail
rsync Used for incremental file transfer in default mode
ssh SSH client with multiplexing (ControlMaster) support
sha256sum Standard coreutils tool, available on all Linux/macOS systems
bc Used for human-readable size arithmetic
tar Only required when using --zip mode

Note: verisync only needs to be installed on the source machine. The remote side requires only sha256sum and standard POSIX shell tools — no remote installation needed.


Installation

Via pip (recommended)

pip install verisync

This places the verisync command on your PATH.

Via pipx (isolated)

pipx install verisync

Manual install

git clone https://github.com/whats2000/verisync.git
cd verisync
bash verisync.sh --help

Usage

verisync [OPTIONS]

Arguments

Flag Description
-s, --src <path> Local source file or directory to transfer
-u, --user <user> Remote SSH username
-H, --host <host> Remote SSH hostname or IP address
-d, --dest <path> Remote destination directory
--zip Pack source into tar.gz before transferring
-h, --help Show usage and exit

Any flag not supplied on the command line will be prompted interactively.

Examples

Interactive mode (prompts for all parameters):

verisync

Fully specified via CLI:

verisync --src /data/project --user alice --host hpc.example.com --dest /scratch/alice/

Use zip mode for a single compressed upload:

verisync -s /data/project -u alice -H hpc.example.com -d /scratch/alice/ --zip

Transfer Steps

Step Description
1 Collect source path, remote user, host, and destination
2 Measure local size; warn if > 100 GiB
3 Test SSH connectivity; check remote free disk space
4 Generate SHA-256 checksum manifest for every file in the source
5 Transfer files + manifest via rsync (or tar.gz); verify checksums remotely

Modes: rsync vs zip

Feature rsync (default) --zip mode
Resumable? Yes No
Incremental? Yes No
Single archive? No Yes
Compression -z (inline) gzip (pre-compressed)
Remote extraction Not needed Auto-extracted via tar

Contributing

Bug reports and pull requests are welcome at github.com/whats2000/verisync.


License

MIT — see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

verisync-1.0.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

verisync-1.0.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file verisync-1.0.0.tar.gz.

File metadata

  • Download URL: verisync-1.0.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for verisync-1.0.0.tar.gz
Algorithm Hash digest
SHA256 04e85c7a2b3df1e5a4e2d1198b42d533c7ad253579e104b909aa4fee37b1026f
MD5 901e772db3c11529b1580a95dba561ef
BLAKE2b-256 2ab3128977ccd36387e5b72ea3040780db9d5b3cca6a391328f9d569162d8862

See more details on using hashes here.

Provenance

The following attestation bundles were made for verisync-1.0.0.tar.gz:

Publisher: publish.yml on whats2000/verisync

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file verisync-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: verisync-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for verisync-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0bc7269cd175f7f7ca9ce3540e62eebb800898a0ead3ff43f3d8bfdca6fc471
MD5 421976e9eb366c62edea91b32aff2bbf
BLAKE2b-256 05ff273910f790077849d752d83146cd16f7842237f6b2db184f499bf933491a

See more details on using hashes here.

Provenance

The following attestation bundles were made for verisync-1.0.0-py3-none-any.whl:

Publisher: publish.yml on whats2000/verisync

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page