Bacula-users

Re: [Bacula-users] what does truncate actually mean?

2013-09-17 16:01:47
Subject: Re: [Bacula-users] what does truncate actually mean?
From: Radosław Korzeniewski <radoslaw AT korzeniewski DOT net>
To: Jeff MacDonald <jeff AT terida DOT com>
Date: Tue, 17 Sep 2013 21:58:51 +0200
Hello,

2013/9/17 Jeff MacDonald <jeff AT terida DOT com>

On 2013-09-17, at 4:43 PM, Radosław Korzeniewski <radoslaw AT korzeniewski DOT net> wrote:

Hello,

2013/9/17 Jeff MacDonald <jeff AT terida DOT com>
I'm trying to find out what "truncate" actually means in the context of bacula and purging..

Does it reduce the volume size to 0, or?


Yes, it reduces a volume size to a size of Bacula label.

Is there a trick to making it work? I just enabled it on Action after purge, went into bconsole and reloaded teh config file and then purged a file and its size did not change.


When you check a source code, you'll find:

   /*
    * Look for all Purged volumes that can be recycled, are enabled and
    *  have more the 10,000 bytes.
    */
   mr.Recycle = 1;
   mr.Enabled = 1;
   mr.VolBytes = 10000;

so, all above requirements should be met for proper truncate.

And then a bconsole command: purge volume action="" allpools storage=bacula-sd is working like a charm.

best regards
--
Radosław Korzeniewski
radoslaw AT korzeniewski DOT net
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>