Skip to content

v0.30.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 28 Nov 18:04

Release candidate for 0.30.0. Do not use it on production repositories yet. vykar upgrade is one-way, so test on copies or on throwaway repositories.

This is an exciting release. It cleans up some duplicate code paths and design choices that didn't work as well in practice. It also adds simulation coverage at the repo level, so we can now test possible scenarios that may happen to a repository to confirm they are all handled correctly. More here. There is also a lock-free mode for supported S3 storage (AWS, Cloudflare and others).

Highlights

  • Repository format v6. The chunk index is segmented under numbered heads, so each write uploads only what changed. vykar upgrade converts v2/v3 repositories in place; it can be resumed and re-uploads no data.
  • No repository lock. Backups from several machines commit side by side, and compact, prune and delete run while backups are going. Restore, list, find, diff and check need only read access and no longer block compact.
  • Self-describing packs. Every pack ends in an encrypted trailer, so check --repair can rebuild a lost index from the packs and re-index lost chunks instead of dropping snapshots.
  • Smaller, faster listings. A daily backup of a 7.5M-file source uploads 38 MB of listing instead of 636 MB. list --path, selected restore and mount read only the subtree they need.
  • Automation. --json for list, info, backup, prune, compact and check; status.json schema 1; restore shows live progress; one scheduler shared by the daemon and the GUI.

Breaking changes

  • v2/v3 repositories open only for vykar upgrade. The upgrade is one-way: 0.24 refuses a v6 repository with "unsupported repository version: 6".
  • Upgrade vykar-server before any client. 0.30 clients need a 0.30 server; the 0.30 server keeps serving 0.24 clients on v2/v3 repositories. Turn append-only off for the upgrade and for --commit-mode.
  • Unencrypted repositories are removed and cannot be upgraded. encryption.mode: none fails the whole config file. To avoid prompts, set a fixed passphrase in the config instead.
  • Storage without put-if-absent is single-writer. This covers non-AWS S3 endpoints unless trusted (AWS, Cloudflare R2, Scaleway and OVHcloud are), IDrive e2, and SFTP without hardlink@openssh.com. On such storage a backup waits up to 2 h for a running compact.
  • vykar break-lock is gone, with no alias. Use vykar clear-sessions; in scripts, clear-sessions --stale.
  • ${VAR} placeholders expand per value after parsing. A value can no longer inject YAML. An empty value in a number, boolean, URL or source path is an error.
  • Daemon and hooks. The daemon runs no passcommand at startup, on reload or for the status page: a wrong passcommand shows up as a failed step in the first cycle. The passphrase is resolved after before hooks, dry runs run no hooks, and an unavailable local repository is skipped with exit 0.
  • /api/status.json changed shape: raw values, failed instead of error, nulls for missing values. Prune and delete no longer report freed space.
  • One-time cost after upgrading: the first backup of each source re-uploads its full listing (not file data). Hosts that ran with threads: 1 also re-upload chunks around the 64 MiB boundaries of changed large files.

Changes

Repository format and maintenance

  • Format v6: config as a msgpack map with recorded chunk hash, features and commit mode; write-once heads at index.h/<gen> with base and segments under index.d/ (0190a79, 17e0084, 934602e)
  • Mark-and-sweep compact, with compact --report-unreferenced. It refuses rather than deletes when it cannot read every snapshot. Prune and delete only remove snapshot objects (0190a79, 83ee405, f30fae0)
  • Encrypted pack trailers; pack maps for packs upgraded from v2/v3; check --repair rebuilds the index from the packs (529aea8, 5922a18, f30fae0)
  • vykar upgrade holds a lock key that 0.24 clients respect for the whole v2/v3 upgrade, and stops if one takes its own lock (6a19743, a9326d1)
  • Snapshot format 2: listings in name order on every filesystem, binary chunk IDs, and a key index for path-scoped reads (2ffa606, 2eb9122, 5fe2a15)
  • An older binary refuses a newer head or config by version or feature name, never with a parse error (f9937e2)

