bup-cron icon indicating copy to clipboard operation
bup-cron copied to clipboard

Do not skip saving for all "errors", e.g. "Permission denied"

Open blueyed opened this issue 9 years ago • 4 comments

bup save should not get skipped (always) when there are errors in bup index, because these might be irrelevant and should not prevent the whole backup from being saved, e.g.: read Linux attr: [Errno 13] Permission denied might happen when you've saved some file using sudo in $HOME (and you backup without using sudo).

blueyed avatar Dec 17 '14 20:12 blueyed

For some reason the file in question has odd permissions:

% ls -l ...
---------- 1 user user 21K Sep 16 13:45 /home/user/.local/share/vim/undo/...

blueyed avatar Dec 17 '14 20:12 blueyed

indeed. maybe we shouldn't skip save ever? or should we have a --force option?

anarcat avatar Dec 18 '14 02:12 anarcat

Yes, I would not skip it by default.

A config option like --dont-save-on-index-error (but shorter, and maybe more generic like --halt-on-errors) would be useful then though. Maybe in the same context something like "--skip-save", which would be useful when you want to test how much gets indexed, without saving.

blueyed avatar Dec 18 '14 03:12 blueyed

agreed. i am not even sure we need an option at all after all.

anarcat avatar Dec 18 '14 04:12 anarcat