Re: [Bacula-users] Purging files and volumes, but NOT jobs

2005-11-11 Thread Geir Asle Borgen
On Thu, 2005-11-10 at 19:59 +0100, Geir Asle Borgen wrote:
[snip]
[/snip]
 Hmm ... now I have a:
 
 Volume Use Duration = 10 min
 File Retention = 30 min
 Job Retention = 2 h
 Volume Retention = 30 min
 
 Just for testing ... I run 4 jobs whit 10 min in between, and get 4
 volumes. When the last job is finished the first job is purged from the
 list jobs in bconsole. So fare so good, but how can I use this whit my
 month-tape setup. If I understood Martin Simmons right it is possible to
 restore form a volume where the job retention still is'nt run out (the
 volume is on a tape and set to readonly). HOW ... I can't understand how
 I can do this ...
OK, the way I see it I have tow possibilities:
* Take backup whit all retention times set to 60 days and (if possible)
import an old volume from tape to the database when I need to restore
files older then 60 days. If possible, how can I import old volumes that
are purged form the database?

* Or I can set all retention times to 99 years and delete old volumes on
diskbackup whit `find /path -type f -name VolumeXXX -mtime + 60 -exec rm
{} \:` in a Run Befor Client option. Then I get a ENORMOUS database
after some time, but I can use bconsole and run delte on all diskbackup
jobs older then 60 days. Or is it possible to delete jobs from the
database in a script, how?

Help please ... any one?

-- 
Phone Work: +47 69212321 / 2321  Phone Priv: +47 69809853 (o_  
+47 99521685 / 3137   //\
ICQ: 48948625   MSN: [EMAIL PROTECTED]   V_/_ i n u x
Registered Linux User # 171776 (http://counter.li.org)


signature.asc
Description: This is a digitally signed message part


Re: [Bacula-users] Purging files and volumes, but NOT jobs

2005-11-11 Thread Martin Simmons
 On Thu, 10 Nov 2005 19:59:10 +0100, Geir Asle Borgen [EMAIL PROTECTED] 
 said:

  Geir On Thu, 2005-11-10 at 10:50 +0100, Geir Asle Borgen wrote:
   On Thu, 2005-11-10 at 09:36 +, Martin Simmons wrote:
 On Thu, 10 Nov 2005 10:12:19 +0100, Geir Asle Borgen
   [EMAIL PROTECTED] said:
   
  Geir On Wed, 2005-11-09 at 19:52 +, Martin Simmons wrote:
On Wed, 09 Nov 2005 11:12:30 +0100, Geir Asle Borgen
   [EMAIL PROTECTED] said:
   
  Geir If I have understod it right will the volume be purged/deleted
   before
  Geir the retention time for files, jobs and volume stored on the
   specific
  Geir volume. And to restore files you need both the volume (where
   the files
  Geir are stored) and the job info (stored in the database, not on
   the
  Geir volume).
   
  Geir My problem is the backupstrategi we use here. We take
   incremental  backup
  Geir to disk every working day, but once a month we take full
   backup to tape.
  Geir So fare, all is good. BUT we have all the 12 month-tapes
   stored for a
  Geir year, and we also have a year-tape who is stored for all
   future. The
  Geir consequence of this is that I have to set job retention to
   something
  Geir like for all times!?!
   
  Geir Most restores are done on files lost less the a month ago ...
   but form
  Geir time to time I have to go to tape and get older files. But if
   job
  Geir retention is set to never expire all files will be stored on
   disk as
  Geir well for all time ... and I will run out of diskspace.
   
  Geir Is there some things I can do to be able to restore files
   older then one
  Geir month (form tape, but not loos the job-info stored in the
   database)?
  Geir Will deleting `rm VolumeXX` from the disk and setting job
   retention to
  Geir 99 years do the trick? Or will that just FP everything?
   
   Have you considered setting the Volume Retention for the disk
   volumes to
   something like 60 days?  That will override the longer Job
   Retention and allow
   the disk volumes to be recycled.
   
  Geir Yes, I have considered that, but is that the way it work? Does
   Volume
  Geir Retention override Job Retention?
   
Yes (and the File Retention).  The manual describes this in more
   detail.
   Hurray ... this solves the problem (maybe I have to buy glasses? Or drik
   mor coffee?)
  Geir Hmm ... now I have a:

  Geir Volume Use Duration = 10 min
  Geir File Retention = 30 min
  Geir Job Retention = 2 h
  Geir Volume Retention = 30 min

  Geir Just for testing ... I run 4 jobs whit 10 min in between, and get 4
  Geir volumes. When the last job is finished the first job is purged from the
  Geir list jobs in bconsole. So fare so good, but how can I use this whit my
  Geir month-tape setup. If I understood Martin Simmons right it is possible to
  Geir restore form a volume where the job retention still is'nt run out (the
  Geir volume is on a tape and set to readonly). HOW ... I can't understand how
  Geir I can do this ...

