备份体系 Storage and Synchronization

  1. 为什么要备份
  2. 备份什么
  3. 如何快速取回
  4. 恢复的次序
  5. 自动化

为啥要备份,主要是为了防丢,其次是为了换电脑换系统的时候,不需要重新恢复系统,只需要重新安装一遍。借鉴基础设施即代码的理念,开发资产也是代码嘛。我希望的是,把系统所有使用到的软件、工具,都可以做成无状态的样子,只需要脚本就可以一键无痛安装到其他电脑上。为了达到这个目标,我列出了上面几个点,即我们需要用代码表达我们要备份的东西,确保它有快速、稳定、可靠的方式被快速取回,为此必须保持一定的恢复次序,比如 VPN、命令行、brew、系统假设 这些,可能是所需要的前置物品。

备份什么

需要这些信息:

  • 它们各自的版本(重要工具才需要)
  • 它们各自的依赖版本(重要工具才需要)
  • 配置文件

一些工具性的文件需要再装好了。所以整理了一下,需要的只有下面这些:

恢复次序

  • [x] system preferences
  • [x] pre-requisites
    • [x] XCode 9.2 - in order to get git to work
    • [x] git - in order to get brew to work
    • [x] Java - in order to get things like gradle, jenkins to work
    • [x] nvm https://github.com/creationix/nvm
  • [x] update brew & cask to latest
  • [x] basic infrastructures
    • [x] iterm
      • [x] brew cask install iterm2
      • [x] configurations
    • [x] zsh(should be shipped with Mac OSX automatically)
    • [x] oh-my-zsh
    • [x] vpn
    • [x] brew apps
      brew install autojump clisp docker emojify gradle maven groovy git-quick-stats ghi hub mysql watchman wget sqlite tldr tig
      
    • [x] cask apps
      bk install java aerial android-studio bartender bettertouchtool boom cakebrew ccmenu charles cmdtap contexts dropbox emacs evernote expo-xde fastlane firefox flux frappe freshback genymotion gitbook gitbook-editor go2shell google-chrome istat-menus jitouch keycastr launchrocket manico mysqlworkbench neteasemusic ngrok paw pomotodo popclip qq quicksilver react-native-debugger sequel-pro shortcat sizeup skype slack sogouinput sublime-text tickeys ticktick torbrowser typora vagrant virtualbox vyprvpn xmind youku zeplin zoomus
      
    • [x] app store:它们都在 App Store 中存储着,只需要用一个同样的账号就可以了
      pages numbers smartkb keynote pocket amphetamine reeder3 hackrun deskcover marboolite xcode wechat
      
  • [x] 系统三件套
    • [x] Toolbox + WebStorm
    • [x] Chrome -
      • [x] settings
      • [x] extensions
        • [x] configurations
      • [x] shortcuts
      • [x] bookmarks
    • [x] Sublime - 还是采用软件自身备份方式导出方式
    • [x] Alfred - 垃圾备份,最重要的配置不见了 - 还好我机智,瞬间又好了
    • [x] sogou input
  • [x] 次重要:随开机启动
    • [x] Contexts: setup; license
    • [x] Flux
    • [x] Boom: activate with license
    • [x] Dropbox: setup repos
    • [x] Bartender
    • [x] Pomodoro
    • [x] Ticktick
    • [x] Amphetamine
    • [x] iStats
    • [x] OctoMouse
    • [x] SogouInput
    • [x] Shortcat
    • [x] SizeUp
    • [x] Wechat
    • [x] SmartKB
    • [x] Dash
  • [x] 三大备份系统设置
    • [x] Dropbox
    • [x] Google Drive
    • [x] BaiduYunDisk
  • [x] 其他文件夹
    • [x] code
    • [x] personal
  • [x] other softwares
    • [x] toolbox
    • [x] Font Books - export collection
    • [x] what else...?

自动化

  • 安装、版本
  • 配置(设置项、快捷键)
  • usually it requires a manual setup

System Preferences

only changes required are listed

general

  • automatically hide and show the menu bar
  • ask to keep changes when closing documents
  • default browser: chrome[depend on Chrome installation]
  • recent items: 5 documents, apps and servers

