So you are using Atom and you start installing plugins. Everything works nice and you have your environment with just the right packages.
Suddenly, your hard drive crash or maybe your whole computer burn down. Or worse, you HAVE to use a client’s computer to do your work.
So you have to reconfigure your environment. How will you recover all your packages and preferences?
First, as soon as you have your packages in a good state, run the first command to backup your installed packages.
Backing up your Atom Packages
Run this command:
1 | apm list --installed --bare > atomPackages.txt |
Will output something like this:
Restoring your Atom Packages
To restore those packages, run the following command:
1 | apm install --packages-file .\atomPackages.txt |
Will give you an output like this:
1 | Installing [email protected] to C:\Users\XXX\.atom\packages done Installing [email protected] to C:\Users\XXX\.atom\packages done Installing [email protected] to C:\Users\XXX\.atom\packages done |
What’s apm
?
apm
stands for Atom Package Manager. See it as a something similar to npm
for node but for the Atom editor instead. You can do pretty much anything you want to Atom with apm
.
What’s left?
The only we are not backing up at this point is your snippets, custom styles, themes and your keymaps.
If you are interested, let me know and I’ll show you how to back those up too.