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

Question about backup script

Scheduled Pinned Locked Moved General Discussion
30 Posts 3 Posters 3.2k Views 3 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.
  • S Offline
    sdetweil @rkorell
    last edited by sdetweil Mar 3, 2025, 4:06 PM Mar 3, 2025, 1:45 PM

    @rkorell the backup copies the url of the module source

    where you cloned from,
    see git remote -v in any module folder

    now some modules create files, token.json for example
    if i find extra files i need a place to store them, so the module name for a folder is created

    the module_list file contains the list of modules needed
    and their urls. they are reinstalled

    the readme says this

    this is not a binary backup

    you can use this to move to a new system or new sd card (changing processor architectures too, pc to pi, pi to pc… whatever)

    yes the folder MM_backup by default is a git source repository
    and git will track any changes (new backup differences)

    each time you back up, i create a marker to label this event, in git called a tag

    and you can restore any one of those and compare two tags to see the difference

    the private repo is because the files are saved in source form, and contain apikeys and maybe other credentials

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    S R 2 Replies Last reply Mar 3, 2025, 2:00 PM Reply Quote 1
    • S Offline
      sdetweil @sdetweil
      last edited by Mar 3, 2025, 2:00 PM

      @rkorell you got prompted twice for username because git needs to know who you are and how to reach you if there are concerns about your “commit” to the repo. you csn see this in git log
      output in the backup folder
      this is username and email address

      then the push , github needs to know . this is the password prompt from git

      you could use git config to save those, and avoid the prompts

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 1 Reply Last reply Mar 3, 2025, 3:55 PM Reply Quote 0
      • R Offline
        rkorell @sdetweil
        last edited by Mar 3, 2025, 3:55 PM

        @sdetweil said :

        you could use git config to save those, and avoid the prompts

        Sounds cool.
        How can I do this?

        Thanks!
        Ralf

        S 1 Reply Last reply Mar 3, 2025, 3:57 PM Reply Quote 0
        • S Offline
          sdetweil @rkorell
          last edited by Mar 3, 2025, 3:57 PM

          @rkorell google is your friend

          how to use git config

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          R 1 Reply Last reply Mar 3, 2025, 3:58 PM Reply Quote 0
          • R Offline
            rkorell @sdetweil
            last edited by Mar 3, 2025, 3:57 PM

            @sdetweil said in Question about backup script:

            if i find extra files i need a place to store them, so the module name for a folder is created

            Thanks for this explanation - this is what I had assumed.

            Regards,
            Ralf

            1 Reply Last reply Reply Quote 0
            • R Offline
              rkorell @sdetweil
              last edited by Mar 3, 2025, 3:58 PM

              @sdetweil said in Question about backup script:

              how to use git config

              OK, thanks.
              I had understood that this is a config of your scripts, sorry.

              S 1 Reply Last reply Mar 3, 2025, 4:00 PM Reply Quote 0
              • S Offline
                sdetweil @rkorell
                last edited by Mar 3, 2025, 4:00 PM

                @rkorell no… you can store config settings for git (the source code repository tool MagicMirror uses and most modules use (…git clone))
                and the way to make the repository that the backup uses

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Mar 3, 2025, 4:11 PM Reply Quote 1
                • R Offline
                  rkorell @sdetweil
                  last edited by rkorell Mar 3, 2025, 4:11 PM Mar 3, 2025, 4:11 PM

                  @sdetweil as far as google told me it seems, I need to install Git CLI - which is not easy available for Raspi.

                  Any hint?

                  Sorry!
                  Ralf

                  R S 2 Replies Last reply Mar 3, 2025, 4:17 PM Reply Quote 0
                  • R Offline
                    rkorell @rkorell
                    last edited by rkorell Mar 3, 2025, 4:17 PM Mar 3, 2025, 4:17 PM

                    O.K,. Google is not my friend today…
                    It seems that a “.gitconfig” file will do the trick …
                    Will double check.

                    R 1 Reply Last reply Mar 3, 2025, 4:25 PM Reply Quote 0
                    • R Offline
                      rkorell @rkorell
                      last edited by Mar 3, 2025, 4:25 PM

                      Nope.
                      Doesnt’t work.
                      Have created a “.gitconfig” file with

                      git config --global --edit
                      

                      Entered user, email and password - but your script asks again for “user” …

                      ???

                      Thanks
                      Ralf

                      S 1 Reply Last reply Mar 3, 2025, 4:35 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        19/30
                        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