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
database-backup-and-maintenance.sh creates output on success #1415
Comments
Hello @tribut |
Are you saying it's intended behavior that a cron job which is installed by default generates a mail every night? |
Well, from what I know (I may be wrong, it sometimes happens ;)), by default cron jobs sends a email to the user account executing the cronjob if there's an error or of the job generates an output. The following "> /dev/null" will discard any output from the job (which means, no email) but a mail will be sent in the case something is going to stderr ... |
I think the issue is one of expectations. I am inclined to side with @tribut |
@dwlfrth True, but |
Well the errors are sockets being backed up in /usr/local/pf/var/run So silencing tar and mkdir should do it, and the cleanup will be moved out of that in 6.1 anyway |
The var/run isn't part of the tar anymore so the sockets message should be gone. I still believe we should keep the remaining of the output so we know what happened My 2 cents. Lets see |
Let's see as @julsemaan says. |
Lets give some love to that script in 8.1 |
…ce.sh (fixes inverse-inc#1415) This fix removes the "tar: Removing leading `/' from member names" output which otherwise occurs on every run
I have opened #7754 to remove the stderr output generated by tar. This should be a major step forward in this. Together with |
…ce.sh (fixes #1415) This fix removes the "tar: Removing leading `/' from member names" output which otherwise occurs on every run
Because /etc/cron.d/packetfence runs database-backup-and-maintenance.sh, a mail is generated every night even if no errors occured. Example output:
(Also see #1404)
The text was updated successfully, but these errors were encountered: