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 4.2k 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.
    • karsten13K Offline
      karsten13
      last edited by

      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 Reply Quote 0
      • S Offline
        sojourner @karsten13
        last edited by

        @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
        • karsten13K Offline
          karsten13
          last edited by

          :thumbs_up:

          1 Reply Last reply Reply Quote 0
          • BKeyportB Offline
            BKeyport Module Developer
            last edited by BKeyport

            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

              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
              • First post
                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