Skip to content
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

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

Open
blueyed opened this issue Dec 17, 2014 · 4 comments
Open

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

blueyed opened this issue Dec 17, 2014 · 4 comments
Labels

Comments

@blueyed
Copy link
Contributor

blueyed commented Dec 17, 2014

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
Copy link
Contributor Author

blueyed commented Dec 17, 2014

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/...

@anarcat
Copy link
Owner

anarcat commented Dec 18, 2014

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

@anarcat anarcat added the bug label Dec 18, 2014
@blueyed
Copy link
Contributor Author

blueyed commented Dec 18, 2014

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.

@anarcat
Copy link
Owner

anarcat commented Dec 18, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants