Bit by Bit Backup

← All AI-created software

This is AI-generated (aka vibe-coded) software. It is specific to my needs and my system and may not work for you or yours. Support is limited, but if you report a bug I'll certainly look into it. The code is provided in the zip file for you to review should you choose.
⬇️ Download Bit By Bit Backup.zip383.6 KBLast Updated: November 27, 2026PythonPowerShell

Bit by Bit Backup records a SHA-256 checksum of every file you choose, then reads the files again later and reports those whose contents changed while their size and modified time didn’t: bit rot.
From two computers’ records it compares their copies, repairs a damaged copy from the good one, and backs one computer’s folders up to the other.

Main window of Bit by Bit Backup after a Verify that found two files with possible bit rot
On this page

Features

  • Choose drives, folders and files in a tree of check boxes; files added later to a ticked folder are included
  • Catalog records new and changed files, reading only those whose size or modified time changed
  • Verify reads every chosen file again and reports possible bit rot and unreadable files
  • Compare scans compares two records, repairs a damaged copy from the good one, and shows what a lost disk would cost
  • Backup makes another computer’s folders match this one’s, never copying a damaged file
  • Projects, each with its own folders, settings and record, and one ignore list per computer
  • Batch mode for a weekly Catalog and Verify, or recording a backup’s changes, from Windows Task Scheduler

Usage

python bit-by-bit-backup.py

It needs Python 3.8 or later with Tkinter (on Debian or Ubuntu, sudo apt install python3-tk) and nothing else; Pillow, optional, shows the window’s icon outside Windows. pythonw starts it without a console. Starting it again brings the open window forward.

Catalog and Verify

  1. Tick what to check in Scan’s tree. A ticked folder includes everything in it, and files added to it later. Untick a folder inside it to leave that out. Filters ▾ shows all, only what is ticked, or what is ignored or unticked inside it. Paste a path above the tree and press Enter to open the tree to it. Right-click a row to copy its path or add it to the ignore list.
  2. Catalog (F5) records each new file’s checksum. A file whose size and modified time haven’t changed isn’t read, so a second Catalog of an unchanged collection takes moments. It reports Modified, Missing, Added and Moved files (a new file with a missing one’s size and time keeps its checksum) and Skipped ones (links, junctions, cloud-only OneDrive files, folders it can’t list). A drive that isn’t connected is never reported missing.
  3. Verify (F6) reads every chosen file again, the ones checked longest ago first, and reports Possible bit rot and Unreadable files. Stop (Esc) ends it, and the next Verify starts with the files not checked yet. Right after a Catalog the files may come from the system’s cache: tick Bypass the cache to read them from the disk.
  4. Results shows what the last run found: Problems in red, Information the rest. Restore a damaged file from a backup (or decide it is fine), select it and click Accept: its checksum is taken again. Right-click a row to open its folder.
    Export CSV saves the results to the working folder, for Excel.

Compare scans and repairing

Compare scans compares two records’ checksums.
Choose the First and Second records (each computer’s in the working folder, or Browse…), then pair folders that hold the same files: D:\Photos with \NAS\Backup\Photos copy. Choose… picks a folder the record holds, with Find. Reached at says where this computer reaches a folder of another computer’s (\PC1\Photos for its D:\Photos); left blank, the app looks for the share itself. Compare lists Damaged copy, Contents differ, Different version, Only in first, Only in second and Not compared. The records are only read.

Repair first from second… and Repair second from first… list the damaged files and wait for your approval.
Each file is checked again first, so an edit made since is never overwritten, and the damaged file is kept as NAME.rotten unless Keep damaged copies is off (Damaged copies… lists them, to delete later). The repaired side’s record takes the good checksum, so the file isn’t reported again.

Protection…, after a comparison of every pair, answers “if this computer’s disk died today, what would I lose?”: each pair’s folder with its files protected (the other copy matches) and each problem (No good copy, Backup copy damaged, Damaged here, Copies differ, No copy, Other version, Not compared yet) with what to do, then each ticked folder no pair covers, in red. Export CSV saves every file that isn’t protected.

Backup

Backup makes folders on the Destination (usually another computer, through its share) match folders on the Source, from the two computers’ records, paired as in Compare scans. Under each record are its last Catalog and Verify, green when minutes ago, orange when hours, red when a day or more: run a Catalog first if they are old.

  • Plan backup compares the records and looks at each file to act on, on the disk. Plan from records trusts the Destination’s record instead and is ready at once. The plan lists Copy, Replace (another version, whichever is newer), Delete (not in the Source), Report (a damaged copy, or contents that differ, with the side that is suspect: nothing is done) and Already done. Repair ▾ repairs the Reports’ damaged copies, the Destination’s from the Source or the Source’s from the Destination, as Compare scans does, without setting the pairs up again.
  • What the ignore list leaves out, or either record unticks, is left alone on both sides.
  • Start backup ▾: All, or Delete only (the copies stay in To do). It asks first, and again when a pair’s deletions are over a tenth of its files.
    Deletions are for good. A Source file with possible bit rot is skipped (checksums are checked as files are copied). Up to 16 copies and 64 deletions run at once, adjusted to the network. A failed file is tried 3 more times; one that stops responding for 2 minutes is tried again at the end; after 5 failures in a row the backup checks the connection for 5 minutes, then pauses until you click Resume.
  • Pause and Stop finish the files in hand. Every action is logged to a CSV file in the working folder. What was done is noted beside the Destination’s record for plans to use; there, its next Catalog or Database ▾ Fold in backup updates records it.

