Difference between revisions of "Plugin/webGui/Mover Settings"

From unRAID
< Plugin‎ | webGui
Jump to: navigation, search
(Created page with '{{template:PluginHelpHeader}} == {{SUBPAGENAME}} == The ''mover'' is a utility that runs periodically to move files off the cache disk an onto parity-protected data disk(s). By...')
 
m (remove extra spaces)
 
(12 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
== {{SUBPAGENAME}} ==
 
== {{SUBPAGENAME}} ==
  
The ''mover'' is a utility that runs periodically to move files off the cache disk an onto parity-protected data disk(s).
+
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 cron schedule.
+
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.
 +
 
 +
<nowiki>
 +
*    *    *  *    *        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)
 +
</nowiki>
  
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.  Blank lines in  the crontab  or  lines that begin with a hash (#) are ignored.  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.
 
  
 
Some examples:
 
Some examples:
  
<tt>
+
# MIN HOUR DAY MONTH DAYOFWEEK
# MIN HOUR DAY MONTH DAYOFWEEK  COMMAND
+
  # run at 6:10 am every day
# run `date` at 6:10 am every day
+
10 6 * * *
10 6 * * * date
 
 
 
# run every two hours at the top of the hour
 
0 */2 * * * date
 
  
# run every two hours between 11 pm and 7 am, and again at 8 am
+
# run every two hours at the top of the hour
0 23-7/2,8 * * * date
+
0 */2 * * *
  
# run at 4:00 am on January 1st
+
# run every two hours between 11 pm and 7 am, and again at 8 am
0 4 1 jan * date
+
0 23-7/2,8 * * *
  
# run every day at 11 am, appending all output to a file
+
# run at 4:00 am on January 1st
0 11 * * * date >> /var/log/date-output 2>&1
+
0 4 1 jan *
</tt>
 
  
 
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:
 
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:
  
<tt>
+
# run at 11 am on the first and last Mon, Tue, Wed of each month
# run at 11 am on the first and last Mon, Tue, Wed of each month
+
0 11 1,5 * mon-wed
0 11 1,5 * mon-wed date
 
</tt>
 
  
 
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).
 
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).

Latest revision as of 20:12, 10 December 2011

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