A comprehensive set of bash scripts to automate the backup and restoration of your development environment when moving to a new computer.
This tool helps developers easily migrate their development setup between computers by:
- Backing up configurations, SSH keys, and essential application settings
- Identifying installed applications and Git repositories
- Creating a portable archive for simple transfer
- Restoring your entire environment on the new machine
Perfect for developers who frequently switch machines, set up new work environments, or simply want a reliable backup of their configuration.
- 🔒 SSH Key Backup - Securely backup and restore your SSH keys with proper permissions
- ⚙️ Application Configs - Save settings from VS Code, PhpStorm, Terminal emulators, and more
- 🌐 Git Repository Management - Track all your repositories for easy re-cloning
- 📋 Application Inventory - Generate a list of your essential applications
- 🔍 Environment Files - Backup important
.envfiles and SSL certificates - 📦 Project Structure - Preserve your project organization structure
- Bash shell environment (Git Bash on Windows, Terminal on macOS/Linux)
- Git installed
- Basic command line knowledge
-
Clone this repository:
git clone https://github.com/your-username/dev-migration-tool.git cd dev-migration-tool -
Make scripts executable:
chmod +x prepare-migration.sh post_installation.sh chmod +x scripts/*.sh
Run the main backup script:
./prepare-migration.shThis script will:
- Backup your configurations, SSH keys, and other essential data
- Create a comprehensive list of your applications and Git repositories
- Generate a
migration-backup-YYYYMMDD.tar.gzarchive in your home directory
- Copy the generated archive to your new computer
- Extract the archive:
tar -xzf migration-backup-YYYYMMDD.tar.gz
- Run the post-installation script:
./post_installation.sh
- Install essential applications listed in
app_essentials.txt - Clone your Git repositories using the information in
git-projects-info/git-repos.txt
Edit the app_essentials.txt file to add or remove applications based on your needs.
Each backup script can be modified to include additional directories or files:
scripts/backup_configs.sh— Add more application configurationsscripts/additional_backup.sh— Add more data types to backup
Out of the box, this tool backs up configurations for:
| Category | Applications |
|---|---|
| Shell Environments | Bash, Zsh, etc. |
| Development | Git, VS Code, PhpStorm |
| Terminal | Windows Terminal |
| Browsers | Arc Browser, Chrome (bookmarks) |
| Communication | Discord |
| Containerization | Docker |
| Packages | NPM (global packages) |
| API | Postman collections |
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m "Add some amazing feature" - Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
- Inspired by the need to streamline development environment migration
- Built for developers by developers
- Add support for more applications and development tools
- Create a configuration file for customizing backup behavior
- Add automatic installation of applications
- Implement a GUI interface
- Add selective restore capability
Built by [Winston Smith]