Use a Volume Retention of 12 months for the month-tapes tape volumes and 1
month for the disk volumes.  For the year-tape volume, you can set its
retention to 99 years if you want to keep it in the pool forever.

__Martin


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Purging files and volumes, but NOT jobs

2005-11-11 Thread Geir Asle Borgen
On Fri, 2005-11-11 at 12:48 +, Martin Simmons wrote:
  On Thu, 10 Nov 2005 19:59:10 +0100, Geir Asle Borgen [EMAIL 
  PROTECTED] said:
[snip]
[/snip]
   Geir Hmm ... now I have a:
 
   Geir Volume Use Duration = 10 min
   Geir File Retention = 30 min
   Geir Job Retention = 2 h
   Geir Volume Retention = 30 min
 
   Geir Just for testing ... I run 4 jobs whit 10 min in between, and get 4
   Geir volumes. When the last job is finished the first job is purged from 
 the
   Geir list jobs in bconsole. So fare so good, but how can I use this whit 
 my
   Geir month-tape setup. If I understood Martin Simmons right it is possible 
 to
   Geir restore form a volume where the job retention still is'nt run out (the
   Geir volume is on a tape and set to readonly). HOW ... I can't understand 
 how
   Geir I can do this ...
 
 Use a Volume Retention of 12 months for the month-tapes tape volumes and 1
 month for the disk volumes.  For the year-tape volume, you can set its
 retention to 99 years if you want to keep it in the pool forever.
But what about File and Job Retention ... those are set on the Client,
and the Client is the same! Or can I put other retention times for file
and job in the Scheduler? 

If I set File and Job Retention to 99 years all, but one be fine ... the
MySQL database where all Job info is stored ... Any suggestions?
 
 __Martin
 
 
 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
-- 
Phone Work: +47 69212321 / 2321  Phone Priv: +47 69809853 (o_  
+47 99521685 / 3137   //\
ICQ: 48948625   MSN: [EMAIL PROTECTED]   V_/_ i n u x
Registered Linux User # 171776 (http://counter.li.org)


signature.asc
Description: This is a digitally signed message part


Re: [Bacula-users] Purging files and volumes, but NOT jobs

2005-11-11 Thread Martin Simmons
 On Fri, 11 Nov 2005 14:58:38 +0100, Geir Asle Borgen [EMAIL PROTECTED] 
 said:

  Geir On Fri, 2005-11-11 at 12:48 +, Martin Simmons wrote:
On Thu, 10 Nov 2005 19:59:10 +0100, Geir Asle Borgen [EMAIL 
PROTECTED] said:
  Geir [snip]
  Geir [/snip]
  Geir Hmm ... now I have a:
   
  Geir Volume Use Duration = 10 min
  Geir File Retention = 30 min
  Geir Job Retention = 2 h
  Geir Volume Retention = 30 min
   
  Geir Just for testing ... I run 4 jobs whit 10 min in between, and get 4
  Geir volumes. When the last job is finished the first job is purged from the
  Geir list jobs in bconsole. So fare so good, but how can I use this whit my
  Geir month-tape setup. If I understood Martin Simmons right it is possible to
  Geir restore form a volume where the job retention still is'nt run out (the
  Geir volume is on a tape and set to readonly). HOW ... I can't understand how
  Geir I can do this ...
   
   Use a Volume Retention of 12 months for the month-tapes tape volumes and 1
   month for the disk volumes.  For the year-tape volume, you can set its
   retention to 99 years if you want to keep it in the pool forever.

  Geir But what about File and Job Retention ... those are set on the Client,
  Geir and the Client is the same! Or can I put other retention times for file
  Geir and job in the Scheduler?

  Geir If I set File and Job Retention to 99 years all, but one be fine ... the
  Geir MySQL database where all Job info is stored ... Any suggestions?

