Look good, but I think you should remove File = /opt/virtual/images
from the Exclude clause. __Martin >>>>> On Tue, 25 Nov 2014 18:35:27 +0000, Polcari, Joe (Contractor) said: > > So I can't quite grasp this. > I have a directory which is part of / that contains virtual disk images, > /opt/virtual/images. > I think I want to set that directory to do sparse files since I don't > allocate the complete disk when I create a VM. > So I start with: > > FileSet { > Name = puppetmaster-fileset > Include { > Options { > signature = MD5 > noatime = yes > } > File = /boot > File = / > File = /var/lib/mysql > } > Exclude { > File = /var/spool/bacula > File = /tmp > File = /proc > File = /tmp > File = /.journal > File = /.fsck > } > } > > I should change it to: > > FileSet { > Name = puppetmaster-fileset > Include { > Options { > signature = MD5 > noatime = yes > } > File = /boot > File = / > File = /var/lib/mysql > } > Exclude { > File = /opt/virtual/images > File = /var/spool/bacula > File = /tmp > File = /proc > File = /tmp > File = /.journal > File = /.fsck > } > Include { > Options { > signature = MD5 > noatime = yes > sparse = yes > } > File = /opt/virtual/images > } > > Is that right? > > > > -----Original Message----- > From: Bill Arlofski [mailto:waa-bac...@revpol.com] > Sent: Monday, November 24, 2014 5:24 PM > To: bacula-users@lists.sourceforge.net > Subject: Re: [Bacula-users] How to make bacula handle sparse files correctly > > On 11/24/2014 12:14 PM, Polcari, Joe (Contractor) wrote: > > I added an instance of docker to one of my systems. This added a sparse > > file of 10 GB with a "real" size of 100 GB. > > This should have only added 10GB to my full backup but it added 100GB. > > Is there any way to tell bacula to handle sparse files correctly? > > Hi Joe, > > There is an option for the Include stanza of a Fileset: > > sparse = yes > > Which works correctly with sparse files. We had to add this option to one of > our filesets when a newer version of of our mail server changed one of its db > files to sparse file. > > > If so, why isn't this the default? Shouldn't it be? > > Not sure. Unless the code that deals with sparse files adds additional > overhead when it is typically not required. > > With our setup, I have _one_ file that is sparse so it is excluded using the > wild = option in the bigger Include stanza of a Fileset, then Included > specifically in a File = option in the second Include stanza which has the > sparse = yes option. > > > Maybe someone else can comment re: default being sparse = no > > Hope this helps. > > Bill > > > -- > Bill Arlofski > Reverse Polarity, LLC > http://www.revpol.com/ > -- Not responsible for anything below this line -- > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users