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.

    Restore script cannot create Backup folder?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    13 Posts 2 Posters 281 Views 2 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

      @rkorell oops bug, rerun

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 2 Replies Last reply Reply Quote 0
      • R Offline
        rkorell @sdetweil
        last edited by

        @sdetweil cool, THANKS!

        script now is doing something :-)

        I’m really curious…

        Ralf

        1 Reply Last reply Reply Quote 0
        • R Offline
          rkorell @sdetweil
          last edited by

          @sdetweil has worked :-)

          
          pi@MagicMirrorPi5:~/MagicMirror $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror-backup-restore/main/mm_restore.sh)" -r https://github.com/rkorell/MagicMirror -f
          restoring MM configuration from /home/pi/MM_backup to /home/pi/MagicMirror
          
          trying to fetch MagicMirror from github
          folder /home/pi/MM_backup does not exist, will clone it from github
          Username for 'https://github.com': rkorell
          Password for 'https://rkorell@github.com': 
          created git branch from last tag = 10
          restored config.js and custom.css
          restoring birthdaylist
          module birthdaylist contains package.json, doing npm install
          
          restoring internet-monitor
          module internet-monitor contains package.json, doing npm install
          
          restoring MMM-Bring
          module MMM-Bring contains package.json, doing npm install
          there were files saved for this module , restoring
          
          restoring MMM-CalendarExt3Agenda
          
          restoring MMM-Config
          module MMM-Config contains package.json, doing npm install
          there were files saved for this module , restoring
          
          restoring MMM-EventHorizon
          module MMM-EventHorizon DOES NOT contain package.json
          
          restoring MMM-FrameLight
          
          restoring MMM-FRITZ-Box-Callmonitor-py3
          module MMM-FRITZ-Box-Callmonitor-py3 contains package.json, doing npm install
          
          restoring MMM-Fuel
          module MMM-Fuel contains package.json, doing npm install
          
          restoring MMM-Globe
          
          restoring MMM-JsonValue
          module MMM-JsonValue contains package.json, doing npm install
          
          restoring MMM-LogExt
          module MMM-LogExt DOES NOT contain package.json
          
          restoring MMM-Logging
          module MMM-Logging contains package.json, doing npm install
          
          restoring MMM-MagicMover
          
          restoring MMM-MoonPhase
          
          restoring MMM-MPlayer
          
          restoring MMM-MyGarbage
          module MMM-MyGarbage contains package.json, doing npm install
          
          restoring MMM-NotificationTrigger
          module MMM-NotificationTrigger DOES NOT contain package.json
          
          restoring MMM-NowPlayingOnSpotify
          module MMM-NowPlayingOnSpotify contains package.json, doing npm install
          
          restoring MMM-Profilepicture
          module MMM-Profilepicture DOES NOT contain package.json
          
          restoring MMM-Remote-Control
          module MMM-Remote-Control contains package.json, doing npm install
          there were files saved for this module , restoring
          
          restoring MMM-Strava
          module MMM-Strava contains package.json, doing npm install
          there were files saved for this module , restoring
          
          restoring MMM-SweepClock
          
          restoring MMM-SystemInfo
          module MMM-SystemInfo DOES NOT contain package.json
          
          restoring MMM-SystemStats
          module MMM-SystemStats contains package.json, doing npm install
          
          restoring MMM-Temp2IOT
          module MMM-Temp2IOT DOES NOT contain package.json
          
          restoring MMM-Todoist
          module MMM-Todoist contains package.json, doing npm install
          
          restoring MMM-ViewNotifications
          module MMM-ViewNotifications DOES NOT contain package.json
          
          restoring MMM-WiFiPassword
          module MMM-WiFiPassword DOES NOT contain package.json
          
          Checking for modules with removed libraries
          grep: MMM-LogExt
          MMM-Strava
          MMM-JsonValue
          MMM-Remote-Control
          MMM-FRITZ-Box-Callmonitor-py3
          MMM-MyGarbage
          MMM-Bring
          MMM-SystemStats
          internet-monitor
          MMM-Config
          MMM-MoonPhase
          MMM-Temp2IOT
          MMM-Todoist
          MMM-Fuel
          MMM-SystemInfo
          MMM-NotificationTrigger
          birthdaylist
          MMM-Logging
          MMM-MPlayer
          MMM-FrameLight
          MMM-NowPlayingOnSpotify/node_helper.js: File name too long
          
          restore completed, you can start MagicMirror now
          
          

          Now have to check what is working, what not …

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            rkorell @rkorell
            last edited by rkorell

            @sdetweil WOW!

            nearly all is working!

            Some local modifications are not catched (e.g. datafile for birthdaylist (to illustrate what I mean - you are somewhat familiar with birthdaylist :-) ) ).

            For unknown reasons “MMM-CalendarExt3Agenda” is not showing up - I may have to apply the fix I had seen somehow (have NOT to use this fix on my Pi4 with same mirror version (2.30.0))
            Calendar fetches are present (checked log) so it seems an error in C3A …

            By checking log I found a never seen error:

            0|MagicMir |     at node:internal/deps/undici/undici:13392:13
            0|MagicMir |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
            0|MagicMir |   [cause]: ConnectTimeoutError: Connect Timeout Error (attempted addresses: 151.101.193.164:443, 151.101.65.164:443, 151.101.129.164:443, 151.101.1.164:443, timeout: 30000ms)
            0|MagicMir |       at onConnectTimeout (/home/pi/MagicMirror/node_modules/undici/lib/core/connect.js:237:24)
            0|MagicMir |       at Immediate._onImmediate (/home/pi/MagicMirror/node_modules/undici/lib/core/connect.js:206:11)
            0|MagicMir |       at process.processImmediate (node:internal/timers:483:21) {
            0|MagicMir |     code: 'UND_ERR_CONNECT_TIMEOUT'
            0|MagicMir |   }
            0|MagicMir | } 
            0|MagicMir | [2025-03-26 04:50:09.238] [ERROR] Failed to retrieve repo info for MagicMirror: Error: Command failed: cd /home/pi/MagicMirror/ && git fetch -n --dry-run
            0|MagicMir | fatal: unable to access 'https://github.com/MagicMirrorOrg/MagicMirror.git/': Failed to connect to github.com port 443 after 133356 ms: Couldn't connect to server
            
            

            is this related to auto-update?

            And another question: On my other Mirror a restart happens when I write config.js back to raspi - this doesn’t happen on new system - can I enable this with a parameter somehow I have missed?

            Thanks a LOT for your great script and your effort behind!

            Ralf

            R S 2 Replies Last reply Reply Quote 0
            • R Offline
              rkorell @rkorell
              last edited by rkorell

              @sdetweil
              sorry, still another question…
              Your backup-script has stored the famous MMM-Pir (bugsounet’s) on my git-repository.
              The restore script does not restore this directory (I guess because the origin git repo doesn’t exist anymore - which makes sense).
              But I would at least try to get this up and running again…

              Can I restore this directory manually?
              And if possible is this done with a fully qualified path or somehow different?
              (meaning “https://github.com/rkorell/MagicMirror/tree/main/MMM-Pir”)

              so would my command be:

              git clone https://github.com/rkorell/MagicMirror/tree/main/MMM-Pir 
              

              or

              git clone https://github.com/rkorell/MagicMirror/MMM-Pir
              

              Or do I have to transfer my tar file to the new raspi and unpack it there?

              Thanks for guidance!

              Ralf

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @rkorell
                last edited by sdetweil

                @rkorell said in Restore script cannot create Backup folder?:

                Can I restore this directory manually?
                And if possible is this done with a fully qualified path or somehow different?
                (meaning “https://github.com/rkorell/MagicMirror/tree/main/MMM-Pir”)

                you could edit the MM_backup/module_list file and change the url
                and then restore from the local MM_backup to test

                if good then do another backup to make a new tag of the updated state (with the corrected url)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  rkorell @sdetweil
                  last edited by

                  @sdetweil Thanks.
                  IN the meantime I’ve figured out that the MM-Pir directorry in github repo (backup) only contains four files, so is useless for restoring…

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @rkorell
                    last edited by

                    @rkorell said in Restore script cannot create Backup folder?:

                    Some local modifications are not catched

                    oh my…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Reply Quote 1
                    • R rkorell has marked this topic as solved on
                    • S Offline
                      sdetweil @sdetweil
                      last edited by

                      @rkorell

                      thanks so much for the trouble report… fixed
                      next execution will handle it correctly and that revision of the backup will be more accurate. I noticed that I also did not preserve the file attributes (date/time, owner, permissions) , and that is corrected too…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      R 1 Reply Last reply Reply Quote 0
                      • R Offline
                        rkorell @sdetweil
                        last edited by

                        @sdetweil said in Restore script cannot create Backup folder?:

                        thanks so much for the trouble report… fixed

                        Dear Sam, you’re REALLY (!) welcome!

                        Thanks to YOU for all of your effort!

                        Ralf

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