No, you can't put different File and Job Retentions in the Scheduler.

Setting them to 99 years might be OK.  It won't keep all the records for 99
years, because the shortest retention (from Volume, File and Job) controls
what is kept for each job.  When the Volume Retention is reached for a volume,
all the job and file records are removed for that volume, so this will happen
every month for the disk volumes and every 12 months for the month-tapes.

__Martin


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Purging files and volumes, but NOT jobs

2005-11-10 Thread Geir Asle Borgen
On Wed, 2005-11-09 at 19:52 +, Martin Simmons wrote:
  On Wed, 09 Nov 2005 11:12:30 +0100, Geir Asle Borgen [EMAIL 
  PROTECTED] said:
 
   Geir If I have understod it right will the volume be purged/deleted before
   Geir the retention time for files, jobs and volume stored on the specific
   Geir volume. And to restore files you need both the volume (where the files
   Geir are stored) and the job info (stored in the database, not on the
   Geir volume).
 
   Geir My problem is the backupstrategi we use here. We take incremental 
 backup
   Geir to disk every working day, but once a month we take full backup to 
 tape.
   Geir So fare, all is good. BUT we have all the 12 month-tapes stored for a
   Geir year, and we also have a year-tape who is stored for all future. The
   Geir consequence of this is that I have to set job retention to something
   Geir like for all times!?!
 
   Geir Most restores are done on files lost less the a month ago ... but form
   Geir time to time I have to go to tape and get older files. But if job
   Geir retention is set to never expire all files will be stored on disk as
   Geir well for all time ... and I will run out of diskspace.
 
   Geir Is there some things I can do to be able to restore files older then 
 one
   Geir month (form tape, but not loos the job-info stored in the database)?
   Geir Will deleting `rm VolumeXX` from the disk and setting job retention to
   Geir 99 years do the trick? Or will that just FP everything?
 
 Have you considered setting the Volume Retention for the disk volumes to
 something like 60 days?  That will override the longer Job Retention and allow
 the disk volumes to be recycled.
Yes, I have considered that, but is that the way it work? Does Volume
Retention override Job Retention?

