Re: [Bacula-users] Forcing baccula to purge/recycle a tape instead of appending?!

2014-11-01 Thread Thorsten Reichelt
Hi!

Yes, I know.
But I have 6 clients. And for each client I wrote two jobs:

1) Backup to file (pool: filepool)
2) Backup to tape (pool: monthlytape)

The tape backup is triggered on every first saturday of a month.
The schedule and the job looks like this (from memory):

===
Schedule {
  Name = "MonthlyBackupToTape"
  Run = Level=Full Pool=MonthlyTape 1st sat at 2:00
}

Job {
  Name = "Client1-ToTape"
  Type = Backup
  Level = Full
  Client = dns
  FileSet="fs-dns"
  Storage = LTO4
  Pool = MonthlyBackupToTape
  Schedule = "BackupToTape"
}
===

But maybe sometimes a backup goes wrong and I want to re-start the
tape backup manually for the specific client. So I'd need jobs like

client1-toFile
client1-toTape-Jan
client1-toTape-Feb
client1-toTape-Mar
client1-toTape-Apr
client1-toTape-Mai
[...]

But to resume the thread's title... can I switch from my "monthytape"
pool (12 tapes / one pool) to the new "1 tape / one pool" pool without
loosing the backup information of the last 11 tapes?


On 30.10.2014 21:18, John Drescher wrote:
> 
> No. You can select the pool in the schedule resource.
> 
> http://www.bacula.org/5.2.x-manuals/en/main/main/Configuring_Director.html#SECTION00145
> 
> John
> 

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Forcing baccula to purge/recycle a tape instead of appending?!

2014-10-30 Thread John Drescher
> That's a great idea!
> But this would mean that I have to generate jobs for each month... for
> each client. Or am I wrong?!
>

No. You can select the pool in the schedule resource.

http://www.bacula.org/5.2.x-manuals/en/main/main/Configuring_Director.html#SECTION00145

John

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Forcing baccula to purge/recycle a tape instead of appending?!

2014-10-30 Thread Thorsten Reichelt
Thank you so much for your answers!!