desktop & screen saver

  • [depend on install screen saver applications to install]
  • screen saver - hot corners:
    • left bottom: start screen saver
    • right bottom: desktop
  • screen saver - start after: never
  • desktop - change picture: every 5 seconds
  • desktop - random order

Dock

  • turn hiding on
  • turn magnification on
  • position - bottom - no change
  • minimize using - genie effect - no change
  • dock preferences
    • size - 75%
    • magnification - on - max - no change
    • position on screen - bottom - no change
    • minimize windows using: - genie effect - no change
    • perfer tabs - in full screen only - on change
    • double-click a ... - no change
    • minimize windows into application icon - on
    • animate opening applications - on - no change
    • automatically hide and show the dock - on
    • show indicators for open applictionas on - - no change
  • remove all applications from the dock

mission control

  • automatically rearrange ... - yes - no change
  • when switching to ... - yes - no change
  • group windows by application - no - on change
  • displays have separate spaces - no
  • disable all 'keyboard and mouse shortcuts' except for 'show desktop - F11'

language & region

  • first day of week: monday
  • time format: 24-hour time - yes
  • advanced - no change

security & privacy

general:

  • require password immediately - no change
  • show a message when the screen is locked
  • disable automatic logic - yes
             从前的日色变得慢        车,马,邮件都慢
             一生只够爱一个人

filevault: on or off firewall: on with no changes

privacy:

  • location services
    • enable location services - yes - changes required
    • only enable 'weather' and 'maps'
    • system services - details
      • only enable 'Find My Mac'
      • clear 'Significant Locations - Details'
  • contacts: no applications allowed
  • calendars: no applications allowed
  • reminders: no applications allowed
  • photos: no applications allowed
  • accessibitity
    • Alfred 3
    • Alfred Text Service
    • Boom 2
    • Contexts
    • Dropbox
    • KeyCastr
    • OctoMouse
    • Shortcat
    • SizeUp
    • Switchem
    • System Preferences
    • Tickeys
  • analytics: nothing ticked/allowed

Spotlight

no changes

Notifications

  • turn on do not disturb: when the display is sleeping
  • allow repeated calls - yes - changed
  • change all alert style to none for all initial applications

Displays

  • show mirroring options in the menu bar when available - off - changed
  • no changes for any other settings

Energy saver

  • show battery status in menu bar - off - replaced by iStats
  • power adapter:
    • prevent computer from sleeping automatically when the display is off - on
    • enable Power Nap while plugged into a power adapter

Keyboard

  • full keyboard access: all controls - important
  • modifier keys: caps lock -> control

keyboard

  • key repeat: fastest
  • delay until repeat: shortest
  • adjust keyboard brightness in low light - on
  • use f1, f2, etc. keys as standard function keys - on

shortcuts:

  • launchpad & dock: all off
  • mission control:
    • show desktop: f11
    • mission control: move left a space: ^ <-
    • mission control: move right a space: ^ ->
    • mission control: switch to desktop 1: ^1
  • keyboard: all off except 'move focus to next window: command + `'
  • screen shots: all on with a 'shift + command + ' 1/2/3/4 order
  • services: all off
  • spotlight: all off when setup's done
  • accessibility: all off
  • app shortcuts
    • All Applications
      • Show Help Menu: command + h
      • Minimize: shift + control + option + command + a
      • Emoji & Symbols: shift + control + option + command + space
    • Google Chrome
      • Email Page Location: shift + control + option + command + i

input sources

  • show input menu in menu bar - on

dictation

  • shortcut: off

mouse

no changes

trackpad

point & click

  • tracking speed: 8
  • click: medium
  • slient clicking - on
  • look up & data detectors: tap with three fingers
  • secondary click: click or tap with two fingers
  • tap to click: on

scroll & zoom

  • scroll direction: natural - no change
  • zoom in or out: pinch with two fingers - no change
  • smart zoom: off
  • rotate: rotate with two fingers - no change

more gestures

  • swipe between pages
  • swipe between full-screen apps: swipe left or right with four fingers - changed
  • notification center: swipe left from the right edge with two fingers - on - no changes
  • mission control: swipe up with four fingers - on
  • app expose: off
  • launchpad: off
  • show desktop: off

sound

no changes

icloud

don't use

internet accounts

don't use

app store

  • automatically check for updates - yes
  • download newly available updates in the bg - yes
  • install app updates - no
  • install macos updates - yes
  • install system data files and security updates
  • purchases and in-app purchases: always require

