Skip to content

Commit

Permalink
Fix up error with wrong snippet (24.04) (#3357)
Browse files Browse the repository at this point in the history
An obsolete CORE snippet was still being used in two articles instead of the proper SCALE one.

Adjusted the snippet to make sure the html table rendered properly.
  • Loading branch information
Mrt134 authored Dec 11, 2024
1 parent d8c45e9 commit beda066
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ The **Manage Credentials** link opens the **Backup Credentials** screen where yo
{{< /truetable >}}

{{< expand "Advanced Scheduler" "v" >}}
{{< include file="/static/includes/AdvancedScheduler.md" >}}
{{< include file="/static/includes/SCALEAdvancedScheduler.md" >}}
{{< /expand >}}

### Advanced Options Settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The **More Options** specify other settings related to when and how the rsync oc
{{< /expand >}}

{{< expand "Advanced Scheduler" "v" >}}
{{< include file="/static/includes/AdvancedScheduler.md" >}}
{{< include file="/static/includes/SCALEAdvancedScheduler.md" >}}
{{< /expand >}}

{{< expand "More Options Settings" "v" >}}
Expand Down
94 changes: 0 additions & 94 deletions static/includes/AdvancedScheduler.md

This file was deleted.

68 changes: 42 additions & 26 deletions static/includes/SCALEAdvancedScheduler.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,37 +34,53 @@ The **Schedule Preview** displays when the current settings mean the task runs.

### Examples of CRON syntax

TrueNAS lets users create flexible schedules using the advanced cron syntax.
The tables below have some examples:

<table class="truetable">
<thead>
<tr>
<th>Syntax</th>
<th>Meaning</th>
<th>Examples</th>
</tr>
</thead>
<tbody>
<tr>
<td> * </td>
<td>Every item.</td>
<td>* (minutes) = every minute of the hour.<br/>* (days) = every day.</td>
</tr>
<tr>
<td> */N </td>
<td>Every N<sup>th</sup> item.</td>
<td>*/15 (minutes) = every 15th minute of the hour.<br/>*/3 (days) = every 3rd day.<br/>*/3 (months) = every 3rd month.</td>
</tr>
<tr>
<td>Comma and hyphen/dash</td>
<td>Each stated item (comma)<br/>Each item in a range (hyphen/dash).</td>
<td>1,31 (minutes) = on the 1st and 31st minute of the hour.<br/>1-3,31 (minutes) = on the 1st to 3rd minutes inclusive, and the 31st minute, of the hour.<br/>mon-fri (days) = every Monday to Friday inclusive (every weekday).<br/>mar,jun,sep,dec (months) = every March, June, September, December.</td>
</tr>
</tbody>
<thead>
<tr>
<th>Syntax</th>
<th>Meaning</th>
<th>Examples</th>
</tr>
</thead>
<tbody>
<tr>
<td>*</td>
<td>Every item.</td>
<td>
* (minutes) = every minute of the hour.<br />
* (days) = every day.
</td>
</tr>
<tr>
<td>*/N</td>
<td>Every N<sup>th</sup> item.</td>
<td>
*/15 (minutes) = every 15th minute of the hour.<br />
*/3 (days) = every 3rd day.<br />
*/3 (months) = every 3rd month.
</td>
</tr>
<tr>
<td>Comma and hyphen/dash</td>
<td>
Each stated item (comma)<br />
Each item in a range (hyphen/dash).
</td>
<td>
1,31 (minutes) = on the 1st and 31st minute of the hour.<br />
1-3,31 (minutes) = on the 1st to 3rd minutes inclusive, and the 31st minute, of the hour.<br />
mon-fri (days) = every Monday to Friday inclusive (every weekday).<br />
mar,jun,sep,dec (months) = every March, June, September, December.
</td>
</tr>
</tbody>
</table>

You can specify days of the month or days of the week.

TrueNAS lets users create flexible schedules using the available options. The table below has some examples:

<table class="truetable">
<thead>
<tr>
Expand Down

0 comments on commit beda066

Please sign in to comment.