Thomas Lotze <
tho...@thomas-lotze.de> writes:
> Of course, there is a point in bup save considering it an error if it cannot
> do something it is supposed to (save a file which it cannot find). But in
> the context of backing up a constantly changing set of files, a file
> vanishing is just as valid a change as a file's contents changing or one
> appearing. I think bup save should just accept it, maybe report a warning.
> At least I think there should be an option for such a behaviour.
>
> What do you think?
I tend to agree, though I think the final answer depends on the
semantics we want, which it'd be nice to have clearly specified at some
point.
For example, if conceptually the index is just supposed to be a
metadata/state cache, then it would make perfect sense to ignore an
error like this. But if it's supposed to be a specification of what
should/shouldn't be in the save (which the --exclude options suggest),
then I could imagine someone might want to know when files are missing.
I suppose in many of my cases, where I'm indexing/saving lvm snapshots,
I'd be happy to know, since that would be very surprising and might
suggest more serious trouble.
This ties in to broader questions about error-related behavior. I've
thought for a while that I'd like to have clearer
intentions/expectations with respect to the handling of
errors/warnings/info, and I could, for example, imagine that we might
want to provide some kind of control:
bup ... save --missing-paths {ignore,warn,error} /home
Though I'm not at all sure we'd want to structure things exactly like
that, nor how fine grain we'd want the control to be.
In any case, I'll want to think about it, but in this particular
situation, it might well make sense to group disappearances with content
changes and unexpected appearances, and just ignore them by default.
Then, if desired, we could provide some way to specify when you actually
do want omissions to be treated as errors.
Thanks
--
Rob Browning
rlb @
defaultvalue.org and @
debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4