Replies: 1 comment 3 replies
-
|
If it terminates with != 0, you have to check the logs. borg can't know if a missing or unaccessible file is important or not. The usual way to deal with source file access issues that is to skip the file, emit a warning (and change to a warning rc) and proceed with the remaining files. A backup that missing some files is still better than one that aborts or misses even more files. It is more efficient to delete "bad" backups AFTER you made a good one due to deduplication. Storing the result code (or even emitting it as json) is difficult, because it is only final when borg actually terminates. Storage of the warnings is usually done in the logs, not sure if we should store that in archive metadata. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wondering how to deal with incomplete backups. Here's a specific example:
For comparison, a complete backup says:
The two problems I have are:
It seems that the answer is that any run that doesn't produce a 0 exit code is no good and that such runs should be deleted. But that begs the question why they don't error out on their own as soon as a problem comes up and why they produce a seemingly good backup.
By the way, I see that I can get the number of files and original size from borg info, would it make sense to store the result code as well? Or some similar information about "errors and warnings encountered".
Beta Was this translation helpful? Give feedback.
All reactions