Giter VIP home page Giter VIP logo

dotfiles-3's Introduction

dotfiles

macOS软件列表及配置高效备份方案 设备在长期的使用过程中每个人都会因习惯的不同而进行个性化配置,对于这些个性化配置若不进行管理备份,在换新电脑或者系统重装时需要依次手动安装及重新设置,这显然不是个高效、省心的方法。

梳理出此需求要解决的问题点有以下几点:

  • 个人使用的软件列表
  • 一些软件自定义后的个性化设置
  • 常用的脚本配置
  • 一些需要长久使用到的资源文件(如屏保视频、电子书)

完整备份及恢复以上设置是高效重装的关键,对于macOS可以使用Time Machine备份,但对于想装一个没有历史包袱的新系统时,直接使用此办法恢复备份显然也不是一个好的方案。

本仓库主要是在参考一些现有方案之后,结合个人需求对以上问题的解决,包含以下几个功能点:

  1. 定期自动备份(根据个人需求选择实时备份,按周备份等)。
  2. 大部分常用软件及配置在新设备上实现脚本自动安装及配置,免去手动麻烦。
  3. 个人使用dropbox备份长久需要使用的资源文件,其他使用git仓库备份。

feature list

  • 主力机备份软件列表及关键配置文件,其它机器可同步主力机软件列表和配置文件

Installation

Run in terminal

curl https://raw.githubusercontent.com/HeminWon/dotfiles/master/scripts/bootstrap | sh

components

./Scripting instructions

  • scripts/install: Specifically for unconfigured computers that automatically install software and initialize configurations.
  • scripts/backup: Any file named .backup.sh is executed when you run scripts/backup.Used to back up some configurations.
  • scripts/check: This script will check for software that is not installed locally and only local installation software, It will generate a file named applist/installer.
  • scripts/link: file .file gets symlinked into your $HOME. If $HOME already exits file, it will rename existing entity files by adding the _backup suffix.

功能说明

  1. 备份软件列表:使用Homebrew-Bundle备份你的软件列表,对于未使用或不支持*Homebrewmas*安装的软件同样备份至applist,需手动安装。
  2. 备份配置文件:对于一些个人偏好配置文件,为解决在新系统中需要重复设置问题,对此类文件进行集中管理或备份。.file文件使用*stow在原有位置生成软连接方式管理,其余文件通过执行相应目录下.backup.sh的脚本文件完成备份,相比mackup*支持高度的自定义。

安装备份软件列表文件

  1. 批量安装使用homebrew、mas管理的软件

    # 批量安装备份软件列表文件
    brew bundle --file="$HOME/dotfiles/applist/Brewfile"	
  2. 手动安装其他软件

    # 检查本机中未安装的备份软件列表中的软件
    cd $HOME/dotfiles/scripts && sh check

dotfiles-3's People

Contributors

heminwon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.