Re: [Bacula-users] Wildfile
Am 11.04.24 um 07:49 schrieb Bill Arlofski via Bacula-users: On 4/10/24 11:38 PM, Stefan G. Weichinger wrote: First coffee here right now ;-) Thanks for your example. Hello Stefan, You are welcome! Well, it is 23:41 here now, so I have switched from coffee to beer. :) Understandable ;-) I didn't add "signature" but already came up with this yesterday: Fileset { Name = "VM_XYZ" Include { File = "/mnt/backup/vmbackup/Backup XYZ" Options { WildFile = "*.vbk" } Options { Exclude = "Yes" RegexFile = ".*" } } } seems to work! OH! Look at you, jumping from WildFile to RegexFile! :) I was trying to keep things simple, but OK. :) Yes, this is fine. Remember my first post about there always being several ways to do something in Bacula? :) Sure. So far it seems to work. At least I see other things to learn now ... as I get used to Bacula. Do I have to add that signature-line? To confirm why I made that comment, try running a restore of one of these jobs that you have now backed up. ;) >> What do you see? Will do tmrw Sounds as if I should add these lines asap. Glad y ou got this working! And, if you like we can talk about Client side scripts to point your `File = ` at too. Just for more fun and practice, of course. BUT... client side scripts are a bit less scalable as you might imagine. :) Right now I don't know if I might need them. But I always like to learn. ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Wildfile
On 4/10/24 11:38 PM, Stefan G. Weichinger wrote: First coffee here right now ;-) Thanks for your example. Hello Stefan, You are welcome! Well, it is 23:41 here now, so I have switched from coffee to beer. :) I didn't add "signature" but already came up with this yesterday: Fileset { Name = "VM_XYZ" Include { File = "/mnt/backup/vmbackup/Backup XYZ" Options { WildFile = "*.vbk" } Options { Exclude = "Yes" RegexFile = ".*" } } } seems to work! OH! Look at you, jumping from WildFile to RegexFile! :) I was trying to keep things simple, but OK. :) Yes, this is fine. Remember my first post about there always being several ways to do something in Bacula? :) Do I have to add that signature-line? To confirm why I made that comment, try running a restore of one of these jobs that you have now backed up. ;) What do you see? Glad y ou got this working! And, if you like we can talk about Client side scripts to point your `File = ` at too. Just for more fun and practice, of course. BUT... client side scripts are a bit less scalable as you might imagine. :) Best regards, Bill -- Bill Arlofski w...@protonmail.com signature.asc Description: OpenPGP digital signature ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Wildfile
Am 10.04.24 um 16:45 schrieb Bill Arlofski via Bacula-users: Hello Stefan, No, this will not backup anything because you have not specified anything to backup with a `File = /path/to/somewhere` inside of your `Include{}` block. So far, you have only set something (WildFile) inside of an `Option{}` block. There are several ways to do what you want (there always is with Bacula :) The first, based on your current Fileset template will require a `File =` line as mentioned above and also another `Options{}` block to exclude everything else: 8< Fileset { Name = "VM_xxx-y" Include { # This option block matches your *.vbk files and creates a signature in the catalog for backed up files Options { signature = sha1 # You need a signature, so I added this WildFile = "/mnt/backup/vmbackup/*.vbk" # Note, I fixed your extra quotes and a backslash and simplified here } # This options block says to exclude everything else, not matched above Options { WildFile = "*.*" Exclude = yes } File = "/mnt/backup/vmbackup" # And finally, what 'top level' directory are we considering for backups } } 8< This "Should work"™ I have not tested it, and wrote it quickly in my email client before finishing my first cup of coffee this morning. :) First coffee here right now ;-) Thanks for your example. I didn't add "signature" but already came up with this yesterday: Fileset { Name = "VM_XYZ" Include { File = "/mnt/backup/vmbackup/Backup XYZ" Options { WildFile = "*.vbk" } Options { Exclude = "Yes" RegexFile = ".*" } } } seems to work! Do I have to add that signature-line? Remember, when you have re-configured this Fileset and have issued a `reload` command in bconsole, instead or running the job, you can quickly see if your settings do what you want with an `estimate` command like: * estimate listing job= This way you don't have a bunch of failed jobs in your catalog. :) Ah, good, that's a nice learning, thanks! P.S. I see your files (or directories, I am not 100% sure which) have spaces in their names. I would recommend doing yourself a favor and not using spaces if you can help it. It will make your life easier and save you from needing to "escape" spaces with backslashes, etc. I totally agree, but it's not fully in my hand. The Veeam--backups are done by another admin there .. I will talk to him to use better naming and also generalizing the directory names. I am proceeding with editing and testing all my Filesets and Jobs now. Have a great day, Stafen ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Wildfile
On 4/10/24 12:38 AM, Stefan G. Weichinger wrote: Is this Fileset correct? Fileset { Name = "VM_xxx-y" Include { Options { WildFile = "\"/mnt/backup/vmbackup/Backup xxx-y/*.vbk\"" } } } I don't get files with this ... seems not to match. Hello Stefan, No, this will not backup anything because you have not specified anything to backup with a `File = /path/to/somewhere` inside of your `Include{}` block. So far, you have only set something (WildFile) inside of an `Option{}` block. There are several ways to do what you want (there always is with Bacula :) The first, based on your current Fileset template will require a `File =` line as mentioned above and also another `Options{}` block to exclude everything else: 8< Fileset { Name = "VM_xxx-y" Include { # This option block matches your *.vbk files and creates a signature in the catalog for backed up files Options { signature = sha1 # You need a signature, so I added this WildFile = "/mnt/backup/vmbackup/*.vbk"# Note, I fixed your extra quotes and a backslash and simplified here } # This options block says to exclude everything else, not matched above Options { WildFile = "*.*" Exclude = yes } File = "/mnt/backup/vmbackup" # And finally, what 'top level' directory are we considering for backups } } 8< This "Should work"™ I have not tested it, and wrote it quickly in my email client before finishing my first cup of coffee this morning. :) Remember, when you have re-configured this Fileset and have issued a `reload` command in bconsole, instead or running the job, you can quickly see if your settings do what you want with an `estimate` command like: * estimate listing job= This way you don't have a bunch of failed jobs in your catalog. :) P.S. I see your files (or directories, I am not 100% sure which) have spaces in their names. I would recommend doing yourself a favor and not using spaces if you can help it. It will make your life easier and save you from needing to "escape" spaces with backslashes, etc. Hope this helps, Bill -- Bill Arlofski w...@protonmail.com signature.asc Description: OpenPGP digital signature ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Wildfile
Am 10.04.24 um 14:25 schrieb Rob Gerber: I don't think it is correct, no. I am not an expert, but last time I tried something like this I believe the suggestion I was given was to use a runbefore script to run a find command or similar to locate and build a file list, then give that list to bacula as input for the job. Perhaps for your runbefore use something like the following line. mountpoint -q /mnt/backup/ && find '/mnt/backup/vmbackup/Backup xxx-y/' -type f -name '*.vbk' > /opt/bacula/working/VM_xxx-y.list || mount /mnt/backup/ && find /mnt/backup/vmbackup/Backup xxx-y/ -type f -name '*.vbk' > /opt/bacula/working/VM_xxx-y.list If any part of this fails it SHOULD exit nonzero and the job will fail (which is what you want). I recommend testing this before relying on it. I've only written it in an email client. I assume using bash here. I'm not certain how to include files from a list elsewhere, but I know it can be done. I think you do @/opt/bacula/working/VM_xxx-y.list in your fileset definition. Check the docs to be sure. I can't believe that this could be that complicated to have to use a script before the dump! my goal: include all files "*.vbk" or exclude "*.vib" in a given directory - I look at https://www.bacula.org/13.0.x-manuals/en/main/Configuring_Director.html section "FileSet Examples" and will try to copy that ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Wildfile
I don't think it is correct, no. I am not an expert, but last time I tried something like this I believe the suggestion I was given was to use a runbefore script to run a find command or similar to locate and build a file list, then give that list to bacula as input for the job. Perhaps for your runbefore use something like the following line. mountpoint -q /mnt/backup/ && find '/mnt/backup/vmbackup/Backup xxx-y/' -type f -name '*.vbk' > /opt/bacula/working/VM_xxx-y.list || mount /mnt/backup/ && find /mnt/backup/vmbackup/Backup xxx-y/ -type f -name '*.vbk' > /opt/bacula/working/VM_xxx-y.list If any part of this fails it SHOULD exit nonzero and the job will fail (which is what you want). I recommend testing this before relying on it. I've only written it in an email client. I assume using bash here. I'm not certain how to include files from a list elsewhere, but I know it can be done. I think you do @/opt/bacula/working/VM_xxx-y.list in your fileset definition. Check the docs to be sure. Regards, Robert Gerber 402-237-8692 r...@craeon.net On Wed, Apr 10, 2024, 1:39 AM Stefan G. Weichinger wrote: > > Is this Fileset correct? > > Fileset { >Name = "VM_xxx-y" >Include { > Options { >WildFile = "\"/mnt/backup/vmbackup/Backup xxx-y/*.vbk\"" > } >} > } > > > I don't get files with this ... seems not to match. > > > > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] wildfile, wilddir and exclude pattern examples(that work with 2.4.4)
hi, On Mon, 2009-03-09 at 12:41 +0100, Stefan Sorin Nicolin wrote: On 09.03.2009, at 11:20, Gerald Leier wrote: Hello, Hi, Is there some kind of archive containing valid bacula FileSet configurations available somewhere? You might want to check out the wiki: http://wiki.bacula.org/doku.php?id=sample_configs very tape scentric but gave me a few clous. thanks. Even sniplets like for example exclude patterns would be very helpfull in figuring out how to do it right. The following example is something that looks ok to me but doesnt work at all and makes bacula barf about allmost every line contained within the exclude options.(the ones containing wild*) Also im a little confused about Exclude{} and Exclude=yes... comparing rel-bacula.pdf with the provided default configurations and the few google hits just made that worse. i use bacula 2.4.4. --- FileSet { Name = WinxpFull Enable VSS = yes Include { Options { signature = SHA1 compression=GZIP ignore case = yes } File = c:/ File = d:/ } Exclude { File = c:/temp File = d:/temp wilddir = c:/windows/temp* wilddir = *temporary internet files* wildfile = *pagefile.sys wildfile = *.log wildfile = *system32/perflib*.dat } } --- bacula-dir -t Config error: Keyword wilddir not permitted in this resource any hints would be very appreciated. If you include exclude = yes in your Exclude {} block then all Files and/or directories selected would be excluded. If you leave out the exclude=yes statement then everything will be _included_ (seems weird to me since the block is clearly called Exclude...) First of all a Exclude {} block accepts only File directives. If you want to exclude files and/or directories based on wildcards or regexps than you have to put these insind an Options {} block. If you include exclude = yes in your Options {} block then all Files and/or directories selected would be excluded. If you leave out the exclude=yes statement then everything will be _included_ Following your example the FileSet should look like this: FileSet { Name = WinxpFull Enable VSS = yes Include { Options { wilddir = c:/windows/temp/* wilddir = *temporary internet files* wildfile = *pagefile.sys wildfile = *.log wildfile = *system32/perflib*.dat exclude = yes } Options { signature = SHA1 compression=GZIP ignore case = yes } File = c:/ File = d:/ } Exclude { File = c:/temp File = d:/temp } } Note that if you put something inside an Exclude {} block it will be completely ignored (the whole directory). If you have to restore your system then there will be no temp dir on you disks. thanky you very much. i think i got it now. its been a little confusing at the start but makes some sense now. sincerely yours gerald sincerely yours Gerald -- -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users regards, Stefan Sorin Nicolin http://nicolinux.org/timr --- Unix guy, Mac head, Rails wannabe, iPhone Dev-ious, Computer Science alumnus, usability guesspert and overall big time visionary -- -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] wildfile, wilddir and exclude pattern examples(that work with 2.4.4)
On 09.03.2009, at 11:20, Gerald Leier wrote: Hello, Hi, Is there some kind of archive containing valid bacula FileSet configurations available somewhere? You might want to check out the wiki: http://wiki.bacula.org/doku.php?id=sample_configs Even sniplets like for example exclude patterns would be very helpfull in figuring out how to do it right. The following example is something that looks ok to me but doesnt work at all and makes bacula barf about allmost every line contained within the exclude options.(the ones containing wild*) Also im a little confused about Exclude{} and Exclude=yes... comparing rel-bacula.pdf with the provided default configurations and the few google hits just made that worse. i use bacula 2.4.4. --- FileSet { Name = WinxpFull Enable VSS = yes Include { Options { signature = SHA1 compression=GZIP ignore case = yes } File = c:/ File = d:/ } Exclude { File = c:/temp File = d:/temp wilddir = c:/windows/temp* wilddir = *temporary internet files* wildfile = *pagefile.sys wildfile = *.log wildfile = *system32/perflib*.dat } } --- bacula-dir -t Config error: Keyword wilddir not permitted in this resource any hints would be very appreciated. If you include exclude = yes in your Exclude {} block then all Files and/or directories selected would be excluded. If you leave out the exclude=yes statement then everything will be _included_ (seems weird to me since the block is clearly called Exclude...) First of all a Exclude {} block accepts only File directives. If you want to exclude files and/or directories based on wildcards or regexps than you have to put these insind an Options {} block. If you include exclude = yes in your Options {} block then all Files and/or directories selected would be excluded. If you leave out the exclude=yes statement then everything will be _included_ Following your example the FileSet should look like this: FileSet { Name = WinxpFull Enable VSS = yes Include { Options { wilddir = c:/windows/temp/* wilddir = *temporary internet files* wildfile = *pagefile.sys wildfile = *.log wildfile = *system32/perflib*.dat exclude = yes } Options { signature = SHA1 compression=GZIP ignore case = yes } File = c:/ File = d:/ } Exclude { File = c:/temp File = d:/temp } } Note that if you put something inside an Exclude {} block it will be completely ignored (the whole directory). If you have to restore your system then there will be no temp dir on you disks. sincerely yours Gerald -- -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users regards, Stefan Sorin Nicolin http://nicolinux.org/timr --- Unix guy, Mac head, Rails wannabe, iPhone Dev-ious, Computer Science alumnus, usability guesspert and overall big time visionary -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] wildfile, wilddir and exclude pattern examples(that work with 2.4.4)
On 09.03.2009, at 13:55, Martin Simmons wrote: On Mon, 9 Mar 2009 12:41:06 +0100, Stefan Sorin Nicolin said: If you include exclude = yes in your Exclude {} block then all Files and/or directories selected would be excluded. If you leave out the exclude=yes statement then everything will be _included_ (seems weird to me since the block is clearly called Exclude...) I think you have this mixed up. All matching items in the Exclude {} block are excluded and exclude = yes is ignored there. Can you give an example where that is wrong? Yes, you are right. I mixed it up. Ment to remove this paragraph before sending but forgot it. Thanks __Martin Stefan Sorin Nicolin http://nicolinux.org/timr --- Unix guy, Mac head, Rails wannabe, iPhone Dev-ious, Computer Science alumnus, usability guesspert and overall big time visionary -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] wildfile not working in bacula 2.4.4
On Thu, 05 Feb 2009 15:02:53 +0200, Victor Sterpu said: I have this file set, and the wildfile has no effect. Thank you. FileSet { Name = Arhiva Include { Options { signature = MD5 compression = GZIP wildfile = *.dbf wildfile = *.DBF } File = g:\\Arhiva } } What effect are you trying to achieve? __Martin -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users