Giter Site home page Giter Site logo

hamzahasbi / sync-migrate Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 802 KB

This repos will manage my future data sync from machine to machine including dotfiles and packages.

License: MIT License

Shell 98.45% Ruby 0.22% Perl 0.39% Python 0.28% Makefile 0.14% Roff 0.52%

sync-migrate's Introduction

sync-migrate tool

This repos will manage my future data sync from machine to machine including dot files and packages.

Tool Structure

On the root of this project you have a folder containing some utility scripts that will be covered later on and some basic files (to copy paste if you need or just as a reminder to get yours backed up).

How does it work

The files in the root directory serves as a reminder of the files to be backed up from your old laptop .

  • shell settings => themes and plugins for my ohmyzsh configuration.

  • .zshrc => Configuration file for zsh if you are using zsh as a terminal.

  • personal-zsh-theme.zsh.theme => This one is a customized (modified by me) zsh theme inspired from daivasmara.

  • settings.zip => PHPStorm configuration .

Scripts folder!

Inside this folder you have a first script called backup-packages which (as its name indicates) will backup all your installed packages in one folder :

Included package managers are : brew, yarn, npm, gems, composer.

chmod a+x ./scripts/backup-packages.sh

./backup-packages.sh

After running the backup scripts you'll find several *.txt files in packages folder.

Now you're done with your old machine and you can get started with the import on your new machine.

To do that you'll need to run 2 scripts one to reinstall brew packages and the other one for npm/yarn & rubygems .

chmod a+x ./scripts/packages/brew-bulk-install.sh

chmod a+x ./scripts/packages/packages-reinstall.sh

./brew-bulk-install.sh

./packages-reinstall.sh

Dependencies

On the new machine you'll need the following tools to be installed.

ALERT

For composer packages a simpler solution would be to copy your composer.json in your home directory and directly do a composer install (much simpler i guess).

To contribute

Feel free to submit issues or pull request or enhancement suggestions. If you wanna have a chat.

sync-migrate's People

Contributors

hamzahasbi avatar

Watchers

 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.