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

Quieter handling of volumes that are sometimes unavailable #43

Closed
ewxrjk opened this issue Jan 27, 2018 · 0 comments
Closed

Quieter handling of volumes that are sometimes unavailable #43

ewxrjk opened this issue Jan 27, 2018 · 0 comments
Labels
Milestone

Comments

@ewxrjk
Copy link
Owner

@ewxrjk ewxrjk commented Jan 27, 2018

Background: http://www.chiark.greenend.org.uk/pipermail/sgo-software-discuss/2018/000513.html discusses.

It can happen that a volume to be backed up is not mounted when rsbackup runs. check-mounted and check-file can be used to detect this condition, but in some configurations it would be convenient for the volume to be mounted automatically when required, without building policy into rsbackup itself.

pre-backup-hook can be used to do this. But it unavoidably logs on failure, which annoys the user if they already know about the condition (it may be routine) and read their cron mail.

The proposed change is to allow hook scripts to exit with a status indicating a soft failure. By analogy with mail delivery agents the exit status chosen is EX_TEMPFAIL (75).

@ewxrjk ewxrjk added the usability label Jan 27, 2018
@ewxrjk ewxrjk modified the milestones: 6.0, 5.0 Jan 27, 2018
@ewxrjk ewxrjk closed this in a1513ad Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant