autorestic icon indicating copy to clipboard operation
autorestic copied to clipboard

Update cron.md

Open mox1 opened this issue 1 year ago • 2 comments

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.

mox1 avatar Apr 06 '23 16:04 mox1

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

vercel[bot] avatar Apr 06 '23 16:04 vercel[bot]

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

cupcakearmy avatar Apr 06 '23 18:04 cupcakearmy