autorestic
autorestic copied to clipboard
Update cron.md
crontab entries need a user. When copying and pasting the examples directly into my crontab, they were not running. Using a crontab checking utility, an error was generated:
Checking correctness of /var/spool/cron/crontabs/root
*/5 * * * * /usr/local/bin/autorestic -v -c /root/.autorestic.yml --ci cron |& /usr/bin/logger -t autorestic > /dev/null 2>&1
e: INVALID_USER: Invalid username "/usr/local/bin/autorestic" E: There were 1 errors and 0 warnings.
This update adds a username (root) to the example, which fixes the syntax error.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
autorestic | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 6, 2023 4:44pm |
This is not fully correct. Only crontabs under /etc/crontab
and /etc/cron.d/
contain usernames.
If you edit your crontab with crontab -e
you cannot speficy the user. Es most people use crontab -e
the main docs I think should stay that way. However we could def. add a not underneath for manually editing the cron jobs under that paths