Skip to content

0.1.8

Choose a tag to compare

@kurobeats kurobeats released this 22 Oct 02:02
· 8 commits to main since this release

Adds remote re-verification, so a file lost on Icedrive's side no longer hides behind a "no changes" run forever.

  • coldsnake scrub - re-lists the folders whose recorded files have gone longest unchecked, compares sizes, and forgets anything missing or resized. The next mirror run uploads it again. It is an oldest-first rotation, not a sample: every folder is verified once per cycle, and each run resumes where the last one stopped (sync-db.sqlite stores the per-folder check time). Costs one listing per folder, and folder ids are cached, so a folder's own listing also teaches us its childrens' ids.
  • Listings are paced. There is no whole-tree listing and the API throttles control calls, so going too fast costs a 90 s stall rather than a retry. Measured with the new tools/throttle_probe.py: 1.39 calls/s held for 10 min and 2.08 calls/s for 3 min with no 429 and flat ~0.42 s latency, while 4.1 and 6.7 calls/s both answered 429 with Retry-After: 90. Client now spaces listings at 1.5 calls/s and slows further for the rest of a run if a 429 still happens. Uploads are unaffected.
  • --folders N / --all / --remote NAME, plus --json/--report, and systemd/coldsnake-scrub.{service,timer} at 03:00 - deliberately before the 05:00 mirror, since the throttle is shared.
  • Hidden folders are not reported as lost. /collection never lists dot-prefixed folders, so .sync or .dtrash read as gone even when they exist; they are counted as unverifiable instead. Hidden files inside visible folders are listed and verified normally.
  • Fixes: name_key now strips leading/trailing spaces, as folder-create does (a local Leading Space is stored as Leading Space, and used to read as a missing folder). The sync db and upload journal now live next to the config in use, so --config no longer writes the default state dir.

Verification: 179 tests green, and a full live sweep - the whole tree - finished with 0 failures and no throttling. Only real drift it found: one small dotfile missing from the remote.