Re: [Bacula-users] When is my Volume will be recycled?

2009-10-15 Thread Cedric Tefft
Jose Perez wrote:
> Now I'd like to be able to store (and so be able to restore from)
> backups of last 90 days; Older backups must be simply erased, so to
> achieve this ... would I need something like these?
>
> Client {
>   ...
>   ...
>   File Retention = 90 days
>   Job Retention = 90 days
> }
>
> Pool {
>   ...
>   ...
>   Label Format = Vol-
>   Volume Use Duration = 10 days
>   Volume Retention = 90 days
> }
>
> Am I right? And the above will be equivalent to omit File and Job
> Retention directives but preserving Volume Retention at 90 days?
>   

Almost.  If you want Bacula to truly ignore File and Job retention 
times, I think you need to add "AutoPrune=no" to the client definitions.

> With this Pool configuration Bacula would create about 9 Volumes (from
> Vol-0001 to Vol-0009, one each ten days) within 90 days. Am I right?
>
> So if what I believe is true then Bacula will create a tenth Volume
> (Vol-0010) and just after this being marked as Used (past 10 days
> more) Bacula would choose Vol-0001 to mark it as Purged and overwrite
> it (Recycle), Am I right too?
>
> So according to this Volume strategy management, Bacula will NEVER
> create an eleventh Volume (Vol-0011) because would keep recycling
> Vol-0002, Vol-0003, ..., Vol-00010 (and then Vol-0001 again). Am I
> right?
>   

Yeah, that looks about right.

- Cedric


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] When is my Volume will be recycled?

2009-10-15 Thread Jose Perez
Hi:

> If you did not set any condition to limit the disk volume size or
> usage the volume will grow till it exhausts your storage then the
> volume retention period of 15 days kicks in.
>

That's exactly what is going to happen soon If I don't solve this now.

> See the first part of the following link:
> http://www.bacula.org/en/dev-manual/Automatic_Volume_Recycling.html
>
> You need to set one or more of the following:
>
>    * Use Volume Once = yes
>    * Volume Use Duration = ttt
>    * Maximum Volume Jobs = nnn
>    * Maximum Volume Bytes = mmm
>
> John
>
Thanks, I understand. So I believe that Volume Use Duration is the
best choice for me.

Bye

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] When is my Volume will be recycled?

2009-10-15 Thread Jose Perez
>
> Bacula's retention times for volumes are based on the date the volume was
> last written.  So, every time Bacula writes a backup job to a volume, your
> 15-day retention clock starts over from zero.  As long as your volume's
> status is Append, bacula will keep writing to it.
>

That's the kind of explanation I was looking for. Now I understand why
my Volume Retention period was never being 'working' in my big Volume.

> With a physical, magnetic tape volume, you will eventually reach the end of
> the tape, Bacula will mark the volume FULL, and move on to the next volume.
> With logical (disk file) volumes, there is no natural limit on the size of
> the volume other than the size of the underlying disk partition.  Since you
> probably don't want Bacula to fill up your entire partition, you need to
> place an artificial limit on the size of your volumes.
>
> There are several directives you can include in your Pool definition which
> will accomplish this:
>
>     Maximum Volume Jobs
>     Maximum Volume Files
>     Maximum Volume Bytes
>     Volume Use Duration

Now I'd like to be able to store (and so be able to restore from)
backups of last 90 days; Older backups must be simply erased, so to
achieve this ... would I need something like these?

Client {
  ...
  ...
  File Retention = 90 days
  Job Retention = 90 days
}

Pool {
  ...
  ...
  Label Format = Vol-
  Volume Use Duration = 10 days
  Volume Retention = 90 days
}

Am I right? And the above will be equivalent to omit File and Job
Retention directives but preserving Volume Retention at 90 days?

With this Pool configuration Bacula would create about 9 Volumes (from
Vol-0001 to Vol-0009, one each ten days) within 90 days. Am I right?

