-
Notifications
You must be signed in to change notification settings - Fork 208
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
Killing rsync not handled gracefully / rsync exit code not evaluated #489
Comments
BIT doesn't handle return codes from rsync yet. It's on my Todo list. But before I need to switch all processes to be called by |
For the record, I ran into this issue too. I had a network connection go down, and my backup was aborted. Despite setting backintime to delete the backup on errors, this meant I had an empty backup directory for that particular timepoint. The next backup was thus not incremental, and took a massive amount of space. Unfortunately this happened several times several months ago, and I only noticed it now. To fix it, I moved the bad backup(s) to a temporary directory, created a hard-link copy of the last good backup, replaced the changed files, then deleted the old directory. For example, where
I imagine there are faster ways to do this. For my ~430G backup, the hard-link copy took 15 minutes, and the replacement rsync took 1h 36m (!). Moving forward, I have a cron job on my server to check the log file for errors (then delete the last backup if necessary). Something like:
|
@protist This annoying side effect may also happen (not in your case here) when the option Anyhow I have now fixed this issue by also catching See my PR #1502 Edit: With my PR you can now also use the error user callback to e.g. send an email, the error user callback is now called for all error case when taking a snapshot (except external events like a computer crash or power supply failure). PS: |
…lling rsync not handled gracefully / rsync exit code not evaluated) (#1502) Fix bug: Taking a snapshot reports `rsync` errors now even if no snapshot was taken (#1491) Fix bug: takeSnapshot() recognizes errors now by also evaluating the rsync exit code (#489) Fixes related problem: Killing `rsync` was not handled gracefully (by ignoring the rsync exit code) Fix bug: The error user-callback is now always called if an error happened during taking a snapshot (#1491) Feature: Introduce new error codes for the "error" user callback (as part of #1491): 5: Error while taking a snapshot. 6: New snapshot taken but with errors. Improvement: The `rsync` exit code is now contained in the snapshot log. Example: [E] Error: 'rsync' ended with exit code -9 (negative values are signal numbers, see 'kill -l') Fix CHANGES entries (stick to our standards) --------- Co-authored-by: aryoda <[email protected]>
When I abort a running backup by
sudo killall rsync
BIT does not flag this snapshot withWITH ERRORS!
The text was updated successfully, but these errors were encountered: