Skip to content
Branch: master
Find file History

Latest commit

j0k3r Small changes related to Storage paragraph (#1550)
Separate the `Dropbox` sub-section from the introduction paragraph of `Storage` section.
Latest commit 09548e9 Apr 1, 2020


Type Name Latest commit message Commit time
Failed to load latest commit information.


All the configuration is done in a file named .mackup.cfg stored at the root of your home folder.

To configure Mackup, create a file named .mackup.cfg in your home directory.

vi ~/.mackup.cfg


You can specify the storage type Mackup will use to store your configuration files. For now you have 4 options: dropbox, google_drive, icloud, copy and file_system.

If none is specified, Mackup will try to use the default: dropbox. With the dropbox storage engine, Mackup will automatically figure out your Dropbox folder.


engine = dropbox

Google Drive

If you choose the google_drive storage engine instead, Mackup will figure out where your Google Drive is and store your configuration files in it.

engine = google_drive


engine = icloud


If you choose the copy storage engine, Mackup will figure out where your Copy folder is and store your configuration files in it.

engine = copy

File System

If you want to specify another directory, you can use the file_system engine and Mackup won't try to detect any path for you: it will store your files where you explicitly told it to, using the path setting. The path can be absolute (from the / of your drive) or relative to your home directory. The path setting is mandatory when using the file_system engine.

engine = file_system
path = some/folder/in/your/home
# or path = /some/folder/in/your/root

Note: you don't need to escape spaces or wrap the path in quotes. For example, the following paths are valid :

path = some/path in your/home
path = /some path/in/your/root

Custom Directory Name

You can customize the directory name in which Mackup stores your file. By default, if not specified, Mackup creates a Mackup directory in the storage engine you chose, e.g. ~/Dropbox/Mackup.

directory = Mackup

For example:

engine = file_system
path = dotfiles
directory = backup

This will store your files in the ~/dotfiles/backup directory in your home.

You can also select a subfolder:

engine = icloud
directory = .config/mackup


Only sync one or two applications

In your home folder, create a file named .mackup.cfg and add the application names to allow in the [applications_to_sync] section, one by line.

# Example, to only sync SSH and Adium:

A sample of this file is available in this folder. Just copy it in your home folder:

cp mackup/doc/.mackup.cfg ~/

Don't sync an application

In your home folder, create a file named .mackup.cfg and add the application names to ignore in the [applications_to_ignore] section, one by line.

# Example, to not sync SSH and Adium:

A sample of this file is available in this folder. Just copy it in your home folder:

cp mackup/doc/.mackup.cfg ~/

Get official support for an application

Open a new issue and ask for it, or fork Mackup and open a Pull Request. The stock application configs are in the mackup/applications directory.

Add support for an application or any file or directory

You can customize the Mackup engine and add support for unsupported applications or just custom files and directories you'd like to sync.

Let's say that you'd like to add support for Nethack (config file: .nethackrc) and for the bin and .hidden directories you keep in your home.

In your home, create a .mackup directory and add a config file for the application you'd like to support.

mkdir ~/.mackup
touch ~/.mackup/nethack.cfg
touch ~/.mackup/my-files.cfg

Edit those files

$ cat ~/.mackup/nethack.cfg
name = Nethack

$ cat ~/.mackup/my-files.cfg
name = My personal synced files and dirs


You can run mackup to see if they are listed

$ mackup list
Supported applications:
 - my-files
 - nethack

All good, you can now sync your newly configured files:

mackup backup

If you override an application config that is already supported by Mackup, your new config for this application will replace the one provided by Mackup.

You can find some sample config in this directory.

Locally test an application before submitting a Pull Request

You can add and test an application by following these steps:

  • fork this project
  • create a branch (usually containing the name of the application)
  • add the appropriate application config file in the mackup/applications folder
  • from the top-most folder (mackup) run make develop that replaces the currently installed mackup with the local modified one
  • simply run mackup backup to test if everything is ok
  • if everything works as expected:
    • run make undevelop to revert to the official version
    • commit and push the change to your fork and then create the Pulls Request

Add support for an application using the XDG directory

For application storing their configuration under the ~/.config folder, you should not hardcode it. The .config folder is the default location but it can be named differently on other users' systems by setting the XDG_CONFIG_HOME environment variable.


Mackup supports this mechanism and provide a dedicated xdg_configuration_files section for those applications.

If any path starts with .config, remove the .config part and move the path to a dedicated xdg_configuration_files section.

Instead of:

name = Git


Use this:

name = Git


You can’t perform that action at this time.