[HowTo] SnapRAID in OMV

  • I understand that to use scheduled syncs, scrubs and diffs I should set up scheduled jobs in OMV GUI to execute related scripts.

    I could not find any reference how this should be done. What are the commands that should be called?

  • Can anyone explain what


    Code
    "scrub_age=5"


    does in the provided scripts?


    Second question:

    What exactly happens when i exclude specific dirs in the Snapraid rules section?

    I guess these files/dirs are excluded from all sync/scrub/diff and other jobs?

    Does this setting only work if i use the OMV provided scripts or will it also work with the external scripts referenced in this thread?

  • What exactly happens when i exclude specific dirs in the Snapraid rules section?

    I guess these files/dirs are excluded from all sync/scrub/diff and other jobs?

    Does this setting only work if i use the OMV provided scripts or will it also work with the external scripts referenced in this thread?


    To answer for anyone that wants to know: this should work independantly from any scripts as it is added to general snapraid.conf

  • Great job on the snapraid plugin ryecoaaron and the snapraid diff script Solo0815 !

    I was just about to create a manual scheduled job until I saw the awesome report functions inside the snapraid diff script.

    I just feel like the "SCRUB_OLDER_THAN_DAYS" variable is essential and should be implemented into the pluging ASAP ;)

  • So use another script. There are several available that have the capability you seek.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

  • So use another script. There are several available that have the capability you seek.

    It is in the script, just not in the plugin.

    Of course I can change it in the script manually, but then I don't know if it will survive the next update to the plugin.

    The cleanest way would be to set it in the snapraid-diff.conf but here it states:

    Code: snapraid-diff.conf
    # This file is auto-generated by openmediavault (https://www.openmediavault.org)
    # WARNING: Do not edit this file, your changes will get lost.
    ...

    So it would be a lot nicer if it was possible to set this variable from the plugin.

  • It is in the script, just not in the plugin.

    Of course I can change it in the script manually, but then I don't know if it will survive the next update to the plugin.

    The cleanest way would be to set it in the snapraid-diff.conf but here it states:

    Code: snapraid-diff.conf
    # This file is auto-generated by openmediavault (https://www.openmediavault.org)
    # WARNING: Do not edit this file, your changes will get lost.
    ...

    So it would be a lot nicer if it was possible to set this variable from the plugin.

    As I said. Use another script and stop using this one.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!