Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. IoBroker Backup einspielen

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    UNSOLVED IoBroker Backup einspielen

    This topic has been deleted. Only users with topic management privileges can see it.
    • simatec
      simatec Developer Most Active @schubi82 last edited by

      @schubi82
      Wie gesagt, ein Total Backup auf einem neuen System wiederherzustellen ist keine gute Idee.
      Das gibt nur Probleme.

      Darum hatte ich dir die Alternative geschrieben, den Ordner iobroker-data aus dem Backup zu kopieren und diesen dann in deiner neuen Installation zu platzieren.

      Das wäre noch eine saubere Lösung.

      1 Reply Last reply Reply Quote 0
      • S
        schubi82 last edited by

        Deswegen habe ich ja auf dem System mit dem wiederhergestellten total Backup nochmal ein Standard Backup erstellt und dieses in einem wieder neuen Image eingepflegt. Wenn ich es richtig gedeutet habe, hat er sich die Adapter dadurch alle neu gezogen. Es waren zwar viele seltsame Meldungen im Log, dass ich ich irgendwas mal aktualisieren könnte, aber letztendlich scheint es nun zu laufen. Ich denke das hängt womöglich mit dem "Light Image" zusammen. Vielen Dank für Deine Hilfe!

        1 Reply Last reply Reply Quote 0
        • M
          MaikB85 last edited by MaikB85

          Ich hab ein Problem beim Rückspielen des Backups. Bekomme immer Fehlermeldungen und weiß nicht wirklich wo das Problem ist:

          maik@ubuntuserver:/opt/iobroker/backups$ iobroker stop
          maik@ubuntuserver:/opt/iobroker/backups$ iobroker restore 0
          host.ubuntuserver Using backup file iobroker_2020_03_02-02_00_10_backupiobroker.tar.gz
          host.ubuntuserver Cannot extract from file "/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../../../backups/iobroker_2020_03_02-02_00_10_backupiobroker.tar.gz"
          host.ubuntuserver Cannot find extracted file from file "/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/backup.json"
          iobroker controller daemon is not running
          host.ubuntuserver OK.
          (node:6072) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/backup.json'
              at Object.openSync (fs.js:443:3)
              at Object.readFileSync (fs.js:343:35)
              at BackupRestore.restoreAfterStop (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:566:23)
              at Daemon.daemon.on (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:846:22)
              at Daemon.emit (events.js:203:15)
              at Daemon._kill (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:246:14)
              at Daemon.stop (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:185:17)
              at tar.extract.err (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:848:20)
              at process._tickCallback (internal/process/next_tick.js:68:7)
          (node:6072) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
          (node:6072) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
          

          Scheinbar kann der das nicht entpacken oder so. Kann mir da jemand bei helfen?

          Gruß Maik

          simatec 1 Reply Last reply Reply Quote 0
          • simatec
            simatec Developer Most Active @MaikB85 last edited by

            @MaikB85
            Lass mal den Installer Fix drüberlaufen.

            1 Reply Last reply Reply Quote 0
            • M
              MaikB85 last edited by MaikB85

              Bekomme den gleichen Fehler. Diesmal über den Backitup Adapter:

              ======================
              Log Backitup Restore:
              ======================
              
              [DEBUG] [iobroker] Start ioBroker Restore ...
              [ERROR] [iobroker] host.ubuntuserver Cannot extract from file "/opt/iobroker/backups/iobroker_2020_03_02-20_16_48_backupiobroker.tar.gz"
              [ERROR] [iobroker] host.ubuntuserver Cannot find extracted file from file "/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/backup.json"
              [DEBUG] [iobroker] iobroker controller daemon is not running
              [DEBUG] [iobroker] host.ubuntuserver OK.
              [ERROR] [iobroker] (node:7457) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/backup.json'
              [ERROR] [iobroker] at Object.openSync (fs.js:443:3)
              [ERROR] [iobroker] at Object.readFileSync (fs.js:343:35)
              [ERROR] [iobroker] at BackupRestore.restoreAfterStop (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:566:23)
              [ERROR] [iobroker] at Daemon.daemon.on (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:846:22)
              [ERROR] [iobroker] at Daemon.emit (events.js:203:15)
              [ERROR] [iobroker] at Daemon._kill (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:246:14)
              [ERROR] [iobroker] at Daemon.stop (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:185:17)
              [ERROR] [iobroker] at tar.extract.err (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:848:20)
              [ERROR] [iobroker] at process._tickCallback (internal/process/next_tick.js:68:7)
              [ERROR] [iobroker] (node:7457) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
              [ERROR] [iobroker] (node:7457) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
              [DEBUG] [iobroker] ioBroker Restore completed successfully
              [EXIT] 9 **** Restore completed successfully!! ****
              
              The log can be closed ...
              

              Vielleicht noch zur Info, das ist ein frisch aufgesetztes System (ubuntu-18.04.4-live-server-amd64) und iobroker inkl. NodeJS genau nach Anleitung installiert. lief auch alles ohne Probleme. Der Fix hat auch keine Fehler gebracht

              simatec 1 Reply Last reply Reply Quote 0
              • simatec
                simatec Developer Most Active @MaikB85 last edited by

                @MaikB85
                Hast du den Installer Fix laufen lassen?
                Du kannst auch noch das Backup selber auf Beschädigungen prüfen.

                M 1 Reply Last reply Reply Quote 0
                • M
                  MaikB85 @simatec last edited by MaikB85

                  @simatec sagte in IoBroker Backup einspielen:

                  @MaikB85
                  Hast du den Installer Fix laufen lassen?
                  Du kannst auch noch das Backup selber auf Beschädigungen prüfen.

                  Fix lief erfolgreich durch.

                  Hab schon verschiedene Backups probiert aber immer das gleiche.

                  Allerdings sehe ich gerade, dass ich es nichtmal manuell entpacken kann:

                  maik@ubuntuserver:/opt/iobroker/backups$ tar xfvz iobroker_2020_03_02-20_16_48_backupiobroker.tar.gz
                  
                  gzip: stdin: not in gzip format
                  tar: Child returned status 1
                  tar: Error is not recoverable: exiting now
                  
                  1 Reply Last reply Reply Quote 0
                  • S
                    SilSchm last edited by

                    Hallo,
                    ich habe gerade das gleiche Problem wie @MaikB85 . Meine SD ist tot und das Backup lässt sich aufgrund der gleichen Fehler nicht wieder einspielen.

                    1 Reply Last reply Reply Quote 0
                    • R
                      Rushmed Most Active last edited by

                      Hallo, ich scheitere auch am restore. Vll warte ich nicht lang genug.
                      Mir kommt auch komisch vor dass ich in dem per Adapter erstellten BUs nicht den iobroker-data Ordner finde. Zudem scheinen mir die Backups mit etwa 1 MB Größe bei ca. 40 Adaptern und 4 kB für Zigbee recht klein.
                      Es wird auch nur ein Mimimal BU erstellt.
                      Ist das so korrekt und lässt und lässt sich damit der ioBroker tatsächlich komplett wiederherstellen?

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        MaikB85 @Rushmed last edited by MaikB85

                        @Rushmed sagte in IoBroker Backup einspielen:

                        Hallo, ich scheitere auch am restore. Vll warte ich nicht lang genug.
                        Mir kommt auch komisch vor dass ich in dem per Adapter erstellten BUs nicht den iobroker-data Ordner finde. Zudem scheinen mir die Backups mit etwa 1 MB Größe bei ca. 40 Adaptern und 4 kB für Zigbee recht klein.
                        Es wird auch nur ein Mimimal BU erstellt.
                        Ist das so korrekt und lässt und lässt sich damit der ioBroker tatsächlich komplett wiederherstellen?

                        Also das Problem hab ich nicht. Bekomme das Archiv unter MacOS auch normal entpackt und scheint auch alles dabei zu sein. Nur unter Linux irgendwie nicht.

                        maik@ubuntuserver:/opt/iobroker/backups$ tar -xzf iobroker_2020_03_02-20_16_48_backupiobroker.tar.gz -C /
                        
                        gzip: stdin: not in gzip format
                        tar: Child returned status 1
                        tar: Error is not recoverable: exiting now
                        maik@ubuntuserver:/opt/iobroker/backups$ tar -xf iobroker_2020_03_02-20_16_48_backupiobroker.tar.gz -C /
                        tar: This does not look like a tar archive
                        
                        gzip: stdin: not in gzip format
                        tar: Child returned status 1
                        tar: Error is not recoverable: exiting now
                        maik@ubuntuserver:/opt/iobroker/backups$ 
                        

                        Kann man das irgendwie vorher entpacken und dann zurückspielen?

                        1 Reply Last reply Reply Quote 0
                        • simatec
                          simatec Developer Most Active last edited by

                          Die mit backitup oder über Konsole erstellten iobroker Backups sind in ordnung und haben keine Fehler.
                          Habe gerade bei mir alle Backups getestet.
                          Bitte pürft eure Backups ebenfalls. Dazu könnt ihr zum Beispiel unter Windows 7Zip nehmen.

                          1 Reply Last reply Reply Quote 0
                          • M
                            MaikB85 last edited by MaikB85

                            Es scheint so als würden die Backups nicht korrekt heruntergeladen werden. Ich habe über die Adapterkonfiguration von Backitup das Backups aus der Dropbox geladen. Die Datei hat aber nur ein paar Bytes.

                            Ich werde mal das Backup manuell hochladen

                            1 Reply Last reply Reply Quote 0
                            • M
                              MaikB85 last edited by MaikB85

                              Ja läuft jetzt. Backup manuell über ftp in den Backups Ordner gepackt und Restore ausgeführt

                              Ich hab jetzt wohl alles wieder drin, nur sind einige Adapter nicht wirklich installiert. Muss ich da noch was machen?

                              Edit: Hat sich erledigt, Fixer hat das Problem gelöst

                              simatec 1 Reply Last reply Reply Quote 0
                              • simatec
                                simatec Developer Most Active @MaikB85 last edited by

                                @MaikB85
                                In dem HowTo habe ich auch den Weg lokal beschrieben.
                                Alles andere ist eher experimentell ...

                                1 Reply Last reply Reply Quote 0
                                • R
                                  Rushmed Most Active last edited by Rushmed

                                  Wie groß sind eure Backups ungefähr?

                                  @simatec sagte in IoBroker Backup einspielen:

                                  Die mit backitup oder über Konsole erstellten iobroker Backups sind in ordnung und haben keine Fehler.
                                  Habe gerade bei mir alle Backups getestet.
                                  Bitte pürft eure Backups ebenfalls. Dazu könnt ihr zum Beispiel unter Windows 7Zip nehmen.

                                  Woran erkenne ich ob meine Backup okay ist?

                                  simatec M 2 Replies Last reply Reply Quote 0
                                  • simatec
                                    simatec Developer Most Active @Rushmed last edited by

                                    @Rushmed
                                    indem du es mit 7zip prüfst ... Dort gibt es die Möglichkeit das Archiv zu überprüfen

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      MaikB85 @Rushmed last edited by

                                      @Rushmed sagte in IoBroker Backup einspielen:

                                      Wie groß sind eure Backups ungefähr?

                                      @simatec sagte in IoBroker Backup einspielen:

                                      Die mit backitup oder über Konsole erstellten iobroker Backups sind in ordnung und haben keine Fehler.
                                      Habe gerade bei mir alle Backups getestet.
                                      Bitte pürft eure Backups ebenfalls. Dazu könnt ihr zum Beispiel unter Windows 7Zip nehmen.

                                      Woran erkenne ich ob meine Backup okay ist?

                                      Also meine haben 3,4MB

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        maxpd last edited by maxpd

                                        Hi, mich begrüßt diese Meldung beim Backup einspielen:

                                        
                                        pi@iobroker:/opt/iobroker $ iobroker restore 0
                                        /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:568
                                                if (parseInt(name.trim(), 10).toString() === name.trim().toString()) {
                                                                  ^
                                        
                                        TypeError: name.trim is not a function
                                            at BackupRestore.restoreBackup (/opt/iobroker/node_modules/iobroker.js-contr                   oller/lib/setup/setupBackup.js:568:27)
                                            at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js                   :1474:28)
                                            at Object.connected (/opt/iobroker/node_modules/iobroker.js-controller/lib/s                   etup.js:3087:29)
                                            at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/                   lib/states/statesInMemServer.js:184:26)
                                            at runCallback (timers.js:705:18)
                                            at tryOnImmediate (timers.js:676:5)
                                            at processImmediate (timers.js:658:5)
                                        
                                        

                                        Nach dem Einspielen alternativ mit backitup ist der iobroker nach einem Neustart nicht mehr erreichbar. In der Fritz.box bekommt er seine IP, aber der Browser sagt nur ERR_CONNECTION_REFUSED

                                        Über Konsole:

                                        pi@iobroker:/opt/iobroker $ iobroker list instances
                                          system.adapter.admin.0                 : admin       -  enabled, port: 8081, b                                                                                                             ind: 0.0.0.0, run as: admin
                                          system.adapter.chromecast.0            : chromecast  - disabled
                                          system.adapter.cloud.0                 : cloud       - disabled
                                          system.adapter.denon.0                 : denon       - disabled
                                          system.adapter.discovery.0             : discovery   - disabled
                                          system.adapter.google-sharedlocations.0: google-sharedlocations - disabled
                                          system.adapter.history.0               : history     - disabled
                                          system.adapter.hm-rega.0               : hm-rega     - disabled
                                          system.adapter.hm-rpc.0                : hm-rpc      - disabled, port: 0
                                          system.adapter.info.0                  : info        - disabled
                                          system.adapter.iot.0                   : iot         - disabled
                                          system.adapter.javascript.0            : javascript  - disabled
                                          system.adapter.lgtv.0                  : lgtv        - disabled
                                          system.adapter.mihome-vacuum.0         : mihome-vacuum - disabled, port: 54321
                                          system.adapter.ping.0                  : ping        - disabled
                                          system.adapter.sayit.0                 : sayit       - disabled, port: 0
                                          system.adapter.shelly.0                : shelly      - disabled, port: 1882, b                                                                                                             ind: 0.0.0.0
                                          system.adapter.sonoff.0                : sonoff      - disabled, port: 1883, b                                                                                                             ind: 0.0.0.0
                                          system.adapter.telegram.0              : telegram    - disabled, port: 8443, b                                                                                                             ind: 0.0.0.0
                                          system.adapter.telegram.1              : telegram    - disabled, port: 8443, b                                                                                                             ind: 0.0.0.0
                                          system.adapter.telegram.2              : telegram    - disabled, port: 8443, b                                                                                                             ind: 0.0.0.0
                                          system.adapter.terminal.0              : terminal    - disabled, port: 8088, b                                                                                                             ind: 0.0.0.0, run as: admin
                                          system.adapter.text2command.0          : text2command - disabled
                                          system.adapter.tr-064.0                : tr-064      - disabled
                                          system.adapter.web.0                   : web         - disabled, port: 8082, b                                                                                                             ind: 0.0.0.0, run as: admin
                                          system.adapter.wifilight.0             : wifilight   - disabled
                                          system.adapter.yeelight-2.0            : yeelight-2  - disabled
                                          system.adapter.zigbee.0                : zigbee      - disabled
                                        
                                        + instance is alive
                                        pi@iobroker:/opt/iobroker $ node -v4
                                        node: bad option: -v4
                                        pi@iobroker:/opt/iobroker $ node -v
                                        v10.19.0
                                        pi@iobroker:/opt/iobroker $ nodejs -v
                                        v10.19.0
                                        pi@iobroker:/opt/iobroker $ npm -v
                                        6.13.4
                                        pi@iobroker:/opt/iobroker $
                                        
                                        
                                        simatec 1 Reply Last reply Reply Quote 0
                                        • simatec
                                          simatec Developer Most Active @maxpd last edited by simatec

                                          @maxpd
                                          Entweder du gibst statt der 0 den konkreten Dateinamen statt der null an, oder du suchst mal hier im Forum nach der Fehlermeldung. Da gibt es bereits einige Themen zu

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            maxpd @simatec last edited by

                                            @simatec Aber die Fehlermeldung wäre ja irrelevant, wenn man es über backitup macht. dort wurde kein fehler gemeldet. Das Problem ist jetzt eigentlich, dass iobroker gar nicht mehr läuft.

                                            Glasfaser 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            658
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            backup iobroker
                                            11
                                            93
                                            19638
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo