Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [HowTo] ioBroker Restore unter Linux durchführen

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [HowTo] ioBroker Restore unter Linux durchführen

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      schroedi64 @wendy2702 last edited by

      @wendy2702 Das File habe ich mit WinSCP in den Ordner kopiert. Keine Ahnung, welche Rechte/User zugeordnet sind. Wie finde ich das heraus?

      Thomas Braun simatec 2 Replies Last reply Reply Quote -1
      • Thomas Braun
        Thomas Braun Most Active @schroedi64 last edited by

        @schroedi64

        ls -la /opt/iobroker/backups
        
        S 1 Reply Last reply Reply Quote 0
        • S
          schroedi64 @simatec last edited by

          @simatec Das Backup wurde mit Backitup erstellt. Allerdings mit Version 1.o.o oder so; daher mit "minimal" vorangestellt. Habe ich entfernt. Das Problem tritt aber auch auf, wenn ich das Backup per Konsole erstelle.

          1 Reply Last reply Reply Quote 0
          • S
            schroedi64 @Thomas Braun last edited by

            @thomas-braun Sieht für mich jetzt so aus, dass Schreib/Leserechte dem User pi zugeordnet sind. Müsste ja wohl User iobroker sein. Wie ändere ich das?

            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @schroedi64 last edited by

              @schroedi64 sagte in [HowTo] ioBroker Restore unter Linux durchführen:

              Sieht für mich jetzt so aus, dass Schreib/Leserechte dem User pi zugeordnet sind.

              Und wie sieht es für deine Helfer aus?

              S 1 Reply Last reply Reply Quote 0
              • S
                schroedi64 @Thomas Braun last edited by

                @thomas-braun Wenn ich wüsste, wie ich die Bilschirmausgabe der Konsole (Putty) hierhin kopieren kann ...

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @schroedi64 last edited by

                  @schroedi64
                  Text markieren, Text kopieren, Text in CodeTags eingebettet hier ins Forum einfügen.

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    schroedi64 @Thomas Braun last edited by

                    @thomas-braun pi@iobroker:~ $ ls -la /opt/iobroker/backups
                    total 2320
                    drwxrwxr-x+ 2 iobroker iobroker 4096 Apr 1 16:23 .
                    drwxrwxr-x+ 6 iobroker iobroker 4096 Mar 31 16:57 ..
                    -rw-rw-r--+ 1 pi pi 2365677 Apr 1 16:16 2022_04_01-16_16_37_backupiobroker.tar.gz

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @schroedi64 last edited by

                      @schroedi64

                      chown iobroker:iobroker /opt/iobroker/backups/2022_04_01-16_16_37_backupiobroker.tar.gz
                      
                      1 Reply Last reply Reply Quote 0
                      • S
                        schroedi64 last edited by

                        @thomas-braun said in [HowTo] ioBroker Restore unter Linux durchführen:

                        chown iobroker:iobroker /opt/iobroker/backups/2022_04_01-16_16_37_backupiobroker.tar.gz
                        Dann kommt bei mir : pi@iobroker:~ $ chown iobroker:iobroker /opt/iobroker/backups/2022_04_01-16_16_37_backupiobroker.tar.gz
                        chown: changing ownership of '/opt/iobroker/backups/2022_04_01-16_16_37_backupiobroker.tar.gz': Operation not permitted

                        Thomas Braun S 2 Replies Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @schroedi64 last edited by

                          @schroedi64
                          Dann setz noch ein sudo davor.

                          1 Reply Last reply Reply Quote 0
                          • S
                            schroedi64 @schroedi64 last edited by

                            @schroedi64 Hat leider nicht geholfen

                            code_text
                            ``` 2022-04-01 17:07:52.710 - info: backitup.0 (1528) starting. Version 2.3.3 in /opt/iobroker/node_modules/iobroker.backitup, node: v14.19.1, js-controller: 4.0.21
                            2022-04-01 17:07:52.822 - error: backitup.0 (1528) [ERROR] [iobroker] host.iobroker Cannot extract from file "/opt/iobroker/backups/2022_04_01-16_16_37_backupiobroker.tar.gz"
                            2022-04-01 17:07:52.936 - info: backitup.0 (1528) [iobroker] backup was activated at 02:40 every 1 day(s)
                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @schroedi64 last edited by

                              @schroedi64
                              Kann natürlich sein, dass ein Backup aus Version 1 so anders ist, dass es mit V2 nicht gelesen werden kann. Hat sich ja einiges geändert inzwischen.

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                schroedi64 @Thomas Braun last edited by

                                @thomas-braun Ist nur komisch, dass der Fehler auch kommt, wenn ich in der alten Installation jetzt per Konsole ein Backup mache, die Backup-Datei manuell auf meinen Windows-Rechner kopiere, die alte Installation beende, die neue starte, die Backup-Datei vom Windows-Rechner in den Ordner backups kopiere und dann per Konsole Restore starte. Muss ich wohl mit der bisherigen Installation leben.😞

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

                                  @schroedi64 Du hast die Frage nicht beantwortet, wie das Backup erstellt wurde

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    schroedi64 @simatec last edited by

                                    @simatec Ich habe das letzte Backup heute über die Konsole erstellt

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

                                      @schroedi64
                                      Dann musst du es auch so wiederherstellen.

                                      iob restore <dateiname.tar.gz>
                                      
                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        schroedi64 @simatec last edited by

                                        @simatec Ich habe also folgendes gemacht: -
                                        -Backup mit Konsole auf altem System
                                        -Backupdatei mit WinSCP auf Windows-Rechner
                                        -Altes System runtergefahren; neues System gestartet
                                        -Backupdatei mit WinSCP von Windows-Rechner nach opt/iobroker/backups kopiert
                                        -Schreib/Leserechte auf iobroker geändert

                                        pi@iobroker:~ $ ls -la /opt/iobroker/backups
                                        total 2320
                                        drwxrwxr-x+ 2 iobroker iobroker    4096 Apr  1 17:07 .
                                        drwxrwxr-x+ 6 iobroker iobroker    4096 Mar 31 16:57 ..
                                        -rw-rw-r--+ 1 iobroker iobroker 2365677 Apr  1 16:16 2022_04_01-16_16_37_backupiobroker.tar.gz
                                        
                                        ``
                                        
                                        ```Dann Restore mit Konsole versucht
                                        pi@iobroker:~ $ iobroker stop
                                        pi@iobroker:~ $ iobroker restore 0
                                        host.iobroker Using backup file 2022_04_01-16_16_37_backupiobroker.tar.gz
                                        host.iobroker Cannot extract from file "/opt/iobroker/backups/2022_04_01-16_16_37_backupiobroker.tar.gz"
                                        
                                        

                                        `Ergebnis: Geht nicht

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

                                          @schroedi64
                                          Mach mal ein iob fix und gebe dem Backupfile einfach mal ein paar mehr Rechte

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            schroedi64 @simatec last edited by

                                            @simatec Hat leider nichts gebracht

                                            pi@iobroker:~ $ iobroker stop
                                            pi@iobroker:~ $ iob fix
                                            library: loaded
                                            Library version=2022-02-10
                                            
                                            ==========================================================================
                                            
                                                Welcome to the ioBroker installation fixer!
                                                Script version: 2022-02-13
                                            
                                                You might need to enter your password a couple of times.
                                            
                                            ==========================================================================
                                            
                                            
                                            ==========================================================================
                                                Installing prerequisites (1/3)
                                            ==========================================================================
                                            
                                            Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
                                            Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
                                            Hit:3 https://deb.nodesource.com/node_14.x bullseye InRelease
                                            Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.2 MB]
                                            Fetched 13.2 MB in 11s (1,176 kB/s)
                                            Reading package lists... Done
                                            Installed gcc-c++
                                            Installed python-dev
                                            
                                            ==========================================================================
                                                Checking ioBroker user and directory permissions (2/3)
                                            ==========================================================================
                                            
                                            Created /etc/sudoers.d/iobroker
                                            Fixing directory permissions...
                                            
                                            ==========================================================================
                                                Checking autostart (3/3)
                                            ==========================================================================
                                            
                                            Enabling autostart...
                                            Autostart enabled!
                                            
                                            ==========================================================================
                                            
                                                Your installation was fixed successfully
                                                Run iobroker start to start ioBroker again!
                                            
                                            ==========================================================================
                                            
                                            pi@iobroker:~ $ iobroker restore 0
                                            host.iobroker Using backup file 2022_04_01-16_16_37_backupiobroker.tar.gz
                                            host.iobroker Cannot extract from file "/opt/iobroker/backups/2022_04_01-16_16_37_backupiobroker.tar.gz"
                                            
                                            
                                            Homoran simatec 2 Replies 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

                                            523
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            backitup how-to restore restore backup
                                            76
                                            513
                                            109303
                                            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