Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Files auf Fritz.nas die älter als x Tage sind löschen

    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

    Files auf Fritz.nas die älter als x Tage sind löschen

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      Wolfi last edited by Wolfi

      Suche eine Möglichkeit Files auf Fritz.nas die älter als x Tage sind zu löschen.
      Täglicher Job
      Per blockly oder java script cron job oder sonst irgendwie?
      Kennt jemand eine Möglichkeit unter iobroker?

      liv-in-sky 1 Reply Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @Wolfi last edited by

        @wolfi

        z.b

        ein bash script welches über cifs die fritzbox mountet

        • dann sowas hier
        find /DatenNAS/mSata/PROXMOX/exe -name "*.~[4-9]*" -type f -delete
        
        • dann wieder umount

        beispiel gesamt:

        #!/bin/bash
        
        mount -t cifs -o vers=3.0,username=xxxx,password=xxxx,domain=HOME //192.168.178.199/mSata /LinuxBackup
        
        mount | grep LinuxBackup
        
        if [ $? -eq 0 ]; then
        
        find /LinuxBackup/IOBROKER59-2/states/ -name "*.txt" -mtime +1 -type f -delete
        
        umount /LinuxBackup
        
        fi
        exit 0
        
        
        

        aufrufen über cron-job in linux oder exec in javascript

        ansonsten direct über javascript - findet man einiges in google: https://stackoverflow.com/questions/19167297/in-node-delete-all-files-older-than-an-hour

        W 1 Reply Last reply Reply Quote 0
        • W
          Wolfi @liv-in-sky last edited by

          @liv-in-sky
          Danke werde probieren

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

            @wolfi

            Den mount würde ichit anderen Optionen machen:

            mount -t cifs -o vers=3.1.1,noserverino
            

            Die Fritzbox braucht u.U. die noserverino Option und der Dialekt ist auch bei aktuellen Firmwares höher.

            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

            805
            Online

            31.9k
            Users

            80.3k
            Topics

            1.3m
            Posts

            3
            4
            287
            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