Handle prune permission errors from preserved snapshot directory modes #65
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
A backup run can complete successfully while the follow-up prune step fails with a
PermissionErrorwhen deleting an older snapshot. Example:The new snapshot is valid (
rsync exit_code=0, run status success), but pobsync reports a warning because pruning could not remove an older snapshot. This can happen because rsync--archivepreserves restrictive directory modes from the source, and the pobsync service user may not be able to traverse/delete those directories later.Expected
Prune should handle preserved restrictive permissions more robustly, without turning a successful backup into confusing operator noise.
Ideas
/var/lib/snapd/***as a workaround when those trees are not useful for restore.Acceptance criteria