lra / mackup

Keep your application settings in sync (OS X/Linux)
GNU General Public License v3.0
14.61k stars 932 forks source link

Specify .mackup.cfg path #1559

Open xareelee opened 4 years ago

xareelee commented 4 years ago

I read the README.md, mackup --help, and the main.py. It seems that mackup doesn't support --path as a parameter to specify .mackup.cfg and .mackup/ paths.

For me, not only config files for apps, but also config files for mackup itself needs to be synchronized across computers. Currently, I need to use other tools like stow to symlink .mackup.cfg and .mackup/ to the home directory. It's a little verbose.

If mackup could support --path parameter to indicate where .mackup.cfg and .mackup/ are, it would be very useful for some people like me.


Atter mackup backup, I see both .mackup.cfg and .mackup/ are backup in my file_system path.

If I have a new Mac and download my dotfiles repo by git clone, will mackup restore search this git repo automatically? Or do I need to copy the both .mackup.cfg and .mackup/ to my home directory first before restore?

jmuchovej commented 3 years ago

If I have a new Mac and download my dotfiles repo by git clone, will mackup restore search this git repo automatically? Or do I need to copy the both .mackup.cfg and .mackup/ to my home directory first before restore?

You'll have to manually link them; definitely understand why you'd want to avoid this, but it's relatively straightforward to put into an installer script, e.g. from my installer scripts:


echo "- Restore Dotfiles with Mackup..."
ln -sf "${DOTS}/.mackup.cfg" "${HOME}/.mackup.cfg"
ln -sf "${DOTS}/.mackup" "${HOME}/.mackup"
mackup restore -f