• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

So I have a question about backup

Scheduled Pinned Locked Moved General Discussion
24 Posts 6 Posters 5.2k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    Ray
    last edited by Nov 27, 2021, 2:38 PM

    I’m currently running my magic mirror on a Linux based system
    I want to back it up in case something goes wrong

    can I just clone all my modules and store them in a safe place
    including config, tokens, credentials
    then reinstall magic mirror the traditional way
    then copy all My modules into the folders
    then use npm install in each modules folders

    Would this method work without causing any problems?

    S 1 Reply Last reply Nov 27, 2021, 2:47 PM Reply Quote 0
    • S Offline
      sdetweil @Ray
      last edited by Nov 27, 2021, 2:47 PM

      @ray yes, that will work.

      save config.js

      u can save the module folders, or save the list of modules to install,

      git remote -v
      will list where u got the module from
      so u can git clone/npm install on restore
      with the config.js

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 2 Replies Last reply Nov 27, 2021, 2:50 PM Reply Quote 0
      • R Offline
        Ray @sdetweil
        last edited by Nov 27, 2021, 2:50 PM

        @sdetweil that’s fantastic. I appreciate the quick response. I put a lot of effort and time in this mirror
        so is good to hear. I can back it up safely

        1 Reply Last reply Reply Quote 0
        • R Offline
          Ray @sdetweil
          last edited by Nov 27, 2021, 2:55 PM

          @sdetweil forgot to ask
          so the git remote -v
          we’ll get all its information from my original config.js
          is that correct

          S 2 Replies Last reply Nov 27, 2021, 3:34 PM Reply Quote 0
          • S Offline
            sdetweil @Ray
            last edited by sdetweil Nov 27, 2021, 3:35 PM Nov 27, 2021, 3:34 PM

            @ray you do that in each module folder
            the info from config.js is settings and API keys for each/all the modules

            my grandson just went home from.sleepover. I can write a quick script to backup and restore

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Nov 27, 2021, 8:46 PM Reply Quote 0
            • K Offline
              karsten13 @sdetweil
              last edited by Nov 27, 2021, 8:46 PM

              see also https://forum.magicmirror.builders/topic/14255/what-is-your-backup-and-restore-method

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Ray
                last edited by Nov 29, 2021, 3:35 PM

                @ray i created two scripts mm_backup and mm_restore
                you can get them here

                they write/read from a folder (defaults to ~/MM_backup )

                using ~/MagicMirror as the source (default)

                (but take parms to change the names) see mm_backup.sh -h

                this creates a git repository of the 2 files and creates a tag (label) for the instance of the backup.

                you should create a (free) private repo (to keep any config settings private) on github and push the local repo there to have an offline backup
                then u can clone it anytime and restore from the appropriate tag (date/time)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M R 2 Replies Last reply Nov 29, 2021, 5:24 PM Reply Quote 0
                • M Offline
                  mumblebaj Module Developer @sdetweil
                  last edited by mumblebaj Nov 29, 2021, 5:25 PM Nov 29, 2021, 5:24 PM

                  @sdetweil
                  Hi Sam. Here? I checked your Github and nothing there either. Or maybe I am missed it?

                  Check out my modules at: https://github.com/mumblebaj?tab=repositories

                  S 1 Reply Last reply Nov 29, 2021, 5:26 PM Reply Quote 0
                  • S Offline
                    sdetweil @mumblebaj
                    last edited by Nov 29, 2021, 5:26 PM

                    @mumblebaj doah!!.. forgot the link

                    https://github.com/sdetweil/MagicMirror-backup-restore

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    M 2 Replies Last reply Nov 29, 2021, 5:29 PM Reply Quote 0
                    • M Offline
                      mumblebaj Module Developer @sdetweil
                      last edited by Nov 29, 2021, 5:29 PM

                      @sdetweil Awesome. Thanks Sam. Always nice work from you.

                      Check out my modules at: https://github.com/mumblebaj?tab=repositories

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        2/24
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy