作为一个开发者,由于 “beta” 系统的原因,我有时不得不恢复备份。
幸运的是,这几天大部分数据都在服务器上。不仅 Safari、照片、日历、Note、提醒事项,其他应用也使用 iCloud 存储。这是重大的进步。我只需要重装系统后从 App Store 和brew shell重新下载应用即可。
但 ssh、配置等的设置很烦人。而且,我可能会丢失我的私钥。
所以我在 iCloud Drive 文件夹里新建了一个名为 “macOS “的文件夹,并将所有不带”. “的文件都复制过来,例如:.gitconfig ~> gitconfig。
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 
 | cd ~macOS=/Users/art/Library/Mobile\ Documents/com~apple~CloudDocs/macOS
 
 ln -sf $macOS/gitignore .gitignore
 ln -sf $macOS/gitignore .gitignore_global
 ln -sf $macOS/gitconfig .gitconfig
 
 ln -sf $macOS/zshrc .zshrc
 ln -sf $macOS/config  .config
 ln -sf $macOS/ssh  .ssh
 
 mkdir -p Blog
 
 
 npm install hexo-cli -g
 hexo init Blog
 cd Blog
 npm install
 rm -rf source
 ln -s ~/Documents/Blog/source ~/Blog/source
 
 brew install ruby python pandoc
 
 brew install openssl youtube-dl ffmpeg pyenv rbenv rclone autojump mp4box
 
 
 rbenv install 2.7.0
 rbenv global 2.7.0
 
 brew cask install iterm2  sourcetree vmware-fusion flux sublime-text shadowsocksx-ng clashx wwdc spectacle losslesscut iina dropbox typora istat-menus 1password calibre imageoptim plex-media-server vscode osxfuse firefox chromium
 
 
 brew cask install qlvideo qlstephen qlcolorcode quicklook-json qlmarkdown qlprettypatch qlimagesize suspicious-package provisionql
 
 
 
 | 
任何云端驱动器(如 Dropbox)都可以做到这一点,但。
考虑到隐私和这封由蒂姆-库克撰写的信件给客户的信息
iCloud 是我的选择 😊