Hello,

I've recently been looking at developing a bacula FD plugin for
something, but I'm a little confused as to how incremental/differential
backups are expected to be implemented.

>From what I can tell, FD plugins are just given the timestamp of the
last backup run we want to get changes from. (either obtained from
getBaculaValue for bVarSinceTime, or from the bEventSince event in
handlePluginEvent) If I determine what data to backup just based on that
time, though, it seems unsafe, if a file has e.g. a mod time before that
date, but was not backed up successfully in that backup job. I could be
completely wrong on that, but, well, for example:

Say we do a full backup at time T1, and an incremental at time T2 > T1.
For the incremental backup we're given a "since time" of T1. Now say we
have a file F, which has an mtime less than T1. When we did the full
backup of T1, say there was an error reading file F, or file F was not
in the backed-up directory tree at time T1, and was moved there between
T1 and T2. Now, at time T2 when we do the incremental, the backed-up
data does not contain file F at all, since its mtime is less than T1.
And if F never changes, it never gets backed up until the next full
backup.

What I would have thought is that there would be some way to get some
information from bacula about the last successful backup, or something
about the successful backups for file F, or something along those lines.
But I don't see any such interfaces in the Bacula FD plugin interface.

Am I, the plugin, expected to keep track of this internally? Or is the
scenario I describe just not really considered a problem? Or have I
screwed up the logic in this somehow, and it's not actually a problem?

-- 
Andrew Deason
adea...@sinenomine.net

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to