On 07.03.2017 at 21:39 wrote Sven Gehr: > When I try: > > -> bconsole > *purge volume=Full-0218 action=truncate > > I get the error: > > This command can be DANGEROUS!!! > > It purges (deletes) all Files from a Job, > JobId, Client or Volume; or it purges (deletes) > all Jobs from a Client or Volume without regard > to retention periods. Normally you should use the > PRUNE command, which respects retention periods. > > Volume "Full-0218" has VolStatus "Purged" and cannot be purged. > The VolStatus must be: Append, Full, Used, or Error to be purged. > > Automatically selected Storage: File > Using Catalog "MyCatalog" > The defined Pool resources are: > 1: Full > 2: Diff > 3: Incr > 4: Scratch > Select Pool resource (1-4): 1 > Connecting to Storage daemon File at kvm01.peka.lan:9103 ... > > The option "Action On Purge = Truncate" was not defined in the Pool resource. > Unable to truncate volume "Full-0218" > > What's wrong?+
The "Action On Purge = Truncate" must be defined before the volume has been created, or you have to propagate the setting via the update command. As this is all not very intuitive, current versions of Bareos (I think starting with 16.2.5) have the "truncate" command. With this, you don't need the "Action On Purge = Truncate" setting. -- Jörg Steffens [email protected] Bareos GmbH & Co. KG Phone: +49 221 630693-91 http://www.bareos.com Fax: +49 221 630693-10 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 Komplementär: Bareos Verwaltungs-GmbH Geschäftsführer: S. Dühr, M. Außendorf, Jörg Steffens, P. Storz -- 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.