Concurrency

  • Backups commit without a lock through session markers; heads are created with put-if-absent, and a backup whose generation is taken rebases (7ca83ec, 6819a4a)
  • Compact, prune and delete run beside live backups; young index entries and orphan packs are kept, measured by the store's clock (f7ade2d, 8208831, 1961ef7, c4a4442)
  • Readers register no marker and re-resolve chunks that a concurrent compact moved (2512920)
  • Repair, upgrade and pack-map writes run as exclusive sessions (a07020b)
  • vykar clear-sessions [--stale] replaces break-lock (6a6b256, a1b6f60, 7d1badc)

Performance

  • Content-defined cut points for the item stream: listing uploads shrink to what changed (f7f9bbf)
  • Subtree reads for list --path, selected restore and mount; chunk-aware diff; find reads each tree chunk once (5714183, 8bcb358)
  • Local cache of tree chunks (e242bbb)
  • One memory budget for the pipeline and for open and sealed packs; fixed upload pool (58baf1d, 8c7be4d)

CLI, daemon and GUI

  • --json for list, info, backup, prune, compact and check, with consistent field names; status.json schema 1 (df4124e, aaf65c9)
  • Live restore progress (1d99f5b)
  • One scheduler state machine for the daemon and the GUI (e7ce8a0)
  • Hooks fire for GUI prune and for the compact half of prune --compact; the daemon picks up a changed passphrase (5e97194, 8bd346d)
  • check reports a snapshot name carried by more than one object (ae54ae3)

Storage and server

  • Put-if-absent and listings with mtime on every backend; a probe for local, SFTP and S3 targets (5fcba18, abe24be, 0f1a2a7)
  • s3_conditional_writes: auto trusts Cloudflare R2, Scaleway and OVHcloud (517b61b)
  • S3 batch delete via DeleteObjects (606822f)
  • Stricter append-only mode for the segmented index; deleting commands are refused on an append-only server instead of failing halfway (ffd18c2, 1fdb4cd)
  • Cancellable retries with one shared backoff: Ctrl-C ends a retry wait within about 100 ms (c8680e3)
  • The server no longer serves the v1 manifest key (ed833ff)

Fixes

  • Cloned VMs no longer reap each other's live locks: an installation ID identifies the host (cb8dfc9)
  • threads: 1 no longer writes one pack per file (9ed917b)
  • A chunk that passed check but failed restore: all chunk data is decoded with the one-shot zstd decoder (174367e)
  • Client clock skew no longer affects reaping: ages come from the store's clock (1961ef7)
  • A failed pack upload fails the write session (2df2e2f)
  • The stored config is checked before it reaches backup (f3fb262)

Build

Installing the release candidate

install.sh installs only the latest stable release (0.24.0), so download rc.1 from the assets below. Docker images: ghcr.io/borgbase/vykar:0.30.0-rc.1 and :0.30.0-rc.1-apprise; :latest stays at 0.24.0.

Downloads

Platform Artifact
Linux x86_64 (gnu) vykar-v0.30.0-rc.1-x86_64-unknown-linux-gnu.tar.gz
Linux x86_64 (musl) vykar-v0.30.0-rc.1-x86_64-unknown-linux-musl.tar.gz
Linux aarch64 (gnu) vykar-v0.30.0-rc.1-aarch64-unknown-linux-gnu.tar.gz
Linux aarch64 (musl) vykar-v0.30.0-rc.1-aarch64-unknown-linux-musl.tar.gz
macOS aarch64 vykar-v0.30.0-rc.1-aarch64-apple-darwin.tar.gz
Windows x86_64 vykar-v0.30.0-rc.1-x86_64-pc-windows-msvc.zip
GUI (AppImage) vykar-gui-v0.30.0-rc.1-x86_64.AppImage

SHA256 digests are shown next to each asset on this release page.