mirror of
https://github.com/dswd/zvault
synced 2025-03-15 05:12:45 +00:00
Only repairing backups with --repair
This commit is contained in:
parent
2885dfc933
commit
66e56b9b0c
@ -226,10 +226,14 @@ impl Repository {
|
||||
modified = true;
|
||||
},
|
||||
Err(err) => {
|
||||
warn!("Problem detected: inode {:?} is corrupt\n\tcaused by: {}", path.join(name), err);
|
||||
info!("Removing broken inode from backup");
|
||||
removed.push(name.to_string());
|
||||
modified = true;
|
||||
if repair {
|
||||
warn!("Problem detected: inode {:?} is corrupt\n\tcaused by: {}", path.join(name), err);
|
||||
info!("Removing broken inode from backup");
|
||||
removed.push(name.to_string());
|
||||
modified = true;
|
||||
} else {
|
||||
return Err(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user