On Sunday 21 June 2009 15:34:20 Dirk H Bartley wrote: > On Sun, 2009-06-21 at 14:43 +0200, Kern Sibbald wrote: > > Hello, > > > > On Friday 19 June 2009 17:04:50 Dirk Bartley wrote: > > > Greetings > > > > > > I'd like to start a project to create a page that would allow a user to > > > create filesets with a gui in bat. In order to do this, I would need > > > some changes to the director and possibly to the file daemon. > > > > I think this would be a great project. It is probably a bit overdue, and > > I like starting with something a bit smaller than the whole conf file. > > Smaller bites are better. :) > > > > I would like to have the ability to query the director for the current > > > state of files on a file daemon. Not sure exactly what something like > > > that would look like, but possibly something to the effect of > > > > > > .queryfiledaemon client=hostname-fd directory=/etc/init.d > > > > > > which would return the current contest of the /etc/init.d directory on > > > the client client=hostname-fd (obviously :-) > > > > Well, essentially, "estimate" does this, but I think for your purposes it > > will need to be enhanced, and possibly even turned into a .estimate to > > get a more machine readable format. > > I'm okay with just about any syntax. > > > > I'm hoping that I could request a modification like that so that I > > > could begin to work on a new page. We may have to take into > > > consideration a command to request roots. So for windows it could > > > return c:/ d:/ .. .. > > > > I believe most of the mechanisms we need are already in place. It is > > just a question of understanding the whole "page" you want to create so > > that we can be sure to design in the necessary capabilities from the > > beginning -- even if we don't implement everything from the beginning. > > > > Can you be just a bit more explicit what the page will look like? > > My thoughts were of using the restore browser as a starting point. This > new fileset interface would not need the jobs widget or the versions > widget. The work done to make it so that there are black check marks > for explicitly included and grey check marks for included by being a > subdirectory should be useful. > > I'd want to start out with making it be able to create a fileset from > scratch. Then later .. .. work toward some mechanism of parsing > existing fileset resources to prepopulate when opening. > > The difficult part I think will be adding an options. Where the user is > given the ability to add the many options that are available in the > interface.
I don't think that will be very hard. You just need to put up a panel that has all possible options, and be able to get a status of them all so that you can show the user what is and is not set, then let him/her choose. It seems to me that the first step would be for me to provide you some interface to explore the files on a client machine. At the same time, you can be refining your browse window, and creating some sort of option picker. Then we can start putting it together, and I can give you an interface to get to existing FileSets or to create new ones. I am not available the first three days of next week because I am presenting a Bacula Foundation course. After that is finished, I can look into providing you some interface. For the moment, you could experiment with the "estimate" command and tell me what you like and what you don't like -- especially with the "listing" option. Preliminary design: It seems to me that giving you an interface that returns all files and directories within a specified path would be the first step. .ls client=xxx path="yyy" Then we might want to add recursion and wild cards. However, my first question to you is what do you want the output to look like? My inclination would be to feed you an "ls -l" output. What do you think? Kern ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
