On 2013-09-17, at 4:58 PM, Radosław Korzeniewski <rados...@korzeniewski.net> 
wrote:

> Hello,
> 
> 2013/9/17 Jeff MacDonald <j...@terida.com>
> 
> On 2013-09-17, at 4:43 PM, Radosław Korzeniewski <rados...@korzeniewski.net> 
> wrote:
> 
>> Hello,
>> 
>> 2013/9/17 Jeff MacDonald <j...@terida.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=truncate allpools 
> storage=bacula-sd is working like a charm.

Aye, I made to mistakes

1: i was expecting the truncate to happen as soon as i ran "purge" without 
extra arguments. didn't know about running it as a RunScript / Manually with 
the full command of "purge volume action=truncate storage=File allpools"

2: my volumes did not have actiononpurge=1 in the database.

Jeff.


------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to