Plugin/webGui/Mover Settings

From unRAID
< Plugin‎ | webGui
Revision as of 20:12, 10 December 2011 by RobJ (talk | contribs) (remove extra spaces)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Mover Settings

The mover is a utility that runs periodically to move files off the cache disk and onto parity-protected data disk(s). If Mover logging is enabled, the mover will record all its activity to the system log.

By default the mover is scheduled to run every day at 3:40AM. This may be changed by defining your own Mover schedule string in crontab format.

Our crontab format is roughly similar to that used by vixiecron. Individual fields may contain a time, a time range, a time range with a skip factor, a symbolic range for the day of week and month in year, and additional subranges delimited with commas. If you specify both a day in the month and a day of week, it will be interpreted as the Nth such day in the month.

*     *     *   *    *        command to be executed
-     -     -   -    -
|     |     |   |    |
|     |     |   |    +----- day of week (0 - 6) (Sunday=0)
|     |     |   +------- month (1 - 12)
|     |     +--------- day of month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)


Some examples:

# MIN HOUR DAY MONTH DAYOFWEEK
# run at 6:10 am every day
10 6 * * *
# run every two hours at the top of the hour
0 */2 * * *
# run every two hours between 11 pm and 7 am, and again at 8 am
0 23-7/2,8 * * *
# run at 4:00 am on January 1st
0 4 1 jan *

To request the last Monday, etc. in a month, ask for the "5th" one. This will always match the last Monday, etc., even if there are only four Mondays in the month:

# run at 11 am on the first and last Mon, Tue, Wed of each month
0 11 1,5 * mon-wed

When the fourth Monday in a month is the last, it will match against both the "4th" and the "5th" (it will only run once if both are specified).