Bacula-users

Re: [Bacula-users] volume management on a storage File

2008-12-09 21:37:06
Subject: Re: [Bacula-users] volume management on a storage File
From: "Lukasz Szybalski" <szybalski AT gmail DOT com>
To: "Robert Du Gaue" <rdugaue AT calweb DOT com>
Date: Tue, 9 Dec 2008 20:34:20 -0600
> prune
> The Prune command allows you to safely remove expired database
> records from Jobs and Volumes. This command works only on the
> Catalog database and does not affect data written to Volumes. In all
> cases, the Prune command applies a retention period to the specified
> records. You can Prune expired File entries from Job records; you can
> Prune expired Job records from the database, and you can Prune both
> expired Job and File records from specified Volumes.
> prune files—jobs—volume client=<client-name> volume=<volumename>
> For a Volume to be pruned, the VolStatus must be Full, Used, or
> Append, otherwise the pruning will not take place.
>
> purge
>
> The Purge command will delete associated Catalog database records
> from Jobs and Volumes without considering the retention period.
> Purge works only on the Catalog database and does not affect data
> written to Volumes. This command can be dangerous because you can
> delete catalog records associated with current backups of files, and we
> recommend that you do not use it unless you know what you are doing.
> The permitted forms of purge are:
> purge files jobid=<jobid>—job=<job-name>—client=<clientname>
> purge jobs client=<client-name> (of all jobs)
> purge volume—volume=<vol-name> (of all jobs)
> For the purge command to work on Volume Catalog database records
> the VolStatus must be Append, Full, Used, or Error.
> The actual data written to the Volume will be unaffected by this command.
>
> Afterwards, delete the actual physical file if you need to recover the disk
> space.

Can you guys give me an example on how to do this.
My full backup on a new volume is done.

now I would like to delete either everything older then december 1st
or if I can't then the whole old volume.

1. How can I find out what is the VolStatus ? what command gives me that?
2. I have to switch it to full, how can i do that?
3. Do I have any options to delete actual files from the volume aka.
anything older then dec. 1st delete files and catalog data?

Thanks,
Lucas
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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>