So if what I believe is true then Bacula will create a tenth Volume
(Vol-0010) and just after this being marked as Used (past 10 days
more) Bacula would choose Vol-0001 to mark it as Purged and overwrite
it (Recycle), Am I right too?

So according to this Volume strategy management, Bacula will NEVER
create an eleventh Volume (Vol-0011) because would keep recycling
Vol-0002, Vol-0003, ..., Vol-00010 (and then Vol-0001 again). Am I
right?

I think I'm so close to understand better Bacula Volume Management.

Thanks a lot

>
> See the manual for full details:
> http://www.bacula.org/3.0.x-manuals/en/install/install/Configuring_Director.html#SECTION00615
>
> - Cedric
>
>

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] When is my Volume will be recycled?

2009-10-15 Thread Cedric Tefft




Jose Perez wrote:

  Hi people:

I'm a little confused about how bacula deals with Pools and Volumes.
I'm using Automatic labeling with a Pool that uses a unique Volume (as
file disk) that is continuosly increasing its size. I have a unique
volume named Vol-0001 with a size of 900 GB and status Append.

If I pretend to preserve Files for 30 days, Jobs for 60 days.. so When
my big volume will be marked as Full or Used to be able to get
recycled? These are my Pool and Clients configurations:

  


Bacula's retention times for volumes are based on the date the volume
was last written.  So, every time Bacula writes a backup job to a
volume, your 15-day retention clock starts over from zero.  As long as
your volume's status is Append, bacula will keep writing to it.

With a physical, magnetic tape volume, you will eventually reach the
end of the tape, Bacula will mark the volume FULL, and move on to the
next volume.  With logical (disk file) volumes, there is no natural
limit on the size of the volume other than the size of the underlying
disk partition.  Since you probably don't want Bacula to fill up your
entire partition, you need to place an artificial limit on the size of
your volumes.  

There are several directives you can include in your Pool definition
which will accomplish this:

    Maximum Volume Jobs
    Maximum Volume Files
    Maximum Volume Bytes
    Volume Use Duration

See the manual for full details:
http://www.bacula.org/3.0.x-manuals/en/install/install/Configuring_Director.html#SECTION00615

- Cedric




--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] When is my Volume will be recycled?

2009-10-15 Thread John Drescher
On Thu, Oct 15, 2009 at 8:02 PM, Jose Perez  wrote:
> Hi people:
>
> I'm a little confused about how bacula deals with Pools and Volumes.
> I'm using Automatic labeling with a Pool that uses a unique Volume (as
> file disk) that is continuosly increasing its size. I have a unique
> volume named Vol-0001 with a size of 900 GB and status Append.
>
> If I pretend to preserve Files for 30 days, Jobs for 60 days.. so When
> my big volume will be marked as Full or Used to be able to get
> recycled? These are my Pool and Clients configurations:
>
> Client {
>  Name = srv-bacula
>  Password = e7058a46df6c0af918108003a2051a648a211fa4
>  Address = 192.168.100.221
>  FDPort = 9102
>  Catalog = MyCatalog
>  File Retention = 30 days
>  Job Retention = 2 months
> }
>
> Pool {
>  Name = Default
>  Pool Type = Backup
>  Recycle = yes
>  AutoPrune = yes
>  Label Format = Vol-
>  Volume Retention = 15 days
> }
>
> I'm not sure when Bacula will need a new volume nor will mark this
> volume ready for get recycled. I understand that a volume with Append
> status can't be marked as Purged. Am I right?
>
If you did not set any condition to limit the disk volume size or
usage the volume will grow till it exhausts your storage then the
volume retention period of 15 days kicks in.

See the first part of the following link:
http://www.bacula.org/en/dev-manual/Automatic_Volume_Recycling.html

You need to set one or more of the following:

* Use Volume Once = yes
* Volume Use Duration = ttt
* Maximum Volume Jobs = nnn
* Maximum Volume Bytes = mmm

John

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users