• 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.

Backing up via GitHub repo

Scheduled Pinned Locked Moved Troubleshooting
19 Posts 6 Posters 3.3k Views 6 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.
  • K Online
    karsten13
    last edited by May 24, 2020, 4:38 PM

    My answer is related toI was wondering how I could backup my config and modules folder to a private repository on GitHub.

    So if you want to put config and modules in one git repo without the other MagicMirror stuff, if found no other solution as doing it with such a “parent” construction as described …

    S 1 Reply Last reply May 24, 2020, 6:42 PM Reply Quote 0
    • S Offline
      sojourner @karsten13
      last edited by May 24, 2020, 6:42 PM

      @karsten13 You are correct that a parent /mm/ repository could nicely include the MagicMirror/config/config.js file while excluding the ‘core’ MagicMirror! :clapping_hands_medium-light_skin_tone:

      Minor thoughts:

      1. Using your suggested command in that parent /mm/ repository,
        git add -f MagicMirror/modules/*
        
        … will include the modules/default/ directory.
        Since it is included by the MagicMirror repository. I suggest only adding the specific paths to any modules you have edited.
      2. also add the .gitignore to the parent /mm/ repository.
      1 Reply Last reply Reply Quote 0
      • K Online
        karsten13
        last edited by May 24, 2020, 8:36 PM

        :thumbs_up:

        1 Reply Last reply Reply Quote 0
        • B Offline
          BKeyport Module Developer
          last edited by BKeyport May 25, 2020, 12:43 AM May 24, 2020, 11:50 PM

          Here’s what I’ve done.

          Everything I modify, including instructions for things that can’t be moved is stored in a “MyConfigs” directory on my harddrive, with symlinks in the original folder - so config.js and custom.css is actually symlinks in the magicmirror folders.

          Modifications to modules that I do are all forked off the original and stored independently.

          It took me literally 5 minutes to get config up again after a SD Card blowout…

          Pros: no work to get unmodified modules and MagicMirror up to current.

          Cons: remembering the dang symlink command. I’m gonna write a script.

          The "E" in "Javascript" stands for "Easy"

          1 Reply Last reply Reply Quote 1
          • A Offline
            arnedebeer
            last edited by May 25, 2020, 11:38 AM

            Thanks all for your responses! I am going to try @karsten13’s answer and setup a parent repository above the MagicMirror directory! Funny how I did not thank of that :D

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 2 / 2
            2 / 2
            • First post
              19/19
              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