Bacula-users

Re: [Bacula-users] problem with job copy and retention period

2011-09-14 12:33:05
Subject: Re: [Bacula-users] problem with job copy and retention period
From: Kleber Leal <kleber.leal AT gmail DOT com>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 14 Sep 2011 13:30:44 -0300
Victor,

it seems your volumes are not configured to retain volumes for 3 months.
Verify this executing list volumes and check retention.
The retention period is not updated automaticaly to volumes created before configuration on pool resource.
I have the configuration and works properly.

If the retention period is incorrect you can update it runing update volume command from bconsole.

Kleber

2011/9/14 Victor Hugo dos Santos <listas.vhs AT gmail DOT com>
Hi...

I have this situation:

A small SD in the server (2TB) with a retention period of 3 months.
and a other SD in a disk USB (1TB) with a retention period of 1 month.

Note: the idea is leave only the more recently backups (one month) in
internal and external disk.. .and the oldest backup in the internal
disk (we don't believe that we will need this old backups in the
future).

I have configured the bacula director to copy all jobs from server to
disk USB...
that worded OK.. but after a month.. the director purge the volumes
with one month or more at the disk USB and after this the director
copy the old jobs again to usb disk !! :-(


my job copy is configured to copy all "uncopied" jobs
(PoolUncopiedJobs).. but, apparently the director consider that if the
volume don't exist in the other SD, the volume isn't copied and make a
new copy job !!!

any idea to workaround this ??


extract from director configuration
====================
Job {
 Name     = "CopyToTape"
 Type     = Copy
 Level    = Full
 JobDefs  = "DefaultJob"
 Client   = bacula-fd
 Priority = 200
 Selection Type = PoolUncopiedJobs
 Schedule    = "WeeklyCycleForCopyingToUSB"
}

# Scratch pool definition
Pool {
 Name = Scratch
 Pool Type = Backup
}


Pool {
       Name = Mensual-Completo
       Pool Type = Backup
       Recycle = yes
       AutoPrune = yes
       Volume Retention = 3 months
       Maximum Volume Jobs = 1
       Label Format = mensual-completo-
       Next Pool = Pool-DiscoUSB
}

Pool {
       Name = Semanal-Diferencial
       Pool Type = Backup
       Recycle = yes
       AutoPrune = yes
       Volume Retention = 35 days
       Maximum Volume Jobs = 1
       Label Format = semanal-diferencial-
       Next Pool = Pool-DiscoUSB
}


Pool {
       Name = Diario-Incremental
       Pool Type = Backup
       Recycle = yes
       AutoPrune = yes
       Volume Retention = 14 days
       Maximum Volume Jobs = 1
       Label Format = diario-incremental-
       Next Pool = Pool-DiscoUSB
}

Pool {
       Name = Pool-DiscoUSB
       Pool Type = Backup
       Recycle = yes
       AutoPrune = yes
       Volume Retention = 35 days
       Maximum Volume Jobs = 1
       Storage = DiscoUSB
}


Schedule {
 Name = "WeeklyCycleForCopyingToUSB"
 Run = Level=Full mon-fri     at 11:06
 Run = Level=Differential mon-fri     at 11:06
 Run = Level=Incremental mon-fri     at 11:06
}
====================


--
--
Victor Hugo dos Santos
Linux Counter #224399

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
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>