Skip to content

trewd 0.15.0

Choose a tag to compare

@waynehoover waynehoover released this 23 Oct 21:48
· 25 commits to main since this release

Protocol 5, which lets a device restore a folder, or every note, to an earlier time. Every device keeps syncing through the upgrade: plugins and trew on protocols 1 to 4 are answered as before. Plugin 0.16.0 and trew 0.14.0 need this release, so upgrade the server first.

Added

  • Restore from a device (protocol 5). A device previews one folder, or every note in the vault, as the server had it at a time, and then applies exactly that preview as one operation that any device, or trewd undo, reverses. The time is the server's own record of when each version arrived, never a device's clock. Settings are never restored from a device; trewd restore still restores everything, settings included. A notes save anywhere between the preview and the apply refuses it; a settings save does not. A restore over 10,000 versions, a time before the oldest recorded history, or a point below the last purge is refused rather than cut short or guessed.

Fixed

  • An agent's preview is no longer expired by a device saving its settings between the preview and the apply.
  • A settings save no longer shapes the Git export's commits. A history exported by 0.14.2 or earlier and rebuilt from scratch can differ where that happened, so keep git-export/ across the upgrade.
  • Undoing an operation now removes what it created before putting anything back, so undoing a restore of a case-only rename no longer collides with itself.

Upgrade

Replace the binary or the image and restart. The store moves to schema 5 on first start, and an older trewd refuses it afterwards, so take a backup first if you might go back (trewd backup).