Russell -

I looked at the source code this morning.  To purge a volume named 
'AI-Consolidated-100" you can simple enter ...

purge volume=AI-Consolidated-100

If you want it to be truncated, there are 3 more required arguments ...

purge volume=AI-Consolidated-100 action=Truncate pool=AI-Consolidated 
storage=File

where 'AI-Consolidated' is the name of the pool my volume resides in and 'File' 
is the name of the Storage resource associated with my AI-Consolidated pool.

The volume will then be truncated IF ...
1) Action on Purge = 'Truncate' for the volume
2) VolStatus is Append, Full, Used, or Error
3) Recycle is enabled for the volume
4) The volume size is currently > 10kB

So this resolves the issue where your command line truncation is not working.  
I did not find anywhere in the code where the truncate on purge function was 
implemented outside the console command line.  So it appears it will not, as we 
noticed, truncate the volumes when they are automatically purged.

If you want to use this console command for volumes that you have already 
purged, you'll have to first set them back to one of the valid VolStatus values 
above.

Dan

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to