Re: [Bacula-users] %l in CLient Run Before Job seems broken (or is it just me that's broken) ?
Hi, On 14.10.2005 21:27, nathan r. hruby wrote: ... Also a tangent question: I'm trying to use Client Run Before Job to create a file which will be read by the Fileset to get the file of files it should backup. Does bacula read the FileSet before running the Client Run Before Job? This I don't know, but... I get the feeling it does, but can't seem to be positive one way or another. I have another solution if so, but it's a tad crufty, and this way seems a bit more elegant. ... I did this differently, probably what you call crufty. To back up my mailserver and user mailboxes, I need a file list, and I need some helper programs called to save the mail server state. So I created a shell script that does both: Print the file list to stdout, and create the mail server data files. Works, but its a little asymmetric: I have a script to create the file list, and a client run after job script to delete temporary data. Well, crufty, but effective. It would even be nice if not only the order was documented in which the different programs are called, but if the estimate command had a swicth scripts so you could have the run before scripts executed when estimating... Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] %l in CLient Run Before Job seems broken (or is it just me that's broken) ?
On Fri, 14 Oct 2005, Arno Lehmann wrote: Hi, On 14.10.2005 21:27, nathan r. hruby wrote: ... Also a tangent question: I'm trying to use Client Run Before Job to create a file which will be read by the Fileset to get the file of files it should backup. Does bacula read the FileSet before running the Client Run Before Job? This I don't know, but... I get the feeling it does, but can't seem to be positive one way or another. I have another solution if so, but it's a tad crufty, and this way seems a bit more elegant. ... I did this differently, probably what you call crufty. To back up my mailserver and user mailboxes, I need a file list, and I need some helper programs called to save the mail server state. So I created a shell script that does both: Print the file list to stdout, and create the mail server data files. Works, but its a little asymmetric: I have a script to create the file list, and a client run after job script to delete temporary data. Well, crufty, but effective. Hurm. That's what this script does only for MySQL. It flushes logs, or dumps, etc.. and then generates a filelist of files for the FileSet to read. In theory :) Do you call this in the FileSet with the pipe and then have the script on the director ssh (or something) to the mail sever, or does the mailserver also run the director? My definition of crufty was to flush the logs and then copy all of the logs to a seperate directory and just always backup that partition :) It would even be nice if not only the order was documented in which the different programs are called, but if the estimate command had a swicth scripts so you could have the run before scripts executed when estimating... Yah. Thanks for the input. At least I'm not crazy on top of broken :) -n -- --- nathan hruby <[EMAIL PROTECTED]> uga enterprise information technology services production systems support --- --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] %l in CLient Run Before Job seems broken (or is it just me that's broken) ?
Hi, On 14.10.2005 22:21, nathan r. hruby wrote: ... So I created a shell script that does both: Print the file list to stdout, and create the mail server data files. Works, but its a little asymmetric: I have a script to create the file list, and a client run after job script to delete temporary data. Well, crufty, but effective. Hurm. That's what this script does only for MySQL. It flushes logs, or dumps, etc.. and then generates a filelist of files for the FileSet to read. In theory :) :-) Do you call this in the FileSet with the pipe and then have the script on the director ssh (or something) to the mail sever, or does the mailserver also run the director? No, I call this in the FileSet with the backslash-pipe and let it execute on the client, which is not my backup server. It looks like this: FileSet { Name = Mail Include { File = \|/etc/bacula/getmailfiles.sh Options { compression = GZIP # And yes, compressing mail files is fun... # Almost as good as compressing largely unused # VMWare virtual disks... I could put 21.7 GB on # one 120m DDS-2 tape... } Options { wildfile = *cyrus.squat wildfile = *cyrus.cache exclude = yes } } } My definition of crufty was to flush the logs and then copy all of the logs to a seperate directory and just always backup that partition :) Ah, trying to do incremental database backups... I gave up on this. Not because it wasn't possible, but because verifying it works is too much trouble for me. It would even be nice if not only the order was documented in which the different programs are called, but if the estimate command had a swicth scripts so you could have the run before scripts executed when estimating... Yah. Thanks for the input. At least I'm not crazy on top of broken :) -n Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users