Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cron.md #299

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update cron.md #299

wants to merge 1 commit into from

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.

None yet

2 participants