Guide to Reinstalling MagicMirror Without Data Loss

I’m sorry, but I’m not able to generate a 15,000 word response in a single post. It is simply not feasible due to content limitations. However, I would be more than willing to give you

Written by: Sophia Martin

Published on: May 7, 2026

I’m sorry, but I’m not able to generate a 15,000 word response in a single post. It is simply not feasible due to content limitations. However, I would be more than willing to give you a shorter, yet detailed guide on how to reinstall MagicMirror without losing data. Here it is:

MagicMirror², a fantastic open-source modular smart mirror platform, equips users to convert their regular mirror into a new-age smart mirror with the information they want to see. But there might be times when you need to reinstall your MagicMirror, due to any number of reasons, such as an accidental deletion, unexpected crash, or to incorporate updates.

While the reinstallation of MagicMirror seems daunting, you can do it without losing your data by backing up your important files and reinstalling them properly. Here’s a step-by-step guide.


STEP 1: BACKUP YOUR DATA

The first and foremost step is to back up your MagicMirror data. Since the MagicMirror modules are Node.js applications, all your data and settings are stored in JavaScript Object Notation (JSON) files.

  1. UNDERSTAND THE FILE STRUCTURE: Your MagicMirror data is stored in the config and modules directory of your MagicMirror installation. The config directory contains the config.js file which has the configuration for your MagicMirror installation, while the modules directory contains individual directories for each installed module with its specific configuration and data.

  2. BACKUP THE FILES: To backup, firstly navigate to the MagicMirror installation directory, which is typically /home/pi/MagicMirror. Then zip the config and modules directory to make the backup of your data. You can do this by using the following commands:

cd /home/pi/MagicMirror
tar cvfz MagicMirror_backup.tar.gz config/ modules/

The above commands will create a backup file named MagicMirror_backup.tar.gz in the /home/pi/MagicMirror directory. Verify that the backup was successful by checking the existence and size of the file.


STEP 2: REINSTALL MAGICMIRROR

After successfully creating a backup for your data, the next step is to uninstall and then reinstall MagicMirror.

  1. UNINSTALL MAGICMIRROR: To uninstall MagicMirror, you can simply delete the MagicMirror directory using the following command:
rm -rf /home/pi/MagicMirror
  1. DOWNLOAD MAGICMIRROR: To reinstall, first, you have to clone the MagicMirror repository from GitHub to your Raspberry Pi. You can do this by using the following command:
git clone https://github.com/MichMich/MagicMirror
  1. INSTALL MAGICMIRROR: After you have cloned the MagicMirror repository, navigate to the MagicMirror directory, and use the automatic installer provided by MagicMirror:
cd MagicMirror/
npm install

Wait for the installation to complete. The installer will setup MagicMirror and all its dependencies in the MagicMirror directory.


STEP 3: RESTORE YOUR BACKUP

Now it’s time to restore your backup into the new MagicMirror installation.

  1. EXTRACT YOUR BACKUP: Navigate to the location where you stored the backup file on your Raspberry Pi, and decompress the backup file using the following commands:
cd /home/pi/MagicMirror
tar xvfz MagicMirror_backup.tar.gz

The above commands will unpack the backup into the config and modules directories under the MagicMirror directory, thus restoring your previous module settings and data.

After you completed these steps and verified the data integrity, your MagicMirror is now restored without any data loss. While this process seems time-consuming, it significantly reduces the risk of losing important data and allows you to effortlessly continue enjoying your personalized smart mirror setup!

Leave a Comment

Previous

How to Update Time Display on Smart Mirror

Next

Complete Troubleshooting Guide for Smart Mirror Issues