Skip to content

Conversation

mox1
Copy link

@mox1 mox1 commented Apr 6, 2023

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.

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
E: 6: */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.
@vercel
Copy link

vercel bot commented Apr 6, 2023

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

@cupcakearmy
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants