From 2426a2496be0d2a349d09c3ebccc644164fcf0af Mon Sep 17 00:00:00 2001 From: Chris Bloom Date: Mon, 19 Aug 2024 19:15:13 +0000 Subject: [PATCH 1/2] mackup: deprecate `mackup` works by moving config files to an off-disk backup location (usually a cloud storage provider like iCloud or Dropbox, etc.) and then replacing the original file with a symlink to the backed up version. The intended use is to make sure program configuration settings and preferences can be restored if you need to replace computers, factory reset, etc. As documented [here](lra/mackup#2035), [here](lra/mackup#1924), [here](lra/mackup#1969 (reply in thread)), `mackup backup` no longer works on MacOS Sonoma (likely due to [security changes](lra/mackup#1924 (comment)) in the app sandbox in Sonoma) and running either the backup or restore commands on MacOS Sonoma will result in the loss of all preference files. Users who backup to a storage provider that has versioning or backup snapshots may be able to restore preferences to an older version. For users backing up to other storage providers that do not have this feature, such as iCloud, the command results in total data loss. This issue has been known to the developer for over a year but there is no fix, no mention of the issue in the project README, no warning when running the command, and no indication in the program output that the backup process may not have completed properly - neither in the dry-run mode nor in live mode. --- Formula/m/mackup.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/m/mackup.rb b/Formula/m/mackup.rb index 717e0421eca29..2cc8c410693be 100644 --- a/Formula/m/mackup.rb +++ b/Formula/m/mackup.rb @@ -8,6 +8,11 @@ class Mackup < Formula license "GPL-3.0-or-later" head "https://github.com/lra/mackup.git", branch: "master" + # see discussions in https://github.com/lra/mackup/issues/2035, + # https://github.com/lra/mackup/issues/1924, + # and https://github.com/lra/mackup/discussions/1969#discussioncomment-8485995 + deprecate! date: "2024-08-19", because: "Potential data loss on MacOS 14 (Sonoma) when using backup or restore command" + bottle do sha256 cellar: :any_skip_relocation, arm64_sonoma: "dac4b2e6a5dbb4b99eeb476ca7a80d7b313dab3f733474ab24c6ad02bee7637e" sha256 cellar: :any_skip_relocation, arm64_ventura: "dac4b2e6a5dbb4b99eeb476ca7a80d7b313dab3f733474ab24c6ad02bee7637e" From 99037dd5091028e0401819a6d416a34ef1c8c755 Mon Sep 17 00:00:00 2001 From: Chris Bloom Date: Mon, 19 Aug 2024 20:01:45 +0000 Subject: [PATCH 2/2] fix linter error --- Formula/m/mackup.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Formula/m/mackup.rb b/Formula/m/mackup.rb index 2cc8c410693be..581f8508bde7f 100644 --- a/Formula/m/mackup.rb +++ b/Formula/m/mackup.rb @@ -11,8 +11,6 @@ class Mackup < Formula # see discussions in https://github.com/lra/mackup/issues/2035, # https://github.com/lra/mackup/issues/1924, # and https://github.com/lra/mackup/discussions/1969#discussioncomment-8485995 - deprecate! date: "2024-08-19", because: "Potential data loss on MacOS 14 (Sonoma) when using backup or restore command" - bottle do sha256 cellar: :any_skip_relocation, arm64_sonoma: "dac4b2e6a5dbb4b99eeb476ca7a80d7b313dab3f733474ab24c6ad02bee7637e" sha256 cellar: :any_skip_relocation, arm64_ventura: "dac4b2e6a5dbb4b99eeb476ca7a80d7b313dab3f733474ab24c6ad02bee7637e" @@ -23,6 +21,9 @@ class Mackup < Formula sha256 cellar: :any_skip_relocation, x86_64_linux: "edcad6afdb1201c9d64101252384cb1d5b61b5430cf5deabd184510d84f6b6da" end + deprecate! date: "2024-08-19", + because: "Potential data loss on MacOS 14 (Sonoma) when using backup or restore command" + depends_on "python@3.12" resource "docopt" do