使用Mackup备份应用配置文件

在使用一些应用的时候,我们难免会进行一些自定义的配置,如果切换电脑的话,会非常的不方便,Mackup是一款Mac下可以备份应用配置文件的工具,有了它就可以一键备份、恢复自定义的配置了。

安装

1
brew install mackup

安装好以后,我们使用 -h 命令查看帮助文档

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
~|⇒ mackup -h
usage: mackup [-h] {backup,restore,uninstall,list}

Mackup 0.8.3
Keep your application settings in sync.
Copyright (C) 2013-2014 Laurent Raufaste <http://glop.org/>

positional arguments:
{backup,restore,uninstall,list}
Required action mode for Mackup, see below for
details.

optional arguments:
-h, --help show this help message and exit

Mackup modes of action:
- backup: sync your conf files to your synced storage, use this the 1st time you use Mackup.
- restore: link the conf files already in your synced storage on your system, use it on any new system you use.
- uninstall: reset everything as it was before using Mackup.
- list: display a list of all supported applications.

backup : 进行备份
restore: 恢复备份
uninstall: 卸载
list: 列出支持的备份配置文件的应用列表

我们运行 mackup backup 以后,如果你安装了 dropbox 的话,则会有如下提示:

1
2
Mackup needs a directory to store your configuration files
Do you want to create it now ? </Users/SimMan/Dropbox/Mackup> <Yes|No>

输入Yes后,mackup就开始进行备份了,并且会把备份的配置文件放到 dropbox 下进行同步,只有在其他电脑、或者重做系统以后,只要使用 dropbox 把配置文件同步回来, 在调用 mackup resotre 命令,就可以进行恢复了!