At the moment I have unfortunately verry litle time to try out all your
hints :(

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Forcing baccula to purge/recycle a tape instead of appending?!

2014-10-30 Thread Thorsten Reichelt
Hi!

That's a great idea!
But this would mean that I have to generate jobs for each month... for
each client. Or am I wrong?!

> If you truly want the monthly tapes to only ever be used for that 
> particular month, you may wish to consider creating a pool for each 
> month instead.  Then in your Schedule you can specify the specific pool 
> for that month:

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Forcing baccula to purge/recycle a tape instead of appending?!

2014-10-15 Thread Dmitri Maziuk
On 10/15/2014 11:45 AM, Thorsten Reichelt wrote:
> Hi!
>
> I have a problem with my tape pool configuration.
> I want to use exactly 12 LTO tapes (one tape per month).
> After 12 month the oldest tape shall be reused without appending new data.

Other issues aside, you do realise that tape reliability claims are 
based on the assumption you write the tape once, put it in (controlled 
enviroment) storage and never take it out again, right? I.e. if you plan 
on overwriting the same tape more than one or two times, you're better 
off backing up to hard drives.

Dima



--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Forcing baccula to purge/recycle a tape instead of appending?!

2014-10-15 Thread Bryn Hughes
One more thing that is worth mentioning...

If you truly want the monthly tapes to only ever be used for that 
particular month, you may wish to consider creating a pool for each 
month instead.  Then in your Schedule you can specify the specific pool 
for that month:

Schedule {
  Name = MonthlyBackups
  Run = Level=Full Pool=January jan 1 at 00:00
  Run = Level=Full Pool=February feb 1 at 00:00
  
  Run = Level=Full Pool=December dec 1 at 00:00
}

If in the future you need multiple tapes for a month, this approach 
would allow you to have multiple tapes in each month's pool as well.

Bryn

On 14-10-15 09:58 AM, Bryn Hughes wrote:
> There are a couple of things you can do in combination to get the result
> you want...
>
> First off, in your pool set a 'volume use duration' - this will restrict
> how long a time span of data can exist on a tape.  For instance in your
> case you could set the volume use duration to 32 days, this would tell
> Bacula not to append any data to a tape 32 days after the first data was
> written to it.  The tape will get a status of 'USED' rather than
> 'APPEND' once that time period passes.  Regardless of what happens with
> the expiry / purge jobs this will prevent the scenario you are
> describing from ever happening - Bacula would instead complain that it
> could not find a tape if one wasn't available, it would not append data
> to an 'old' tape until the jobs on it were purged.
>
> Secondly yes, set the volume retention lower.  Bacula will not purge a
> tape unless it needs to so it won't automatically purge data when it
> hits the volume retention date - even if you did need data off of a tape
> that was 11 months and 28 days old but Bacula hadn't needed the tape for
> writing yet, the data would still be there so you won't be loosing anything.
>
> Bryn
>
> On 14-10-15 09:45 AM, Thorsten Reichelt wrote:
>> Hi!
>>
>> I have a problem with my tape pool configuration.
>> I want to use exactly 12 LTO tapes (one tape per month).
>> After 12 month the oldest tape shall be reused without appending new data.
>>
>> But bacula seems to ignore my recycle and purge configuration (see below).
>> After one year I reuse the old tape and bacula appends the new data to it.
>> Then, after the second year has passed, the data is still appended to
>> the tape!
>>
>> Now I have the problem that my september tape ran out of free space and
>> I was
>> asked to insert the august tape... a few MB later that tape was full
>> also and
>> bacula asked for the july tape :/ :/
>>
>> So I manually purged the september tape and restarted all related backup
>> jobs.
>> How can I configure bacula to purge the oldest tape instead of appending
>> to it
>> for more than two years?
>>
>> My pool configuration for the tape looks like this:
>>
>> # ==
>> Pool {
>> Name = MonthlyTape
>> Use Volume Once = no
>> Pool Type = Backup
>> AutoPrune = yes
>> Recycle Current Volume = yes
>> Volume Retention = 12 month
>> Recycle = yes
>> }
>> # ==
>>
>> Would it make sense to set the retention time to "11 month 1 days"?
>>
>> Thank you very much!!
>>
>> Thorsten
>>
>> --
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>> http://p.sf.net/sfu/Zoho
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Forcing baccula to purge/recycle a tape instead of appending?!

2014-10-15 Thread John Drescher
> Remember that the retention period does not even begin until the tape
> is marked Full or Used. And then after it is marked Full or Used the
> period is calculated from the LastWrittenDate on the volume (stored in
> the database).
>
> If you want to control how long a volume is used bacula has a few
> directives that limit the use duration and the number of jobs and
> total bytes written. When these limits are reached a volume will
> marked Used and the retention period will begin.

Also remember that changing these limits in bacula-dir.conf does not
apply the change to existing volumes. You need to use bconsole to
"update pool from resource" then "update all volumes in pool" to apply
the config changes to existing volumes.

John

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Forcing baccula to purge/recycle a tape instead of appending?!

2014-10-15 Thread Bryn Hughes
There are a couple of things you can do in combination to get the result 
you want...

First off, in your pool set a 'volume use duration' - this will restrict 
how long a time span of data can exist on a tape.  For instance in your 
case you could set the volume use duration to 32 days, this would tell 
Bacula not to append any data to a tape 32 days after the first data was 
written to it.  The tape will get a status of 'USED' rather than 
'APPEND' once that time period passes.  Regardless of what happens with 
the expiry / purge jobs this will prevent the scenario you are 
describing from ever happening - Bacula would instead complain that it 
could not find a tape if one wasn't available, it would not append data 
to an 'old' tape until the jobs on it were purged.

Secondly yes, set the volume retention lower.  Bacula will not purge a 
tape unless it needs to so it won't automatically purge data when it 
hits the volume retention date - even if you did need data off of a tape 
that was 11 months and 28 days old but Bacula hadn't needed the tape for 
writing yet, the data would still be there so you won't be loosing anything.

Bryn

On 14-10-15 09:45 AM, Thorsten Reichelt wrote:
> Hi!
>
> I have a problem with my tape pool configuration.
> I want to use exactly 12 LTO tapes (one tape per month).
> After 12 month the oldest tape shall be reused without appending new data.
>
> But bacula seems to ignore my recycle and purge configuration (see below).
> After one year I reuse the old tape and bacula appends the new data to it.
> Then, after the second year has passed, the data is still appended to
> the tape!
>
> Now I have the problem that my september tape ran out of free space and
> I was
> asked to insert the august tape... a few MB later that tape was full
> also and
> bacula asked for the july tape :/ :/
>
> So I manually purged the september tape and restarted all related backup
> jobs.
> How can I configure bacula to purge the oldest tape instead of appending
> to it
> for more than two years?
>
> My pool configuration for the tape looks like this:
>
> # ==
> Pool {
>Name = MonthlyTape
>Use Volume Once = no
>Pool Type = Backup
>AutoPrune = yes
>Recycle Current Volume = yes
>Volume Retention = 12 month
>Recycle = yes
> }
> # ==
>
> Would it make sense to set the retention time to "11 month 1 days"?
>
> Thank you very much!!
>
>Thorsten
>
> --
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Forcing baccula to purge/recycle a tape instead of appending?!

2014-10-15 Thread Thorsten Reichelt
Hi!

I have a problem with my tape pool configuration.
I want to use exactly 12 LTO tapes (one tape per month).
After 12 month the oldest tape shall be reused without appending new data.

But bacula seems to ignore my recycle and purge configuration (see below).
After one year I reuse the old tape and bacula appends the new data to it.
Then, after the second year has passed, the data is still appended to
the tape!

Now I have the problem that my september tape ran out of free space and
I was
asked to insert the august tape... a few MB later that tape was full
also and
bacula asked for the july tape :/ :/

So I manually purged the september tape and restarted all related backup
jobs.
How can I configure bacula to purge the oldest tape instead of appending
to it
for more than two years?

My pool configuration for the tape looks like this:

# ==
Pool {
  Name = MonthlyTape
  Use Volume Once = no
  Pool Type = Backup
  AutoPrune = yes
  Recycle Current Volume = yes
  Volume Retention = 12 month
  Recycle = yes
}
# ==

Would it make sense to set the retention time to "11 month 1 days"?

Thank you very much!!

  Thorsten

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users