lra/mackup

Mackup

Keep your application settings in sync.

Table of Content

Quickstart

If you have Dropbox installed and want to use it to save your config files, that’s super easy.

On OS X, if you want an easy install, you can install Homebrew and do:


# Install Mackup
brew install mackup

# Launch it and back up your files
mackup backup
JavaScript

If not running OS X, or you don’t like Homebrew, you can use pip.

Note: The below command will check if a previous version of Mackup is already installed on your system. If this is the case, it will be upgraded to the latest version.


# Install Mackup <span class="token keyword">with</span> PIP
pip install <span class="token operator">--</span>upgrade mackup

# Launch it and back up your files
mackup backup
JavaScript

You’re all set and constantly backed up from now on.


Next<span class="token punctuation">,</span> on any <span class="token keyword">new</span> <span class="token class-name">workstation</span><span class="token punctuation">,</span> <span class="token keyword">do</span><span class="token punctuation">:</span># Install Mackup
brew install mackup

# Launch it and restore your files
mackup restore
JavaScript

Done!

You can find more detailed instructions in INSTALL.md.

Usage

mackup backup

Backup your application settings.

mackup restore

Restore your application settings on a newly installed workstation.

mackup uninstall

Copy back any synced config file to its original place.

mackup list

Display the list of applications supported by Mackup.

mackup -h

Get some help, obviously…

What does it do

  • Backups your application settings in a safe directory (e.g. Dropbox)
  • Syncs your application settings among all your workstations
  • Restores your configuration on any fresh install in one command line

By only tracking pure configuration files, it keeps the crap out of your freshly new installed workstation (no cache, temporary and locally specific files are transferred).

Makeup makes setting up the environment easy and simple, saving time for your family, great ideas, and all the cool stuff you like.

Bullsh*t, what does it really do to my files

Let’s take git as an example. Your settings for git are saved in your home folder, in the .gitconfig file.

Backup

If you have Dropbox, these things happen when you launch mackup backup:

  1. cp ~/.gitconfig ~/Dropbox/Mackup/.gitconfig
  2. rm ~/.gitconfig
  3. ln -s ~/Dropbox/Mackup/.gitconfig ~/.gitconfig

Now your git config is always backed up and up to date on all your workstations.

Restore

When you launch mackup restore, here’s what it’s really doing:

  1. ln -s ~/Dropbox/Mackup/.gitconfig ~/.gitconfig

That’s it, you got you git config setup on your new workstation.

mackup does the same for any supported application.

Uninstall

You can revert all your files to their original state.

# Just run this
mackup uninstall

This will remove the symlinks and copy back the files from the Mackup folder in Dropbox to their original places in your home. The Mackup folder and the files in it stay put, so that any other computer also running Mackup is unaffected.

More Detels Github

Subscribe to the Newsletter

Get our latest news,tutorials,guides,tips & deals delivered to your inbox.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.