Skip to content
  • My old backup system updated zip files annually to create full backups. Large files that did not change and need differential backups were separated into Static folders for both my business and personally, in d:\FSS\Static\ and d:\Ta\Static\.
  • These static folders themselves contain subfolders.
  • This screenshot C:\tmp\ScreenShots\TOTALCMD64_7asP1oK74i.png shows how the files and folders are in a Static ZIP backup.
  • automate the updating of all of the files in the business and personal static folders into the corresponding zip backups
    • d:\FSS\Static\ -> d:\bak\FSS_BkUp\FSS_Static.zip\Static\
    • d:\Ta\Static\ -> d:\bak\Ta_BkUp\Static\
  • Perhaps this can be done with a simple 7-Zip CLI command. If needed, create a simple python script.
  • name the utility update-static-zips[.py]
  • We will then document it as a side utility of in my_backup system util. See d:\FSS\Software\Utils\PythonUtils\my_backup\README.md

  • Reviewed screenshot — FSS uses one zip (FSS_Static.zip) with Static\ as root; Ta uses per-subfolder zips inside Ta_BkUp\Static\
  • Created update-static-zips.py--dry-run, --fss-only, --ta-only flags; no config.yaml dependency
  • Created run_update_static_zips.sh — WSL cron wrapper, logs to logs/update_static_zips.log
  • Updated README.md — “Update Static ZIPs” section + project structure
  • Dry-run tested — all commands printed correctly, exit 0
  • Live run tested — Ta zips (Audios/Images/Info/Photos/Videos) all scanned successfully, no changes needed (files current as of Jan 2025)
  • Pre-existing issue found in FSS_Static.zip — see below

The script itself works correctly — it detects, reports, and exits with the right codes. The failures are all pre-existing conditions in the archive files created by the old backup system.

ArchiveResultIssue
FSS_Static.zipFAILHeaders Error + duplicate filename in archive
Ta/Audios.zipFAILHeaders Error + “Not implemented” (old zip format 7-zip 25 can’t update)
Ta/Images.zipOKClean, 0 changes
Ta/Info.zipOKClean, 0 changes
Ta/Photos.zipFAILHeaders Error + Not enough disk space (~85GB source needs temp space)
Ta/Videos.zipFAILNot enough disk space (~114GB source needs temp space)

Two root causes:

  1. Archive corruption / old format — FSS_Static.zip, Audios.zip: archives were created by the old backup system in a format 7-zip 25.01 can’t update. Must be deleted and recreated fresh with 7z a.

  2. Insufficient disk space — Photos.zip (85GB) and Videos.zip (114GB): 7-zip’s update mode writes an entire new archive alongside the old one before replacing it. D: doesn’t have enough free space for this. Options:

    • Free enough space on D: first (needs ~200GB free to update both)
    • Or recreate these on an external drive / different target path

The 2 working cases (Images, Info) confirm the script logic is correct for clean, up-to-date archives where nothing has changed.

Root cause identified: all large zips were created with pkzipc.exe (PKZip CLI). 7-Zip 25.01 can read/browse them but cannot update them (format incompatibility). Solution: recreate fresh using 7-Zip.

Script updated with --recreate mode:

  • Creates {name}_new.zip alongside old archive
  • Verifies with 7z t before replacing
  • Deletes old, renames new — no window without a backup
  • Old --update mode preserved for future incremental runs (now that archives are 7-Zip native)

Recreate launched 2026-03-13 17:50 — running detached, logs to logs\recreate_static_zips.log:

  • FSS_Static_new.zip: in progress at 17:54 (4GB of ~28GB)
  • Ta archives: queued after FSS completes
  • Estimated total time: 4-5 hours

Recreate Results — 2026-03-13 17:50–21:45

Section titled “Recreate Results — 2026-03-13 17:50–21:45”

All 6 archives recreated, verified, and replaced successfully:

ArchiveOld sizeNew sizeNote
FSS_Static.zip25GB24GBClean
Audios.zip61GB36GBPKZip was bloated; 7-Zip ~40% smaller
Images.zip83MB83MBNo change
Info.zip364MB352MBSlight improvement
Photos.zip73GB83GB+10GB = 2,363 new 2026 photos included
Videos.zip112GB113GBClean
  • Verify Photos.zip contains 2026 photos (browse in Total Commander)
  • For future updates: uv run python update-static-zips.py (default --update mode now works — all archives are 7-Zip native)