我使用两台Mac,一台用于工作,另一台是我的个人macos。
我想在两台机器之间同步设置。
我发现此应用程序似乎可以满足我的要求:https://github.com/lra/mackup/。
我想将设置保存在GitHub上,因此我以这种方式设置了.mackup.cfg
文件:
[storage]
engine = file_system
path = dotfiles
directory = backup
# List of applications you want to explicitly sync (one application name per line).
# To see a list of supported application names, launch `mackup list`.
# If this list is empty, Mackup will try to sync all the supported applications.
[applications_to_sync]
bash
bash-it
docker
eslint
gimp
git
iterm2
libreoffice
mackup
matlab
npm
oh-my-zsh
spotify
sublime-text-3
ssh
vscode
zsh
# List of applications you want to ignore (one application name per line).
# If an application is ignored, it will be ignored even if it's been explicitly allowed in the [Allowed Applications].
[applications_to_ignore]
因此,在我的主文件夹中,我有一个具有以下结构的dotfiles
文件夹:
dotfiles
|_ backup
|_ .docker
|_ .oh-my-zsh
|_ ...
然后我将此文件夹保存在我的GitHub帐户上,并添加了自述文件。所以最终的结构是这样的:
dotfiles
|_ backup
|_ .docker
|_ .oh-my-zsh
|_ ...
|_ README.md
|_ .git
现在,如何在新机器上设置这些首选项?我安装了mackup
,然后应该执行mackup restore
,但出现此错误:
Error: Unable to find you Dropbox install =(
我在文档中找不到任何可以帮助我的东西。
非常感谢
Dropbox是default engine:
if self._parser.has_option("storage", "engine"):
engine = str(self._parser.get("storage", "engine"))
else:
engine = ENGINE_DROPBOX
确实很难说清楚,但是从外观上看,您的目标计算机无法找到/解析配置文件。因此,在此阶段,我想说的是,即使您是否已在目标计算机上签出了git存储库也没关系(我假设您还是这样做了)
~/.mackup.cfg
,mackup -v restore
-这可能表明您的特定环境存在问题我希望这能为您指明正确的方向