networks

no changes

bluetooth

no changes

extensions

  • all: enable: backup & sync from google, dropbox, ticktick - today
  • actions: markup
  • finder: dropbox finder integration, backup and sync from google
  • photos editing: markup
  • share menu: enable only notes, reminders, simulator
  • today: enable only weather, itunes, ticktick, reminders

sharing

  • enable screen sharing on the left hand side

users & groups

you should have only one 'current user'.

login itmes:

  • pomotodo
  • dropbox
  • contexts
  • backup and sync from google
  • alfred 3
  • flux
  • baidu yun disk
  • sizeup
  • octomouse
  • shortcat
  • tickeys
  • iterm
  • ccmenu
  • bartender 2

parental controls

no changes

siri

disable ask siri

date & time

  • clock - show date and time in menu bar - off

accessibility

  • general: all on with no changes
  • voiceover: disable by default, no changes
  • zoom: no changes required
  • display:
    • reduce transparency - yes
    • cursor size: 4
  • speech: no changes required
  • descriptions: no changes required
  • captions: larger text
  • audio: no changes required
  • dictation: no changes required
  • siri: no changes required
  • keyboard: no changes required
  • mouse & trackpad:
    • mouse options: scrolling speed: 3
  • switch control: no changes required

iTerm configuration

general

  • Closing - Quit when all windows are closed
  • Selection - de-select 'Copy to pasteboard on selection'
  • Window - de-select 'Adjust window when changing font size'

tabs

  • Tabs - de-select 'Show tab close buttons'
  • Window & Tab Titles - 'Show profile name'
  • Window - 'Hide scrollbars'

profiles

  • general profiles:
    • General - Basics - Name: 'Linesh TWer'
    • General - Working Directory: 'Reuse previous session's directory'
    • Colors - Cursor colors - select 'Smart Cursor color'
    • Text - Cursor - underline + blinking cursor
    • Text - Font - 24pt Monaco
    • Text - Font - Use a different font for non-ASCII text
    • Text - Non-ASCII Font - 24pt Monaco
    • Window - Window Appearance - Transparency - 18%
    • Window - Window Appearance - select 'Blur'
    • Window - Background Image - Blending: 20%
    • Terminal - Scrollback Buffer - select 'Unlimited scrollback'
    • Keys - Key Mappings - Left option Key: Esc+
    • Keys - Key Mappings - Right option Key: Esc+
  • hotkey profiles
    • basically with all same configurations except:
    • Window - Window Appearance - Transparency - 30%
    • Window - Settings for New Windows - Style - Fullscreen
    • Window - Settings for New Windows - Space - All Spaces
    • Keys - Hotkey Window - select 'A hotkey opens a dedicated window with this profile'
      • Hotkey: '^;'
      • de-select 'Animate showing and hiding'
      • select 'Floating Window' - awesome

keys

  • Navigation Shortcuts: To switch windows: none

pointer

  • de-select 'option-click moves cursor'
  • de-select 'triple-click selects entire wrapped lines'

contexts

welcome

  • update to beta versions

appearance

  • theme - vibrant dark
  • increase contrast
  • text size - largest

general

  • when switching to an app, perform Dock icon action
  • when using multiple displays, use switching workaround
  • de-select 'show app icon badges'

rules

  • number of groups: 5
  • apps to not show:
    • cisco any connect security
    • deskcover
    • finder
    • gotometting v8.18.0
    • neteasemusic
    • otp manager
    • photos
    • pomotodo
    • react native debugger
    • terminal
    • vyprvpn
    • wechat
    • zeplin
    • genymotion
    • iterm2

sidebar

  • show sidebar on: no display
  • when cursor not over: hide
  • when cursor over: narrowest

panel

  • panel width: 7
  • de-select 'moving the cursor over Panel changes the selected item'
  • de-select 'scrolling when Panel is visible changes the selected item'

search

  • search with 'command + control + return'
  • de-select 'fast search with: fn-'

command-tab

  • on command-tab:
    • de-select 'move up list with command + backtick'
    • typing characters starts Fast Search when Panel is visible

number switcher

  • Show numbers on sidebar

gestures

  • show selection on: sidebar

results matching ""

    No results matching ""