Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Files auf Fritz.nas die älter als x Tage sind löschen

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    17
    1
    533

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    5.3k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.4k

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

Scheduled Pinned Locked Moved ioBroker Allgemein
4 Posts 3 Posters 396 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wolfi
    wrote on last edited by Wolfi
    #1

    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-skyL 1 Reply Last reply
    0
    • W 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-skyL Offline
      liv-in-skyL Offline
      liv-in-sky
      wrote on last edited by
      #2

      @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

      nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

      W 1 Reply Last reply
      0
      • liv-in-skyL liv-in-sky

        @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 Offline
        W Offline
        Wolfi
        wrote on last edited by
        #3

        @liv-in-sky
        Danke werde probieren

        Thomas BraunT 1 Reply Last reply
        0
        • W Wolfi

          @liv-in-sky
          Danke werde probieren

          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          wrote on last edited by
          #4

          @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.

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Support us

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

          659

          Online

          32.7k

          Users

          82.5k

          Topics

          1.3m

          Posts
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
          ioBroker Community 2014-2025
          logo
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Home
          • Recent
          • Tags
          • Unread 0
          • Categories
          • Unreplied
          • Popular
          • GitHub
          • Docu
          • Hilfe