Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Backup auf NAS ... ich bekomme es einfach nicht hin.

    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

    Backup auf NAS ... ich bekomme es einfach nicht hin.

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

      @dr-pie
      9537ccfa-7b47-4627-bdec-45e291026669-grafik.png
      Ob "Mount mit Option 'Cache Loose'" wirklich benötigt wird, weiß ich nicht.
      Hauptsache: Funktioniert einwandfrei.
      Auf dem Ordner müssen natürlich die passenden Berechtigungen gesetzt sein.

      Dr.Pie Thomas Braun 2 Replies Last reply Reply Quote 0
      • Dr.Pie
        Dr.Pie @Codierknecht last edited by

        @codierknecht Die Rechte sind richtig vergeben.
        Meine Einstellungen sind genau so wie du sie gepostet hast.

        Komisches Ding.

        Ich werde mal sehen ob ich mir irgendeine Routine schreibe die die Sicherungen von Drive abholt, auf das NAS kopiert und dann da löscht.

        Danke für deine Ausdauer. 👍

        Thomas Braun 4 Replies Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Dr.Pie last edited by

          @dr-pie

          Was steht denn in deiner /etc/fstab drin?
          Wobei man die eigentlich nicht braucht, es sei denn man verwendet im Backitup-Adapter die Experten-Einstellungen.

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

            @codierknecht sagte in Backup auf NAS ... ich bekomme es einfach nicht hin.:

            Ob "Mount mit Option 'Cache Loose'" wirklich benötigt wird, weiß ich nicht.

            Bislang wohl nur auf dem FritzNAS und nodejs>18.irgendwas

            Codierknecht 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Dr.Pie last edited by Thomas Braun

              @dr-pie

              Ich glaube du bist da über einen Bug gestolpert. Wenn ich hier bei mir die Experten-Einstellungen rückgängig mache und auch in meiner fstab nichts mehr dazu drin habe (Wie es dann richtig ist) bekomme ich auch diese Meldungen:

              Started iobroker ...
              [DEBUG] [mount] - cifs-mount command: "mount -t cifs -o username=iobroker,password=****,noserverino,cache=loose,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777,vers=3.1.1 //fritz.nas/FRITZ.NAS/Hitachi-HTS545012B9SA00-01/iobbackups/chet /opt/iobroker/backups"
              [DEBUG] [mount] - first mount attempt with smb option failed. try next mount attempt without smb option ...
              [DEBUG] [mount] - cifs-mount command: "mount -t cifs -o username=iobroker,password=****,noserverino,cache=loose,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777 //fritz.nas/FRITZ.NAS/Hitachi-HTS545012B9SA00-01/iobbackups/chet /opt/iobroker/backups"
              [ERROR] [mount] - [undefined Error: Command failed: mount -t cifs -o username=iobroker,password=****,noserverino,cache=loose,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777 //fritz.nas/FRITZ.NAS/Hitachi-HTS545012B9SA00-01/iobbackups/chet /opt/iobroker/backups
              mount.cifs: permission denied: no match for /opt/iobroker/backups found in /etc/fstab
              
              [DEBUG] [mount] - Error: Command failed: mount -t cifs -o username=iobroker,password=****,noserverino,cache=loose,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777 //fritz.nas/FRITZ.NAS/Hitachi-HTS545012B9SA00-01/iobbackups/chet /opt/iobroker/backups
              mount.cifs: permission denied: no match for /opt/iobroker/backups found in /etc/fstab
              
              [DEBUG] [iobroker] - host.chet 8869 states saved
              
              [DEBUG] [iobroker] - host.chet 11163 objects saved
              
              [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2024_04_16-00_25_10_chet_backupiobroker.tar.gz
              
              [DEBUG] [iobroker] - This backup can only be restored with js-controller version up from 4.1
              
              [DEBUG] [iobroker] - done
              [DEBUG] [historyDB] - compress from historyDB started ...
              [DEBUG] [historyDB] - Packed 18MB so far...
              [DEBUG] [historyDB] - Packed 38MB so far...
              [DEBUG] [historyDB] - Packed 59MB so far...
              [DEBUG] [historyDB] - Packed 77MB so far...
              [DEBUG] [historyDB] - Packed 95MB so far...
              [DEBUG] [historyDB] - Packed 113MB so far...
              [DEBUG] [historyDB] - Packed 130MB so far...
              [DEBUG] [historyDB] - Packed 147MB so far...
              [DEBUG] [historyDB] - Packed 163MB so far...
              [DEBUG] [historyDB] - Packed 182MB so far...
              [DEBUG] [historyDB] - Packed 200MB so far...
              [DEBUG] [historyDB] - Packed 218MB so far...
              [DEBUG] [historyDB] - Packed 234MB so far...
              [DEBUG] [historyDB] - Packed 249MB so far...
              [DEBUG] [historyDB] - Packed 263MB so far...
              [DEBUG] [historyDB] - Packed 281MB so far...
              [DEBUG] [historyDB] - Packed 298MB so far...
              [DEBUG] [historyDB] - Packed 315MB so far...
              [DEBUG] [historyDB] - Packed 331MB so far...
              [DEBUG] [historyDB] - Packed 347MB so far...
              [DEBUG] [historyDB] - Backup created: /opt/iobroker/backups/historyDB_2024_04_16-00_25_20_chet_backupiobroker.tar.gz
              [DEBUG] [historyDB] - done
              [DEBUG] [zigbee] - found zigbee database: zigbee.0,zigbee.1
              [DEBUG] [zigbee] - done
              [DEBUG] [javascripts] - Created javascript_tmp directory: "/opt/iobroker/backups/tmpScripts"
              [DEBUG] [javascripts] - found Script: awtrix
              [DEBUG] [javascripts] - found Script: dwd_uwz_nina_warnungen
              [DEBUG] [javascripts] - found Script: frostwarner
              [DEBUG] [javascripts] - found Script: lautstaerke_bad
              [DEBUG] [javascripts] - found Script: lautstaerke_kueche
              [DEBUG] [javascripts] - found Script: nuki_ext_wohnungstuer_entriegelt
              [DEBUG] [javascripts] - found Script: paketlieferungen
              [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: treppenhaus_licht_ble
              [DEBUG] [javascripts] - found Script: treppenhaus_licht_hub
              [DEBUG] [javascripts] - found Script: tuerklingel_laeutet
              [DEBUG] [javascripts] - found Script: usv_warner
              [DEBUG] [javascripts] - found Script: wohnung_verlassen
              [DEBUG] [javascripts] - found Script: zuhause_verlassen
              [DEBUG] [javascripts] - found Script: nuki_extended_restart_fix
              [DEBUG] [javascripts] - found Script: solix2mqtt
              [DEBUG] [javascripts] - found Script: stromzaehler2
              [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_2024_04_16-00_28_47_chet_backupiobroker.tar.gz
              [DEBUG] [javascripts] - done
              [DEBUG] [cifs] - used copy path: /FRITZ.NAS/Hitachi-HTS545012B9SA00-01/iobbackups/chet
              [DEBUG] [cifs] - done
              [DEBUG] [googledrive] - Google Drive: Copy iobroker_2024_04_16-00_25_10_chet_backupiobroker.tar.gz...
              [DEBUG] [googledrive] - Google Drive: Copy historyDB_2024_04_16-00_25_20_chet_backupiobroker.tar.gz...
              [DEBUG] [googledrive] - Google Drive: Copy zigbee.0_2024_04_16-00_28_46_chet_backupiobroker.tar.gz...
              [DEBUG] [googledrive] - Google Drive: Copy zigbee.1_2024_04_16-00_28_46_chet_backupiobroker.tar.gz...
              [DEBUG] [googledrive] - Google Drive: Copy javascripts_2024_04_16-00_28_47_chet_backupiobroker.tar.gz...
              [DEBUG] [googledrive] - done
              [ERROR] [clean] - Backup files not deleted from /opt/iobroker/backups because some errors.
              [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
              
              1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Dr.Pie last edited by

                @dr-pie

                Nee, doch kein Fehler. Aber du musst als root/sudo mounten, wenn in der /etc/fstab kein Eintrag ist.
                Und ich vermute (hoffe), das deine SMB-Version nicht mehr 2 sondern 3.1.1 ist.

                1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Dr.Pie last edited by

                  @dr-pie sagte in Backup auf NAS ... ich bekomme es einfach nicht hin.:

                  Meine Einstellungen sind genau so wie du sie gepostet hast.

                  Nein, sind sie nicht. Du hast den Haken bei 'mounten als root' nicht drin.

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

                    @thomas-braun sagte in Backup auf NAS ... ich bekomme es einfach nicht hin.:

                    Bislang wohl nur auf dem FritzNAS und nodejs>18.irgendwas

                    Passt. Funktioniert auch ohne die Option problemlos.

                    Started iobroker ...
                    [DEBUG] [mount] - cifs-mount command: "sudo mount -t cifs -o username=iobroker,password=****,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777,vers=3.1.1 //192.168.178.5/ioBroker/Backup /opt/iobroker/backups"
                    [DEBUG] [mount] - mount successfully completed
                    [DEBUG] [mount] - done
                    [DEBUG] [iobroker] - host.iobroker 6206 states saved
                    [DEBUG] [iobroker] - host.iobroker 8223 objects saved
                    [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2024_04_16-07_33_35_backupiobroker.tar.gz
                    [DEBUG] [iobroker] - This backup can only be restored with js-controller version up from 4.1
                    

                    @Dr-Pie
                    Wie @Thomas-Braun schon schreibt: Du mountest ohne "sudo".
                    Die Einstellungen im NAS passen auch?

                    e0dd955c-157d-4966-a7bc-ca4a8f722c86-image.png

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

                      Ich hänge mich hier mal mit rein, weil ich das gleiche Problem habe:

                      Started iobroker ...
                      [DEBUG] [mount] - cifs-mount command: "sudo mount -t cifs -o username=Backup-User,password=****,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777,vers=3.1.1 //192.168.115.21/Backups/ioBroker/Backups /opt/iobroker/backups"
                      [DEBUG] [mount] - first mount attempt with smb option failed. try next mount attempt without smb option ...
                      [DEBUG] [mount] - cifs-mount command: "sudo mount -t cifs -o username=Backup-User,password=****,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777 //192.168.115.21/Backups/ioBroker/Backups /opt/iobroker/backups"
                      [ERROR] [mount] - [undefined Error: Command failed: sudo mount -t cifs -o username=Backup-User,password=****,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777 //192.168.115.21/Backups/ioBroker/Backups /opt/iobroker/backups
                      mount error(1): Operation not permitted
                      Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
                      
                      [DEBUG] [mount] - Error: Command failed: sudo mount -t cifs -o username=Backup-User,password=****,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777 //192.168.115.21/Backups/ioBroker/Backups /opt/iobroker/backups
                      mount error(1): Operation not permitted
                      Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
                      

                      Hier meine Einstellungen:

                      b0263759-eb60-4559-8c95-c4a1351286e5-image.png

                      1d1d755a-3d6e-4b8b-ab3a-248981bd77e2-image.png

                      1dfc9d19-919e-4e62-96c2-cecb13d0a86c-image.png

                      Vielleicht gibt es ja parallelen?

                      MartinP 1 Reply Last reply Reply Quote 0
                      • MartinP
                        MartinP @myssv last edited by

                        @myssv said in Backup auf NAS ... ich bekomme es einfach nicht hin.:

                        mount error(1): Operation not permitted

                        Auf was für einer Plattform läuft Dein iobroker?
                        Womöglich unter Proxmox in einem nicht privilegierten LXC Container?

                        Mache Dir doch eine Signatur, die das beschreibt, dann werden solche Rückfragen unnötig...

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          myssv @MartinP last edited by

                          @martinp sagte in Backup auf NAS ... ich bekomme es einfach nicht hin.:

                          Womöglich unter Proxmox in einem nicht privilegierten LXC Container?

                          Ja, genau so!

                          MartinP Codierknecht 2 Replies Last reply Reply Quote 0
                          • MartinP
                            MartinP @myssv last edited by MartinP

                            @myssv Das ist genau mein Setup...

                            Ich habe damals dann folgenden Workaround gewählt - mit rsync die Dateien auf das NAS geschoben ...

                            1. Lokale Backups durch iobroker anlegen lassen
                            2. CRON-Job mit folgendem Inhalt (Password unkenntlich)
                            3 5 * * * sshpass -p "...." rsync -a /opt/iobroker/backups/* martin@debian:/mnt/backup/Martin/iobroker/
                            3 5 * * * sshpass -p "...." rsync -a /opt/iobroker/log/*.log.gz martin@debian:/mnt/backup/Martin/iobroker/Logs/
                            

                            Alternativ kannst Du das NAS Laufwerk im Proxmox Mutter-System mounten und den Plattenplatz an den LXC-Container mit Proxmox-Bordmitteln durchreichen ... dann kann man die Backups da von iobroker direkt hin schreiben lassen ...

                            Vielleicht hilft das hier:
                            https://forum.proxmox.com/threads/tutorial-unprivileged-lxcs-mount-cifs-shares.101795/

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              myssv @MartinP last edited by

                              @martinp sagte in Backup auf NAS ... ich bekomme es einfach nicht hin.:

                              Vielleicht hilft das hier:
                              https://forum.proxmox.com/threads/tutorial-unprivileged-lxcs-mount-cifs-shares.101795/

                              Vielen Dank für den Link, der mir sehr viel erklärt hat.

                              Ich habe das Backup jetzt per FTP gelöst. Alt aber bewährt.

                              Vielen Dank!

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

                                @myssv sagte in Backup auf NAS ... ich bekomme es einfach nicht hin.:

                                @martinp sagte in Backup auf NAS ... ich bekomme es einfach nicht hin.:

                                Womöglich unter Proxmox in einem nicht privilegierten LXC Container?

                                Ja, genau so!

                                Bei mir aus eben diesem Grund als privilegierter Container.
                                CIFS funzt damit dann problemlos.

                                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

                                437
                                Online

                                31.9k
                                Users

                                80.3k
                                Topics

                                1.3m
                                Posts

                                5
                                20
                                475
                                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