Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter ioBroker.backitup v3.1.x

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Test Adapter ioBroker.backitup v3.1.x

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @qqolli last edited by Thomas Braun

      @qqolli
      Ja. Auch das Verzeichnis 'scripts' hat da nix zu suchen.

      So muss das aussehen, wenn es als mountpunkt fungiert:

      echad@chet:~ $ ls -la /opt/iobroker/backups/
      total 8
      drwxrwxr-x+ 2 iobroker iobroker 4096 Apr 18 18:19 .
      drwxrwxr-x+ 6 iobroker iobroker 4096 Mar 22 17:03 ..
      echad@chet:~ $
      
      qqolli 1 Reply Last reply Reply Quote 0
      • qqolli
        qqolli @Thomas Braun last edited by

        @thomas-braun
        Komisch, ich habe das Verzeichnis per Hand komplett gelöscht:

        pi@ioBroker:~ $ ls -la /opt/iobroker/backups/
        insgesamt 16
        drwxrwxr-x+  2 iobroker iobroker 12288 Apr 18 18:38 .
        drwxrwxr-x+ 10 iobroker iobroker  4096 Apr 18 12:15 ..
        pi@ioBroker:~ $
        

        Dann das Backup gemacht und voila, wieder keine Daten auf der NAS ...

        Started iobroker ...
        [DEBUG] [mount] - noserverino option: false
        [DEBUG] [mount] - cifs-mount command: "sudo mount -t cifs -o username=backup,password=****,rw,file_mode=0777,dir_mode=0777,vers=3.1.1 //192.168.178.23/backup/ioBroker/ /opt/iobroker/backups"
        [DEBUG] [mount] - mount successfully completed
        [DEBUG] [mount] - done
        [DEBUG] [iobroker] - host.ioBroker 66323 states saved
        
        [DEBUG] [iobroker] - host.ioBroker 86178 objects saved
        
        [DEBUG] [iobroker] - done
        [DEBUG] [cifs] - done
        [DEBUG] [clean] - done
        [DEBUG] [pushover] - done
        [DEBUG] [historyHTML] - new history html values created
        [DEBUG] [historyHTML] - done
        [DEBUG] [historyJSON] - new history json values created
        [DEBUG] [historyJSON] - done
        [DEBUG] [umount] - mount activ, umount is started ...
        [DEBUG] [umount] - umount successfully completed
        [DEBUG] [umount] - done
        [EXIT] 0
        

        und das Verzeichnis ist immer noch leer nach dem erfolgreichen unmount, so wie es sein sollte.

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

          @qqolli

          Was ist denn das für ein NAS auf der anderen Seite?

          Mein (Doppel)-Backup sieht jedenfalls so aus:
          Da ist deutlich mehr los.

          Started iobroker ...
          [DEBUG] [mount] - noserverino option: true
          [DEBUG] [mount] - cifs-mount command: "sudo mount -t cifs -o username=iobroker,password=****,noserverino,rw,file_mode=0777,dir_mode=0777,vers=3.1.1 //192.168.178.1/fritz.nas/Hitachi-HTS545012B9SA00-01/iobbackups/chet /opt/iobroker/backups"
          [DEBUG] [mount] - mount successfully completed
          [DEBUG] [mount] - done
          [DEBUG] [iobroker] - host.chet 4572 states saved
          
          [DEBUG] [iobroker] - host.chet 5802 objects saved
          
          [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2022_04_18-18_51_34_backupiobroker.tar.gz
          
          [DEBUG] [iobroker] - done
          [DEBUG] [historyDB] - compress from historyDB started ...
          [DEBUG] [historyDB] - Backup created: /opt/iobroker/backups/historyDB_2022_04_18-18_51_49_backupiobroker.tar.gz
          [DEBUG] [historyDB] - done
          [DEBUG] [zigbee] - found zigbee database: zigbee.0
          [DEBUG] [zigbee] - done
          [DEBUG] [javascripts] - Created javascript_tmp directory: "/opt/iobroker/backups/tmpScripts"
          [DEBUG] [javascripts] - found Script: dwd_uwz_nina_warnungen
          [DEBUG] [javascripts] - found Script: nodemihome
          [DEBUG] [javascripts] - found Script: pakettruhe_offen
          [DEBUG] [javascripts] - found Script: ps4_waker
          [DEBUG] [javascripts] - found Script: sonnenaufgang
          [DEBUG] [javascripts] - found Script: sonnenuntergang
          [DEBUG] [javascripts] - found Script: speedtest
          [DEBUG] [javascripts] - found Script: telefon_klingelt
          [DEBUG] [javascripts] - found Script: tuerklingel_laeutet
          [DEBUG] [javascripts] - found Script: vorhaenge-sonnenschutz
          [DEBUG] [javascripts] - found Script: wohnung_verlassen
          [DEBUG] [javascripts] - found Script: wohnungstuer_entriegelt
          [DEBUG] [javascripts] - found Script: paketlieferungen
          [DEBUG] [javascripts] - found Script: treppenhaus_licht_hub
          [DEBUG] [javascripts] - found Script: treppenhaus_licht_ble
          [DEBUG] [javascripts] - Try deleting the Javascript tmp directory: "/opt/iobroker/backups/tmpScripts"
          [DEBUG] [javascripts] - Javascript tmp directory "/opt/iobroker/backups/tmpScripts" successfully deleted
          [DEBUG] [javascripts] - Backup created: /opt/iobroker/backups/javascripts_2022_04_18-18_51_50_backupiobroker.tar.gz
          [DEBUG] [javascripts] - done
          [DEBUG] [cifs] - done
          [DEBUG] [googledrive] - Google Drive: Copy iobroker_2022_04_18-18_51_34_backupiobroker.tar.gz...
          [DEBUG] [googledrive] - Google Drive: Copy historyDB_2022_04_18-18_51_49_backupiobroker.tar.gz...
          [DEBUG] [googledrive] - Google Drive: Copy zigbee.0_2022_04_18-18_51_49_backupiobroker.tar.gz...
          [DEBUG] [googledrive] - Google Drive: Copy javascripts_2022_04_18-18_51_50_backupiobroker.tar.gz...
          [DEBUG] [googledrive] - done
          [DEBUG] [clean] - done
          [DEBUG] [whatsapp] - done
          [DEBUG] [historyHTML] - new history html values created
          [DEBUG] [historyHTML] - done
          [DEBUG] [historyJSON] - new history json values created
          [DEBUG] [historyJSON] - done
          [DEBUG] [umount] - mount activ, umount is started ...
          [DEBUG] [umount] - umount successfully completed
          [DEBUG] [umount] - done
          [EXIT] 0
          
          qqolli 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @qqolli last edited by

            @qqolli

            Vielleicht aktivierst du mal die Option 'noserverino'.

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

              @thomas-braun

              Ja, ich habe alle anderen deaktiviert um mich auf das iobroker Backup zu konzentrieren.

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

                @qqolli sagte in Test Adapter Backitup v2.4.x:

                Ja, ich habe alle anderen deaktiviert um mich auf das iobroker Backup zu konzentrieren.

                Gut, da haste 'nen Punkt.

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

                  @qqolli sagte in Test Adapter Backitup v2.4.x:

                  Wobei, wenn ich ehrlich bin, noch nicht mal weiss wozu die gut ist.

                  Damit kann man steuern, ob die 'inodes' serverseitig gesetzt werden oder lokal. Beim 'FritzNAS' muss man die Option setzen, bei anderen NAS ist mir das bislang noch nicht untergekommen.

                  Wie sehen denn die Einstellungen auf dem NAS und im Backitup-Adapter bzgl. CIFS aus?

                  qqolli 2 Replies Last reply Reply Quote 0
                  • qqolli
                    qqolli @Thomas Braun last edited by

                    @thomas-braun

                    Ah, ok. Dann könnte ich die ja deaktivieren, da ich eine Synology NAS unter DSM7.1 benutzte.

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

                      @thomas-braun

                      Ich habe es mal mit Dropbox versucht, aber hier hat er auch Probleme auf dem Pi:

                      Started iobroker ...
                      [DEBUG] [iobroker] - host.ioBroker 66359 states saved
                      
                      [DEBUG] [iobroker] - host.ioBroker 86226 objects saved
                      
                      [DEBUG] [iobroker] - done
                      [ERROR] [dropbox] - Dropbox: File "/opt/iobroker/backups/iobroker_2022_04_18-20_14_29_backupiobroker.tar.gz" not found
                      [DEBUG] [dropbox] - done
                      [DEBUG] [clean] - done
                      [DEBUG] [pushover] - done
                      [DEBUG] [historyHTML] - new history html values created
                      [DEBUG] [historyHTML] - done
                      [DEBUG] [historyJSON] - new history json values created
                      [DEBUG] [historyJSON] - done
                      [EXIT] 0
                      

                      Bei cifs geht es, aber keine Daten auf der NAS.

                      Ich weiß echt nicht, was man da noch machen kann (bin aber auch kein Experte).

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

                        @qqolli sagte in Test Adapter Backitup v2.4.x:

                        File "/opt/iobroker/backups/iobroker_2022_04_18-20_14_29_backupiobroker.tar.gz" not found

                        Warum wird denn das File nicht angelegt?

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

                          @thomas-braun
                          Bei Dropbox weiss ich es nicht. Bei cifs sieht man, wenn man auf dem Raspi schnell genug nachschaut, wie das NAS-Verzeichnis tatsächlich gespiegelt wird. Nutzt aber am Ende leider auch nichts, da die Daten nicht auf der NAS landen, obwohl es vom Adapter behauptet wird.

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

                            @qqolli sagte in Test Adapter Backitup v2.4.x:

                            gespiegelt wird

                            Nicht gespiegelt, das ist wirklich das entfernte Dateisystem, das da am mountpunkt eingehängt wird. Das ist ja der Vorteil zum 'dummem FTP'.

                            Funktioniert denn ein simples

                            iobroker backup
                            

                            Ganz losgelöst von Dateiübertragungen auf ein NAS.

                            simatec qqolli 2 Replies Last reply Reply Quote 0
                            • simatec
                              simatec Developer Most Active @Thomas Braun last edited by

                              @thomas-braun Hier wäre auch interessant, ob denn ein lokales Backup funktioniert.

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

                                @qqolli Ein FTP und CIFS zusammen ist keine gute Idee

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

                                  @thomas-braun

                                  pi@ioBroker:~ $ iobroker backup
                                  host.ioBroker 66695 states saved
                                  host.ioBroker 86674 objects saved
                                  /usr/bin/iobroker: Zeile 8: 23540 Getötet                sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
                                  pi@ioBroker:~ $ 
                                  

                                  Kling nicht so gut, oder? Das iobroker-Verzeichnis ist leer (sollte das so sein bei einem lokalen Backup?)

                                  pi@ioBroker:~ $ ls -al /opt/iobroker/backups/
                                  insgesamt 16
                                  drwxrwxr-x+  2 iobroker iobroker 12288 Apr 18 18:38 .
                                  drwxrwxr-x+ 10 iobroker iobroker  4096 Apr 18 12:15 ..
                                  pi@ioBroker:~ $ 
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @qqolli last edited by

                                    @qqolli

                                    Da springt das Backup selber wohl aus dem Gleis, das hat mit CIFS oder FTP nix zu tun.

                                    sudo -H -u iobroker whoami
                                    

                                    liefert?

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

                                      @thomas-braun

                                      Liefert:

                                      pi@ioBroker:~ $ sudo -H -u iobroker whoami
                                      iobroker
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @qqolli last edited by Thomas Braun

                                        @qqolli

                                        Gut, dann ist zumindest sudo richtig.
                                        Was an der Stelle dann im Code steht und bei dir zu einem nicht erledigten Backup führt muss sich dann wer anders anschauen, da hab ich keine Aktien drin.

                                        /usr/bin/iobroker: Zeile 8: 23540 Getötet                sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
                                        

                                        scheint mir aber auch nicht vollständig zu sein.

                                        qqolli 2 Replies Last reply Reply Quote 0
                                        • qqolli
                                          qqolli @Thomas Braun last edited by

                                          @thomas-braun

                                          Hab nochmal geschaut, das war alles was er angezeigt hat.

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

                                            @qqolli

                                            iobroker stop
                                            iobroker fix
                                            iobroker update -i
                                            iobroker list instances
                                            

                                            und das immer beliebte nodeJS

                                            sudo ln -s /usr/bin/node /usr/bin/nodejs
                                            which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                            

                                            ist aber sauber?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            393
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            backitup backitup backup ccu history mysql redis restore restore backup
                                            169
                                            2767
                                            2217774
                                            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