-- 
Phone Work: +47 69212321 / 2321  Phone Priv: +47 69809853 (o_  
+47 99521685 / 3137   //\
ICQ: 48948625   MSN: [EMAIL PROTECTED]   V_/_ i n u x
Registered Linux User # 171776 (http://counter.li.org)


signature.asc
Description: This is a digitally signed message part


Re: [Bacula-users] Purging files and volumes, but NOT jobs

2005-11-10 Thread Geir Asle Borgen
On Thu, 2005-11-10 at 09:36 +, Martin Simmons wrote:
  On Thu, 10 Nov 2005 10:12:19 +0100, Geir Asle Borgen [EMAIL 
  PROTECTED] said:
 
   Geir On Wed, 2005-11-09 at 19:52 +, Martin Simmons wrote:
 On Wed, 09 Nov 2005 11:12:30 +0100, Geir Asle Borgen [EMAIL 
 PROTECTED] said:
 
   Geir If I have understod it right will the volume be purged/deleted before
   Geir the retention time for files, jobs and volume stored on the specific
   Geir volume. And to restore files you need both the volume (where the files
   Geir are stored) and the job info (stored in the database, not on the
   Geir volume).
 
   Geir My problem is the backupstrategi we use here. We take incremental  
 backup
   Geir to disk every working day, but once a month we take full backup to 
 tape.
   Geir So fare, all is good. BUT we have all the 12 month-tapes stored for a
   Geir year, and we also have a year-tape who is stored for all future. The
   Geir consequence of this is that I have to set job retention to something
   Geir like for all times!?!
 
   Geir Most restores are done on files lost less the a month ago ... but form
   Geir time to time I have to go to tape and get older files. But if job
   Geir retention is set to never expire all files will be stored on disk as
   Geir well for all time ... and I will run out of diskspace.
 
   Geir Is there some things I can do to be able to restore files older then 
 one
   Geir month (form tape, but not loos the job-info stored in the database)?
   Geir Will deleting `rm VolumeXX` from the disk and setting job retention to
   Geir 99 years do the trick? Or will that just FP everything?
 
Have you considered setting the Volume Retention for the disk volumes to
something like 60 days?  That will override the longer Job Retention and 
 allow
the disk volumes to be recycled.
 
   Geir Yes, I have considered that, but is that the way it work? Does Volume
   Geir Retention override Job Retention?
 
 Yes (and the File Retention).  The manual describes this in more detail.
Hurray ... this solves the problem (maybe I have to buy glasses? Or drik
mor coffee?)

 Note: if you change the Volume Retention in the Pool resource, then you'll
 need to update the value in the catalog for all the existing volumes in that
 Pool.
THAT I know ... I've done that mistake :(

THANKS 
-- 
Phone Work: +47 69212321 / 2321  Phone Priv: +47 69809853 (o_  
+47 99521685 / 3137   //\
ICQ: 48948625   MSN: [EMAIL PROTECTED]   V_/_ i n u x
Registered Linux User # 171776 (http://counter.li.org)


signature.asc
Description: This is a digitally signed message part


Re: [Bacula-users] Purging files and volumes, but NOT jobs

2005-11-10 Thread Geir Asle Borgen
On Thu, 2005-11-10 at 10:50 +0100, Geir Asle Borgen wrote:
 On Thu, 2005-11-10 at 09:36 +, Martin Simmons wrote:
   On Thu, 10 Nov 2005 10:12:19 +0100, Geir Asle Borgen
 [EMAIL PROTECTED] said:
  
Geir On Wed, 2005-11-09 at 19:52 +, Martin Simmons wrote:
  On Wed, 09 Nov 2005 11:12:30 +0100, Geir Asle Borgen
 [EMAIL PROTECTED] said:
  
Geir If I have understod it right will the volume be purged/deleted
 before
Geir the retention time for files, jobs and volume stored on the
 specific
Geir volume. And to restore files you need both the volume (where
 the files
Geir are stored) and the job info (stored in the database, not on
 the
Geir volume).
  
Geir My problem is the backupstrategi we use here. We take
 incremental  backup
Geir to disk every working day, but once a month we take full
 backup to tape.
Geir So fare, all is good. BUT we have all the 12 month-tapes
 stored for a
Geir year, and we also have a year-tape who is stored for all
 future. The
Geir consequence of this is that I have to set job retention to
 something
Geir like for all times!?!
  
Geir Most restores are done on files lost less the a month ago ...
 but form
Geir time to time I have to go to tape and get older files. But if
 job
Geir retention is set to never expire all files will be stored on
 disk as
Geir well for all time ... and I will run out of diskspace.
  
Geir Is there some things I can do to be able to restore files
 older then one
Geir month (form tape, but not loos the job-info stored in the
 database)?
Geir Will deleting `rm VolumeXX` from the disk and setting job
 retention to
Geir 99 years do the trick? Or will that just FP everything?
  
 Have you considered setting the Volume Retention for the disk
 volumes to
 something like 60 days?  That will override the longer Job
 Retention and allow
 the disk volumes to be recycled.
  
Geir Yes, I have considered that, but is that the way it work? Does
 Volume
Geir Retention override Job Retention?
  
  Yes (and the File Retention).  The manual describes this in more
 detail.
 Hurray ... this solves the problem (maybe I have to buy glasses? Or drik
 mor coffee?)
Hmm ... now I have a:

Volume Use Duration = 10 min
File Retention = 30 min
Job Retention = 2 h
Volume Retention = 30 min

Just for testing ... I run 4 jobs whit 10 min in between, and get 4
volumes. When the last job is finished the first job is purged from the
list jobs in bconsole. So fare so good, but how can I use this whit my
month-tape setup. If I understood Martin Simmons right it is possible to
restore form a volume where the job retention still is'nt run out (the
volume is on a tape and set to readonly). HOW ... I can't understand how
I can do this ...

  Note: if you change the Volume Retention in the Pool resource, then
 you'll
  need to update the value in the catalog for all the existing volumes
 in that
  Pool.
 THAT I know ... I've done that mistake :(
 
 THANKS 
-- 
Phone Work: +47 69212321 / 2321  Phone Priv: +47 69809853 (o_  
+47 99521685 / 3137   //\
ICQ: 48948625   MSN: [EMAIL PROTECTED]   V_/_ i n u x
Registered Linux User # 171776 (http://counter.li.org)


signature.asc
Description: This is a digitally signed message part


[Bacula-users] Purging files and volumes, but NOT jobs

2005-11-09 Thread Geir Asle Borgen
If I have understod it right will the volume be purged/deleted before
the retention time for files, jobs and volume stored on the specific
volume. And to restore files you need both the volume (where the files
are stored) and the job info (stored in the database, not on the
volume). 

My problem is the backupstrategi we use here. We take incremental backup
to disk every working day, but once a month we take full backup to tape.
So fare, all is good. BUT we have all the 12 month-tapes stored for a
year, and we also have a year-tape who is stored for all future. The
consequence of this is that I have to set job retention to something
like for all times!?!  

Most restores are done on files lost less the a month ago ... but form
time to time I have to go to tape and get older files. But if job
retention is set to never expire all files will be stored on disk as
well for all time ... and I will run out of diskspace.

Is there some things I can do to be able to restore files older then one
month (form tape, but not loos the job-info stored in the database)?
Will deleting `rm VolumeXX` from the disk and setting job retention to
99 years do the trick? Or will that just FP everything?

-- 
Phone Work: +47 69212321 / 2321  Phone Priv: +47 69809853 (o_  
+47 99521685 / 3137   //\
ICQ: 48948625   MSN: [EMAIL PROTECTED]   V_/_ i n u x
Registered Linux User # 171776 (http://counter.li.org)


signature.asc
Description: This is a digitally signed message part


Re: [Bacula-users] Purging files and volumes, but NOT jobs

2005-11-09 Thread Martin Simmons
 On Wed, 09 Nov 2005 11:12:30 +0100, Geir Asle Borgen [EMAIL PROTECTED] 
 said:

  Geir If I have understod it right will the volume be purged/deleted before
  Geir the retention time for files, jobs and volume stored on the specific
  Geir volume. And to restore files you need both the volume (where the files
  Geir are stored) and the job info (stored in the database, not on the
  Geir volume).

  Geir My problem is the backupstrategi we use here. We take incremental backup
  Geir to disk every working day, but once a month we take full backup to tape.
  Geir So fare, all is good. BUT we have all the 12 month-tapes stored for a
  Geir year, and we also have a year-tape who is stored for all future. The
  Geir consequence of this is that I have to set job retention to something
  Geir like for all times!?!

  Geir Most restores are done on files lost less the a month ago ... but form
  Geir time to time I have to go to tape and get older files. But if job
  Geir retention is set to never expire all files will be stored on disk as
  Geir well for all time ... and I will run out of diskspace.

  Geir Is there some things I can do to be able to restore files older then one
  Geir month (form tape, but not loos the job-info stored in the database)?
  Geir Will deleting `rm VolumeXX` from the disk and setting job retention to
  Geir 99 years do the trick? Or will that just FP everything?

Have you considered setting the Volume Retention for the disk volumes to
something like 60 days?  That will override the longer Job Retention and allow
the disk volumes to be recycled.

__Martin


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users