Skip to content

PhoenixKit 2.53.0: Storage profiles count local and cloud copies separately

PhoenixKit 2.53.0 lets a storage profile say how many copies of each file go to the server’s own disks and how many to the cloud, so a copy can survive the server.

Local copies and cloud copies

“Copies of each file” is now two settings: Local copies, on the server’s disks, and Cloud copies, in S3, B2, R2 or Tigris. A profile can keep two copies on disk and one in the cloud. Cloud copies can be set only for a profile with a cloud bucket, and a kind of bucket the profile wants no copy of is not written. If a bucket is taken out of a profile, the reconciler copies the files that fall below the count to another bucket of the same kind, and the Health page shows what is left.

The reconciler checks the two counts separately, so extra local copies can no longer hide a missing cloud copy, and it verifies the copies it keeps before deleting another.

Simpler bucket roles

A bucket in a profile now holds everything the profile sends it: the choice of storing only originals or only sizes is gone, and so is the button to keep every original on N buckets. A personal backup library now sends its thumbnails and tiles to every site bucket and the user’s backup, as its originals.

Upgrading

Run mix phoenix_kit.update for V209. Existing profiles keep their total, split by the buckets they have, local first, and no file is placed again. If the local buckets already cover the old total, Cloud copies is set to zero even when the profile lists a cloud bucket. Set it above zero if you want files written to the cloud.

Full release notes: PhoenixKit 2.53.0

2.53.0 · 4 October 2026

Upgrading

  • Run mix phoenix_kit.update: it applies V209 (copies_local / copies_cloud on phoenix_kit_storage_profiles). Existing profiles keep their total and are split by the buckets they have, local first, so no file is placed again. If the local buckets cover the old total, the backfill sets Cloud copies to zero, even when a cloud bucket is listed. Set it above zero to write to the cloud; otherwise the backfill assigns the copies the local buckets cannot take to available cloud buckets.

Added

  • A storage profile counts its copies per kind of bucket: local and cloud (V209). “Copies of each file” is now Local copies (on the server’s own disks) and Cloud copies (S3, B2, R2, Tigris), so a profile can keep two copies on disk and one in the cloud, which survives the server. Cloud copies can be set only for a profile that has a cloud bucket; a kind the profile wants no copy of is not written, whatever buckets it has. If a bucket is taken out of a profile, the reconciler finds the files that fall below the count and copies them to another bucket of the same kind (the Health page shows what is left). V209 adds copies_local and copies_cloud to phoenix_kit_storage_profiles and splits every existing profile’s count by the buckets it has, local first; no file is placed again. copies_originals stays as the total (a CHECK keeps it equal to copies_local + copies_cloud) and copies_variants is no longer used (both follow the counts). A personal backup library’s profile gets one cloud copy for the backup and one copy on each site bucket, so its thumbnails and tiles now follow the originals onto every site bucket and the user’s backup instead of one site bucket.

Changed

  • A bucket in a storage profile holds everything the profile sends it. The choice of storing only originals or only sizes and tiles (the Stores column) is gone, and so is its effect: placement, the reconciler and the copy advice no longer read phoenix_kit_storage_profile_buckets.stores, so a row that had it set is treated as storing everything. The column stays in the table, unused.
  • The copy hints speak of “files” and of local and cloud buckets, and the “Keep every original on N buckets” button is gone: set Local copies or Cloud copies. A new bucket’s confirmation says when its profile keeps no copy of its kind yet.
  • The storage profiles bucket table’s headings are in sentence case, like the Libraries and Buckets tables (Bucket, Role, Upload order, Serve order, Status). 2.52.2 had made them capitals; the rest of Storage settings does not use them.

Fixed

  • The reconciler checks local and cloud counts separately and verifies the copies it keeps before deleting another copy, including a real serving copy. Extra local copies can no longer hide a failed or missing cloud copy and mark a file as fully placed. A kind set to zero is no longer written for a serving fallback; its old copies are removed only after the wanted kinds have enough copies.
  • Cloud copies can be lowered after the last writable cloud bucket is removed, and the upload minimum can be increased in the same save as the copy counts. The form no longer blocks these edits.

PhoenixKit 2.53.0. Install or update: {:phoenix_kit, "~> 2.53"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.