I've been wondering about this today, it seems feasible given the way the bacula-fd operates. It uses mostly textual commands over the wire between the director, fd and storage daemon. Just brainstorming here, it should be possible to construct an interface onto bacula-fd. What I was thinking about is a command line app that is invoked via from TarClientCmd and does this:
- starts a thread that opens a socket and does basic bacula-sd emulation, listening for data back from bacula-fd. - starts another thread that is the bacula-dir emulation which connects to bacula-fd, authenticating and giving it the location of the emulated bacula-sd, transmits backup parameters (include and exclude dirs, incremental/full) issues start cmd. - bacula-sd emulation receives data from bacula-fd and writes to stdout in a tar-compatible format. There's more detail than that, but that's the general idea. Bacula's protocol between these components is documented, though not complete and somewhat out of date. The low levels of the connection are more documented than the high level commands are. A quick inspection with a sniffer shows the commands to be largely similar and could be determined with some work. Phil Philip Gleghorn wrote: > Les Mikesell wrote: >> Has anyone looked at using the bacula client as another >> transfer method? I'm not sure how it handles incrementals >> but using the native backup api on windows clients might >> have some advantages. >> > The bacula client also has the same problem of not being able to > intelligently detect moved files/directories. Rsync looks to be the best > solution. > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > BackupPC-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/backuppc-users > http://backuppc.sourceforge.net/ > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ BackupPC-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
