Menu

Snapraid runner automation at certain time

Help
2021-08-26
2021-09-02
  • Sierra Mathews

    Sierra Mathews - 2021-08-26

    I am a noob with programming etc and I can't find it anywhere - is it possible to run snapraid at a certain time (outside of normal hours)?

    Thanks thats it :)

     
  • jeff_dwork

    jeff_dwork - 2021-09-02

    In linux, put a script in /etc/cron.daily (or /etc/cron.weekly for scrub).
    This is /etc/cron.daily/snapraid.daily on my system:

    1
    2
    3
    #!/bin/sh
    test -x /usr/local/bin/snapraid || exit 0
    /usr/local/bin/snapraid --log /opt/snapraid/logs/snapraid-sync-%D-%T sync
    

    In Windows, use the task scheduler. Search the web for 'run a task every day on windows'.

     

Log in to post a comment.