Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:base-system:cron [2021/10/17 17:05] – [Command-line instructions] avoid possible profile-related issues vgaetera | docs:guide-user:base-system:cron [2023/08/08 11:30] – Added my cronjob to keep last N snapshots of config torxgewinde | ||
|---|---|---|---|
| Line 62: | Line 62: | ||
| If you set the day of the week to 7, BusyBox will go bonkers and run your command every day. | If you set the day of the week to 7, BusyBox will go bonkers and run your command every day. | ||
| - | Table of shortcuts: | + | **Table of shortcuts:** |
| ^ Shortcut ^ Equivalent ^ Description ^ | ^ Shortcut ^ Equivalent ^ Description ^ | ||
| Line 72: | Line 72: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| + | |||
| + | :!: Time shortcuts are not enabled by default. Shortcuts require compiling busybox with FEATURE_CROND_SPECIAL_TIMES enabled in the busybox compile options. | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| Line 132: | Line 134: | ||
| 59 05 * * 1 / | 59 05 * * 1 / | ||
| # crontab must end with the last line as space or a comment | # crontab must end with the last line as space or a comment | ||
| + | </ | ||
| + | |||
| + | ==== Keep number of configs / snapshots of config ==== | ||
| + | To keep a number N of configurations/ | ||
| + | |||
| + | <code bash> | ||
| + | #Make a new backup/ | ||
| + | #01 00 * * * sysupgrade -b "/ | ||
| + | 01 00 * * * find "/ | ||
| </ | </ | ||