mackup icon indicating copy to clipboard operation
mackup copied to clipboard

Backing up system preferences?

Open devnoname120 opened this issue 2 years ago • 6 comments

Would it be possible to backup all system preferences including defaults read?

You can easily call defaults domains to list the domain and then call defaults export <domain> <destination> on each.

devnoname120 avatar Apr 30 '22 11:04 devnoname120

I was thinking the same, wow!

lucasff avatar May 01 '22 16:05 lucasff

@lra Would you be open to merge such a feature? I can do a pull request

devnoname120 avatar May 02 '22 06:05 devnoname120

Mackup is focused on config files rather than config exports, are the system preferences tied to an actual user file or can you only access them through a CLI command?

joshmedeski avatar May 02 '22 16:05 joshmedeski

@lra Would you be open to merge such a feature? I can do a pull request

Before thinking about coding, how would this work? Mackup is relying on file system links to keep config files in sync. It does not regularly run to check if some files are in sync are not, it just setup links and does nothing afterward.

I don't see how this could work with this, it's not a daemon or run regularly.

lra avatar May 02 '22 16:05 lra

It would seem that you need a new type of command, e.g., system or defaults, that the user runs periodically and understands that it isn't kept in sync in realtime.

warpedgeoid avatar Oct 02 '22 16:10 warpedgeoid

Maybe using something like this can help for now.

https://github.com/clintmod/macprefs

You could backup all your preferences and add the folder to .mackup.cfg, no?

julianpinedayyz avatar Mar 06 '23 15:03 julianpinedayyz