Proper way to back up Linux for an upgrade with git, npm, and gem??

fuzzybabybunny

Moderator<br>Digital & Video Cameras
Moderator
Jan 2, 2006
10,455
35
91
I want to upgrade from Elementary OS Luna to Freya. There's isn't an in-place upgrade option so I need to do a fresh install.

So I need to back up my /home directory. I've got all of my programming projects in there including git commits, rails, meteor, npm, etc.

Is it as simple as putting all of /home into a tar file, formatting the disk, installing Freya, and untarring everything back into its original place? I'm not sure how things like node packages or gem installer installs things into a system.