Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mackup Not Restoring macOS Settings and Preferences #2022

Open
oushima opened this issue May 8, 2024 · 2 comments
Open

Mackup Not Restoring macOS Settings and Preferences #2022

oushima opened this issue May 8, 2024 · 2 comments

Comments

@oushima
Copy link

oushima commented May 8, 2024

Hello,

On User 1:
I changed some Settings in macOS, such as increasing the Trackpad speed.
And then I installed Mackup via brew install mackup, followed by mackup backup.

On User 2:
Then, I installed Mackup again via brew install mackup, and then used mackup restore, in the hopes of restoring the macOS Settings and Preferences from User 1.

But it did not.
Both User 1 and User 2 have Administrator Privileges in macOS Settings.

My .mackup.cfg file contains the following:

[storage]
engine = icloud

And it is located in my iCloud folder inside the Mackup folder.

The Mackup folder contains the following files:

  • .mackup.cfg
  • .zprofile
  • Library folder: com.apple.Music.eq.plist and com.apple.Music.plist

That's it.

How can I make Mackup backup and restore my macOS Settings and Preferences?
Thank you in advance.

Kind regards.

@oushima
Copy link
Author

oushima commented May 8, 2024

Update, some logs:

**On User account 1:**
Uninstalled Mackup (restoring symlinks, before uninstalling with Brew):
mackup uninstall



Checking if Mackup is still installed with Brew and then uninstalling it.:
Warning: mackup 0.8.40_1 is already installed and up-to-date.
To reinstall 0.8.40_1, run:
  brew reinstall mackup
school@Denniss-MacBook-Pro ~ % brew uninstall mackup
Error: Permission denied @ rb_sysopen - /opt/homebrew/var/homebrew/locks/mackup.formula.lock
school@Denniss-MacBook-Pro ~ % 



Fixing permissions:
sudo chown -R school /opt/homebrew /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/locks

chmod u+w /opt/homebrew /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/locks



Uninstalling Mackup from Brew, second attempt:
school@Denniss-MacBook-Pro ~ % brew uninstall mackup
Uninstalling /opt/homebrew/Cellar/mackup/0.8.40_1... (623 files, 532.6KB)
school@Denniss-MacBook-Pro ~ % 



Installing Mackup again:
brew install mackup



Making a mackup:
mackup backup
---------



**On User account 2:**
Same steps as before, starting fresh:
school@Denniss-MacBook-Pro ~ % brew install mackup
==> Downloading https://ghcr.io/v2/homebrew/core/mackup/manifests/0.8.40_1
Already downloaded: /Users/school/Library/Caches/Homebrew/downloads/ca35f6bdeb90f273659182dc7672a8b867802fbc927333d13d3b191f5ceed9b3--mackup-0.8.40_1.bottle_manifest.json
==> Fetching mackup
==> Downloading https://ghcr.io/v2/homebrew/core/mackup/blobs/sha256:cc14c837232
Already downloaded: /Users/school/Library/Caches/Homebrew/downloads/688e3ffe82de4b14fb9ea9f9677a369310adee3c88113b4f391377acd299e1e1--mackup--0.8.40_1.arm64_sonoma.bottle.tar.gz
==> Pouring mackup--0.8.40_1.arm64_sonoma.bottle.tar.gz
🍺  /opt/homebrew/Cellar/mackup/0.8.40_1: 613 files, 408.9KB
==> Running `brew cleanup mackup`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
school@Denniss-MacBook-Pro ~ % mackup restore
/opt/homebrew/Cellar/mackup/0.8.40_1/libexec/lib/python3.12/site-packages/docopt.py:165: SyntaxWarning: invalid escape sequence '\S'
  name = re.findall('(<\S*?>)', source)[0]
/opt/homebrew/Cellar/mackup/0.8.40_1/libexec/lib/python3.12/site-packages/docopt.py:166: SyntaxWarning: invalid escape sequence '\['
  value = re.findall('\[default: (.*)\]', source, flags=re.I)
/opt/homebrew/Cellar/mackup/0.8.40_1/libexec/lib/python3.12/site-packages/docopt.py:207: SyntaxWarning: invalid escape sequence '\['
  matched = re.findall('\[default: (.*)\]', description, flags=re.I)
/opt/homebrew/Cellar/mackup/0.8.40_1/libexec/lib/python3.12/site-packages/docopt.py:456: SyntaxWarning: invalid escape sequence '\S'
  split = re.split('\n *(<\S+?>|-\S+?)', doc)[1:]
Restoring .mackup.cfg ...
You already have a file named .mackup.cfg in your home.
Do you want to replace it with your backup? <Yes|No> Yes
Restoring Library/Preferences/com.apple.Music.plist ...
You already have a file named Library/Preferences/com.apple.Music.plist in your home.
Do you want to replace it with your backup? <Yes|No> Yes
Restoring Library/Preferences/com.apple.Music.eq.plist ...
You already have a file named Library/Preferences/com.apple.Music.eq.plist in your home.
Do you want to replace it with your backup? <Yes|No> Yes
Restoring .zprofile ...
You already have a file named .zprofile in your home.
Do you want to replace it with your backup? <Yes|No> Yes
school@Denniss-MacBook-Pro ~ % 



Restoring Mackup backup:
mackup restore

@lougreenwood
Copy link

@oushima did you get anywhere with this, I also get the docopt errors when I run mackup restore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants