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 9.0k 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.
    • mumblebajM Offline
      mumblebaj Module Developer @sdetweil
      last edited by mumblebaj

      @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
      Check my blog-post: https://mumblebaj.xyz/
      Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @mumblebaj
        last edited by

        @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

        mumblebajM 2 Replies Last reply Reply Quote 0
        • mumblebajM Offline
          mumblebaj Module Developer @sdetweil
          last edited by

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

          Check out my modules at: https://github.com/mumblebaj?tab=repositories
          Check my blog-post: https://mumblebaj.xyz/
          Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

          1 Reply Last reply Reply Quote 0
          • mumblebajM Offline
            mumblebaj Module Developer @sdetweil
            last edited by

            @sdetweil When I ran the mm_backup.sh I saw this error but it created the output in the MM_backup folder as expected.

            usage: git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [<directory>]
            
                --template <template-directory>
                                      directory from which templates will be used
                --bare                create a bare repository
                --shared[=<permissions>]
                                      specify that the git repository is to be shared amongst several users
                -q, --quiet           be quiet
                --separate-git-dir <gitdir>
                                      separate git dir from working tree
            

            Is this because of some options that I did not specify? After the output was created I just manually pushed to a private directory on git.

            Check out my modules at: https://github.com/mumblebaj?tab=repositories
            Check my blog-post: https://mumblebaj.xyz/
            Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

            S 2 Replies Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @mumblebaj
              last edited by sdetweil

              @mumblebaj probably git version before 2.28

              the primary branch name option didn’t come in til 2.28. 0

              i have

              git --version
              git version 2.34.1
              

              I will add a check…

              to upgrade git (don’t do it for these scripts… I have fixed the script to not need this capability, just documenting how)

              sudo add-apt-repository -y ppa:git-core/ppa
              sudo apt update
              sudo apt install git -y
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              mumblebajM 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @mumblebaj
                last edited by sdetweil

                @mumblebaj I pushed a change to set the primary branch name a different way…

                give it a try

                backup to some other folder (and then u can delete that folder)

                ./mm_backup.sh -b somefolder
                

                just pushed a change to create the output folder if it doesn’t exist, instead of error…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                mumblebajM 1 Reply Last reply Reply Quote 0
                • mumblebajM Offline
                  mumblebaj Module Developer @sdetweil
                  last edited by

                  @sdetweil Awesome. That was clean.

                  Check out my modules at: https://github.com/mumblebaj?tab=repositories
                  Check my blog-post: https://mumblebaj.xyz/
                  Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                  1 Reply Last reply Reply Quote 0
                  • mumblebajM Offline
                    mumblebaj Module Developer @sdetweil
                    last edited by

                    @sdetweil My git version is 2.20.1. Guess I need to update it.

                    Check out my modules at: https://github.com/mumblebaj?tab=repositories
                    Check my blog-post: https://mumblebaj.xyz/
                    Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @mumblebaj
                      last edited by

                      @mumblebaj said in So I have a question about backup:

                      Guess I need to update it.

                      only if u need something

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      mumblebajM 1 Reply Last reply Reply Quote 0
                      • mumblebajM Offline
                        mumblebaj Module Developer @sdetweil
                        last edited by

                        @sdetweil Right now, not. MM runs perfect as is. I’ll leave it for now. :beaming_face_with_smiling_eyes:

                        Check out my modules at: https://github.com/mumblebaj?tab=repositories
                        Check my blog-post: https://mumblebaj.xyz/
                        Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                        S 1 Reply Last reply Reply Quote 1
                        • S Do not disturb
                          sdetweil @mumblebaj
                          last edited by

                          @mumblebaj i don’t want to force people to upgrade, thanks for the report and test results

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          mumblebajM 1 Reply Last reply Reply Quote 0
                          • mumblebajM Offline
                            mumblebaj Module Developer @sdetweil
                            last edited by

                            @sdetweil No worries and a pleasure.

                            Check out my modules at: https://github.com/mumblebaj?tab=repositories
                            Check my blog-post: https://mumblebaj.xyz/
                            Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

                              @sdetweil hey thanks a lot. I appreciate that
                              I will definitely check it out
                              I kind of made my own. It’s very basic but seems to do the trick
                              it is menu-driven so I can choose which modules I want to backup or restore
                              I’m fairly new at writing scripts. They are a lot of fun

                              S 1 Reply Last reply Reply Quote 1
                              • S Do not disturb
                                sdetweil @Ray
                                last edited by

                                @ray said in So I have a question about backup:

                                I’m fairly new at writing scripts. They are a lot of fun

                                yes, indeed… i learn new stuff all the time (like parameter handling this time)

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                R 1 Reply Last reply Reply Quote 0
                                • AssassinsA Offline
                                  Assassins
                                  last edited by

                                  Or you Can backup the Hole disk up with :
                                  https://github.com/The-Exterminator/PiShrink-to-Crontab

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

                                    @sdetweil sorry it’s been so long since I replied to this form.
                                    So I wanted to just let you know I did make my own backup and restore scripts.
                                    The backup is pretty simple. It just makes a copy of my modules folder and stores it in a safe place.

                                    The restore is a little bit different. It will restore the module folder to its original location and then use npm install in each folder.
                                    It worked perfectly

                                    I tested it Under virtual disk. I install magic. Mayor the traditional way and then use my restore program and it worked perfectly.

                                    I wanted to thank you for all your help and your ideas

                                    S 1 Reply Last reply Reply Quote 1
                                    • S Do not disturb
                                      sdetweil @Ray
                                      last edited by

                                      @ray no problem… the fact that you have backup and restore is the good thing…

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      • 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