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

Always clean tmp backups & prevent legacy backup #4560

Closed
wants to merge 1 commit into from

Conversation

PhilZ-cwm6
Copy link
Contributor

  • If backup fails for any reason (exp I/O): prevent creating legacy backups or backups with lower iterations count

  • If for some reason the decryption takes too long to finish (CPU overloaded during decryption), and decryption needs to fall back to previous version or legacy, new temp files can be created and old ones will not be removed. This patch ensure that any created temp files are properly deleted

  • Redmine Issue: https://redmine.pfsense.org/issues/12897

  • Ready for review

- If backup fails for any reason (exp I/O): prevent creating legacy backups or backups with lower iterations count
- If for some reason the decryption takes too long to finish (CPU overloaded during decryption), and decryption needs to fall back to previous version or legacy, new temp files can be created and old ones will not be removed. This patch ensure that any created temp files are properly deleted
@jim-p
Copy link
Contributor

jim-p commented Mar 7, 2022

I took a slightly different approach, see my comments on Redmine.

@jim-p jim-p closed this Mar 7, 2022
@PhilZ-cwm6 PhilZ-cwm6 deleted the PhilZ-cwm6-patch-4 branch March 19, 2022 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants