[Bacula-users] First Match Issues
I have read the documentation on how bacula looks at what to include vs exclude by the first match. I am trying to get two folders backed up only and exclude all else. It will backup the My Documents folder, but will not backup the local settingsetc I will attach the code snippit, if someone would be so kind as to point out what my error may be. TIA FileSet { Name = Backup Include { File = C:/Documents and Settings Options { IgnoreCase = yes Compression = GZIP1 WildDir = C:/Documents and Settings/*/My Documents WildDir = C:/Documents and Settings/*/Local Settings/Application Data/Microsoft Wild = C:/Documents and Settings/*/My Documents/* Wild = C:/Documents and Settings/*/Local Settings/Application Data/Microsift/* } Options { Exclude = yes WildDir = C:/Documents and Settings/*/* } } } -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] First Match Issues
On Fri, 27 May 2011 09:09:09 -0500, Jake Debord said: I have read the documentation on how bacula looks at what to include vs exclude by the first match. I am trying to get two folders backed up only and exclude all else. It will backup the My Documents folder, but will not backup the local settingsetc I will attach the code snippit, if someone would be so kind as to point out what my error may be. TIA You have to include Local Settings itself, even if you don't include the complete contents. Take a look at the AllPictures example in http://www.bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html __Martin -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] First Match Issues
That is the example I started from. As far as I can tell I am including Local settings. It's formatted the same way the My Documents folder is. Except it backs up My Documents but skips Local Settingsetc Can you be more clear by what you mean by including Local settings? On Fri, May 27, 2011 at 10:03 AM, Martin Simmons mar...@lispworks.com wrote: On Fri, 27 May 2011 09:09:09 -0500, Jake Debord said: I have read the documentation on how bacula looks at what to include vs exclude by the first match. I am trying to get two folders backed up only and exclude all else. It will backup the My Documents folder, but will not backup the local settingsetc I will attach the code snippit, if someone would be so kind as to point out what my error may be. TIA You have to include Local Settings itself, even if you don't include the complete contents. Take a look at the AllPictures example in http://www.bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html __Martin -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] First Match Issues
The short answer is the lines that say Ditto... in the example. My advice is to start again with the example fileset and understand exactly how it works, including the Firstly... and Secondly... text just above it, which is critical to why your fileset doesn't work. __Martin On Fri, 27 May 2011 10:28:58 -0500, Jake Debord said: That is the example I started from. As far as I can tell I am including Local settings. It's formatted the same way the My Documents folder is. Except it backs up My Documents but skips Local Settingsetc Can you be more clear by what you mean by including Local settings? On Fri, May 27, 2011 at 10:03 AM, Martin Simmons mar...@lispworks.com wrote: On Fri, 27 May 2011 09:09:09 -0500, Jake Debord said: I have read the documentation on how bacula looks at what to include vs exclude by the first match. I am trying to get two folders backed up only and exclude all else. It will backup the My Documents folder, but will not backup the local settingsetc I will attach the code snippit, if someone would be so kind as to point out what my error may be. TIA You have to include Local Settings itself, even if you don't include the complete contents. Take a look at the AllPictures example in http://www.bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html __Martin -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] First Match Issues
Never mind, I figured it out on my own by tinkering with it. I will post a code snippet in case someone searching runs across it may be able to understand better. Thank you Martin for your advise, it just was not clear enough for me to understand. What I needed to do was add a separate entry for every level of the folders. Note for every folder you want to backup you need a start location, and an entry for every level of folders after until you reach the folder you want to back up. Ex: FileSet { Name = HmcBackup Include { File = C:/Documents and Settings Options { IgnoreCase = yes Compression = GZIP1 RegExDir = ^C:/Documents and settings/[^/]+$ WildDir = C:/Documents and Settings/*/My Documents WildDir = C:/Documents and Settings/*/Local Settings WildDir = C:/Documents and Settings/*/Local Settings/Application Data WildDir = C:/Documents and Settings/*/Local Settings/Application Data/Microsoft Wild = C:/Documents and Settings/*/My Documents/* Wild = C:/Documents and Settings/*/Local Settings/Application Data/Microsoft/* } Options { Exclude = yes WildDir = C:/Documents and Settings/*/* } } } On Fri, May 27, 2011 at 1:15 PM, Martin Simmons mar...@lispworks.com wrote: The short answer is the lines that say Ditto... in the example. My advice is to start again with the example fileset and understand exactly how it works, including the Firstly... and Secondly... text just above it, which is critical to why your fileset doesn't work. __Martin On Fri, 27 May 2011 10:28:58 -0500, Jake Debord said: That is the example I started from. As far as I can tell I am including Local settings. It's formatted the same way the My Documents folder is. Except it backs up My Documents but skips Local Settingsetc Can you be more clear by what you mean by including Local settings? On Fri, May 27, 2011 at 10:03 AM, Martin Simmons mar...@lispworks.com wrote: On Fri, 27 May 2011 09:09:09 -0500, Jake Debord said: I have read the documentation on how bacula looks at what to include vs exclude by the first match. I am trying to get two folders backed up only and exclude all else. It will backup the My Documents folder, but will not backup the local settingsetc I will attach the code snippit, if someone would be so kind as to point out what my error may be. TIA You have to include Local Settings itself, even if you don't include the complete contents. Take a look at the AllPictures example in http://www.bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html __Martin -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] First Match Issues
That looks pretty good. For 100% correctness, I think your Exclude should be Wild = C:/Documents and Settings/* if you want to prevent backup of files at the top level or in the users' directories. I guess the phrase you must include all ancestor directories of each directory containing files to be included (from the manual) is a more cryptic way of saying what you found out below. __Martin On Fri, 27 May 2011 13:38:51 -0500, Jake Debord said: Never mind, I figured it out on my own by tinkering with it. I will post a code snippet in case someone searching runs across it may be able to understand better. Thank you Martin for your advise, it just was not clear enough for me to understand. What I needed to do was add a separate entry for every level of the folders. Note for every folder you want to backup you need a start location, and an entry for every level of folders after until you reach the folder you want to back up. Ex: FileSet { Name = HmcBackup Include { File = C:/Documents and Settings Options { IgnoreCase = yes Compression = GZIP1 RegExDir = ^C:/Documents and settings/[^/]+$ WildDir = C:/Documents and Settings/*/My Documents WildDir = C:/Documents and Settings/*/Local Settings WildDir = C:/Documents and Settings/*/Local Settings/Application Data WildDir = C:/Documents and Settings/*/Local Settings/Application Data/Microsoft Wild = C:/Documents and Settings/*/My Documents/* Wild = C:/Documents and Settings/*/Local Settings/Application Data/Microsoft/* } Options { Exclude = yes WildDir = C:/Documents and Settings/*/* } } } On Fri, May 27, 2011 at 1:15 PM, Martin Simmons mar...@lispworks.com wrote: The short answer is the lines that say Ditto... in the example. My advice is to start again with the example fileset and understand exactly how it works, including the Firstly... and Secondly... text just above it, which is critical to why your fileset doesn't work. __Martin On Fri, 27 May 2011 10:28:58 -0500, Jake Debord said: That is the example I started from. As far as I can tell I am including Local settings. It's formatted the same way the My Documents folder is. Except it backs up My Documents but skips Local Settingsetc Can you be more clear by what you mean by including Local settings? On Fri, May 27, 2011 at 10:03 AM, Martin Simmons mar...@lispworks.com wrote: On Fri, 27 May 2011 09:09:09 -0500, Jake Debord said: I have read the documentation on how bacula looks at what to include vs exclude by the first match. I am trying to get two folders backed up only and exclude all else. It will backup the My Documents folder, but will not backup the local settingsetc I will attach the code snippit, if someone would be so kind as to point out what my error may be. TIA You have to include Local Settings itself, even if you don't include the complete contents. Take a look at the AllPictures example in http://www.bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html __Martin -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users