Projects, the ignore list and the database

  • Projects ▾: Load project (Ctrl+O), Save project (Ctrl+S), Save project as (Ctrl+Shift+S), Close project, Manage projects (rename, or delete to the Recycle Bin) and Set projects folder. A project is NAME.bit-by-bit-project.json with its own record, NAME.sqlite, beside it; Save project as copies only what is ticked into it.
  • Ignore list…, beside Filters, lists what no run records or compares: a name (*.tmp), the end of a path (*\AppData\Local\Temp) or a full path (D:\Scratch), with * and ?. It starts with caches, temporary files and Windows’ own (Merge defaults adds any missing). Saving forgets the recorded files it now leaves out.
  • Database ▾: Fold in backup updates (without a Catalog), Forget unticked files, Forget missing files, and Clear (which keeps a copy first).
  • Run priority ▾: Background (the default) keeps the computer usable, Normal, or Full speed, which uses more readers, lists folders several at once and splits comparisons across processes.
  • Activity log lists when each Catalog, Verify, comparison, plan and backup started and ended, scheduled runs too.
    Right-click the Activity, Event or Project heading to show only some values, or the Detail heading to search it; Clear filters shows everything again.
  • Right-click the status bar, or any other message, to copy it whole.
    About (F1) shows the version.

Everything the app writes goes in its working folder (the script’s folder unless --working-folder-path says otherwise), named after the computer so several can share one folder: STUDIO-PC-bit-by-bit-backup.sqlite (the record), its settings, ignore list, logs and reports. A report cell that Excel would read as a formula (a file named =x.txt) starts with '. Checksums are SHA-256, so certutil -hashfile FILE SHA256, Get-FileHash or sha256sum can check any of them.

Batch mode and Task Scheduler

python bit-by-bit-backup.py --batch-command catalog-and-verify

It checks the folders last ticked in the window (or a project’s, with --project-file-path), writes what it found to the console and a log in the working folder, and exits with 0 when the run finished (problems or not), 1 when it couldn’t run, and 2 for a mistake on the command line. For Task Scheduler: a weekly trigger, the program python.exe, the arguments "C:\Path\To\bit-by-bit-backup.py" --batch-command catalog-and-verify, and “Run whether user is logged on or not”. It runs while the window is open, unless the window is checking the same record.

Command line

Every option takes a value (--name VALUE). Given at launch, the settings (the last five) fill in the window’s fields; in batch mode they apply to the run. --help lists the options with their defaults.

  • --working-folder-path FOLDER: the folder for the settings, record, logs and reports (blank: the script’s folder).
  • --project-file-path PROJECT: a project to open or run (blank: this computer’s own record).
  • --projects-folder-path FOLDER: where Load project, Save project as and Manage projects start (window only).
  • --batch-command catalog, verify, catalog-and-verify or fold-backup-updates: run without the window (blank: open the window).
  • --run-priority background, normal or full-speed (blank: the project’s, else the last used, else background).
  • --verify-bypass-cache TRUE or FALSE: Verify reads from the disk, not the system’s cache (default FALSE).
  • --show-results problems, information or all: the results shown (window only; default problems).
  • --show-skipped TRUE or FALSE: show skipped files and folders in the results (window only; default TRUE).
  • --repair-keep-damaged TRUE or FALSE: Repair keeps each damaged file as NAME.rotten (window only; default TRUE).

Keyboard shortcuts

Key Action
F5, F6, Esc Catalog, Verify, Stop (in Scan)
F1 About
Space Tick or untick the selected row in the tree
Shift+F10, menu key The tree row’s menu
Ctrl+C Copy the selected results’ paths
Ctrl+O, Ctrl+S, Ctrl+Shift+S Load project, Save project, Save project as
Enter In the path field, open the tree to it; in a pair’s folder field, find it in the folder picker
Double-click a heading’s right edge Fit that column to its contents

Troubleshooting

  • Possible bit rot on a file you edited: the program kept its modified time. If the change was yours, Accept it.
  • “Already open on this computer”: use the open window; it may belong to another user or be run as administrator.
  • A folder opens on “N items hidden by the filter”: choose Filters ▾ > Show all.
  • “Not found, so not checked”: a chosen drive or share isn’t connected. Connect it and run again.
  • “Access is denied” in the tree: run the app as administrator, or give your account read access to the folder.
  • A mapped drive or a Cryptomator vault is missing: the app runs as administrator (the title and ⛨ Administrator in the status bar say so), and those drives belong to your own account. Start it normally.
  • “Another run is going on” or “Waiting for the Catalog or Verify…”: another window or a scheduled run is using that record. Wait for it.
  • “The Destination folder can’t be reached” or “fill in Reached at”: open the share in File Explorer first (it may ask for the other computer’s password), share the folder if needed, and type the share in Reached at.

Limitations

  • Comparing, repairing and backing up are in the window only.
  • A backup knows only the files the two records hold; a moved or renamed file is copied again and its old copy deleted. Empty folders aren’t copied, and only the modified time and the read-only mark are kept.
  • Verify can’t tell bit rot from a program that writes a file and then sets its modified time back.

Version 1.0.0, updated 2026-11-16. infolific.com: https://infolific.com/technology/software-worth-using/ai-created/system-utilities/bit-by-bit-backup/

⬇️ Download Bit By Bit Backup.zip383.6 KBLast Updated: November 27, 2026PythonPowerShell

← All AI-created software