Greetings!

     I have a question, regarding how to get bacula to *not* recycle any
volumes, but purge them when they pass a certain age.

     Though I am experimenting with how long to hold jobs and catalogs,
what I want is for bacula to write a filename on my USB external hard
drives (which are holding the backups) and keep that filename/volume for
some time threshold (I'm currently set to 220 days), and then get rid of
that (old) volume/file name, as it constantly writes new ones.

     Also, in my four email messages a week regarding my bacula backup, it
used to, MOST of the time (but not always) write a new volume (file name,
in my case).  But, now, it ALWAYS recycles them.

     Here is an email from yesterday:

<<>>
03-Jul 01:05 barrycon-dir: Start Backup JobId 395, 
Job=barryconWesternDigital.2007-07-03_01.05.01
03-Jul 01:05 barrycon-dir: Recycled volume "Full-2006-6-6-1-5-4"
03-Jul 01:05 barrycon-sd: Recycled volume "Full-2006-6-6-1-5-4" on device 
"WesternDigital" (/media/wd), all previous data lost.
barrycon-fd:      Filesystem change prohibited. Will not descend into /boot
barrycon-fd:      Filesystem change prohibited. Will not descend into /home
barrycon-fd:      Filesystem change prohibited. Will not descend into /misc
barrycon-fd:      Filesystem change prohibited. Will not descend into /usr
barrycon-fd:      Filesystem change prohibited. Will not descend into /sys
barrycon-fd:      Filesystem change prohibited. Will not descend into /dev
barrycon-fd:      Filesystem change prohibited. Will not descend into /vmware
barrycon-fd:      Filesystem change prohibited. Will not descend into 
/multimedia
barrycon-fd:      Filesystem change prohibited. Will not descend into /net
03-Jul 14:16 barrycon-dir: Volume used once. Marking Volume 
"Full-2006-6-6-1-5-4" as Used.
03-Jul 14:16 barrycon-dir: Bacula 1.38.5 (18Jan06): 03-Jul-2007 14:16:12
  JobId:                  395
  Job:                    barryconWesternDigital.2007-07-03_01.05.01
  Backup Level:           Full
  Client:                 "barrycon-fd" i686-pc-linux-gnu,redhat,(Stentz)
  FileSet:                "FullSet" 2006-01-17 01:05:03
  Pool:                   "Full-Pool"
  Storage:                "WesternDigitalSR"
  Scheduled time:         03-Jul-2007 01:05:01
  Start time:             03-Jul-2007 01:05:03
  End time:               03-Jul-2007 14:16:12
  Priority:               10
  FD Files Written:       560,927
  SD Files Written:       560,927
  FD Bytes Written:       18,143,610,754
  SD Bytes Written:       18,224,865,245
  Rate:                   382.2 KB/s
  Software Compression:   42.9 %
  Volume name(s):         Full-2006-6-6-1-5-4
  Volume Session Id:      13
  Volume Session Time:    1181437469
  Last Volume Bytes:      18,258,782,224
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

03-Jul 14:16 barrycon-dir: Begin pruning Jobs.
03-Jul 14:16 barrycon-dir: Pruned 2 Jobs for client barrycon-fd from catalog.
03-Jul 14:16 barrycon-dir: Begin pruning Files.
03-Jul 14:16 barrycon-dir: No Files found to prune.
03-Jul 14:16 barrycon-dir: End auto prune.
<<>>

     Notice on lines two and three it has "Recycled volume".

     While this is fine, in that that filename has only the contents of
the current backup, it has created a little bit of confusion for me, when
I look back at a directory of the disk.  (The older file by name may have
been used in the last week.)

     Here is a directory of my Western Digital USB disk:

<<>>
total 263455596
drwxr-xr-x  4 root root        4096 Jun 10  2006 bacula
drwxr-xr-x  2 root root        4096 Jan 22  2006 BACULA_CONF_FILES
-rw-r-----  1 root root        3003 Jul  3 14:16 barrycon.bsr
-rw-r-----  1 root root         367 Jul  3 15:06 barryconCatalog.bsr
-rw-r-----  1 root root   698320780 Oct 10  2006 Diff-2006-10-10-1-5-5
-rw-r-----  1 root root   715218641 Oct 10  2006 Diff-2006-10-10-3-15-44
-rw-r-----  1 root root   719619574 Oct 17  2006 Diff-2006-10-17-1-5-4
-rw-r-----  1 root root   716120263 Oct 17  2006 Diff-2006-10-17-3-15-41
-rw-r-----  1 root root   813206829 Oct 24  2006 Diff-2006-10-24-1-5-4
-rw-r-----  1 root root   717610126 Oct 24  2006 Diff-2006-10-24-3-15-40
-rw-r-----  1 root root  1183960473 Oct 31  2006 Diff-2006-10-31-1-5-5
-rw-r-----  1 root root   719297071 Oct 31  2006 Diff-2006-10-31-3-15-40
-rw-r-----  1 root root  3834977288 Jan 10  2006 Diff-2006-1-10-1-5-5
-rw-r-----  1 root root   157640978 Jan 10  2006 Diff-2006-1-10-2-55-46
-rw-r-----  1 root root  2125997113 Nov 14  2006 Diff-2006-11-14-1-5-4
-rw-r-----  1 root root   840656962 Nov 14  2006 Diff-2006-11-14-3-16-37
-rw-r-----  1 root root  2217087110 Nov 21  2006 Diff-2006-11-21-1-5-4
-rw-r-----  1 root root   842532756 Nov 21  2006 Diff-2006-11-21-3-16-38
-rw-r-----  1 root root  2294669177 Nov 28  2006 Diff-2006-11-28-1-5-5
-rw-r-----  1 root root   844661022 Nov 28  2006 Diff-2006-11-28-3-16-36
-rw-r-----  1 root root   553951480 Dec 12  2006 Diff-2006-12-12-1-5-7
-rw-r-----  1 root root   966630552 Dec 12  2006 Diff-2006-12-12-3-17-33
-rw-r-----  1 root root   639680710 Dec 19  2006 Diff-2006-12-19-1-5-5
-rw-r-----  1 root root   967603418 Dec 19  2006 Diff-2006-12-19-3-17-31
-rw-r-----  1 root root  2299257002 Dec 26  2006 Diff-2006-12-26-1-5-5
-rw-r-----  1 root root   969456648 Dec 26  2006 Diff-2006-12-26-3-17-39
-rw-r-----  1 root root   445209794 Aug  8  2006 Diff-2006-1-31-1-5-6
-rw-r-----  1 root root   583990290 Aug  8  2006 Diff-2006-1-31-3-12-12
-rw-r-----  1 root root   582888841 Aug 15  2006 Diff-2006-2-14-1-5-5
-rw-r-----  1 root root   617699395 Aug 22  2006 Diff-2006-2-14-3-12-58
-rw-r-----  1 root root   582244457 Aug 22  2006 Diff-2006-2-21-1-5-6
-rw-r-----  1 root root   703728445 Aug 29  2006 Diff-2006-2-21-3-12-59
-rw-r-----  1 root root   579778975 Aug 29  2006 Diff-2006-2-28-1-5-5
-rw-r-----  1 root root   415049655 Sep 12  2006 Diff-2006-2-28-3-13-1
-rw-r-----  1 root root  2573153345 Mar 20 02:34 Diff-2006-3-14-1-5-5
-rw-r-----  1 root root  1351210541 Mar 20 03:41 Diff-2006-3-14-3-13-48
-rw-r-----  1 root root   786229696 Apr 10 01:38 Diff-2006-3-25-17-48-19
-rw-r-----  1 root root  1479155938 Apr 10 03:44 Diff-2006-3-28-3-13-52
-rw-r-----  1 root root   940991064 Apr 17 01:41 Diff-2006-4-11-1-5-4
-rw-r-----  1 root root  1479780912 Apr 17 03:44 Diff-2006-4-11-3-14-44
-rw-r-----  1 root root  1016067556 Apr 24 01:43 Diff-2006-4-18-1-5-3
-rw-r-----  1 root root  1480664042 Apr 24 03:44 Diff-2006-4-18-3-14-42
-rw-r-----  1 root root   816908484 May  8 01:40 Diff-2006-4-25-1-5-4
-rw-r-----  1 root root  1608362868 May  8 03:47 Diff-2006-4-25-3-14-39
-rw-r-----  1 root root  2660127715 May 22 02:38 Diff-2006-5-16-1-5-4
-rw-r-----  1 root root  1612298627 May 22 03:47 Diff-2006-5-16-3-14-42
-rw-r-----  1 root root  2731025591 May 29 02:39 Diff-2006-5-23-1-5-4
-rw-r-----  1 root root  1614671731 May 29 03:47 Diff-2006-5-23-3-14-40
-rw-r-----  1 root root  2684185920 Jun 12 02:39 Diff-2006-5-30-1-5-4
-rw-r-----  1 root root  1744812146 Jun 12 03:51 Diff-2006-5-30-3-14-35
-rw-r-----  1 root root  2605324125 May 15 02:37 Diff-2006-5-9-1-5-4
-rw-r-----  1 root root  1610247369 May 15 03:47 Diff-2006-5-9-3-14-43
-rw-r-----  1 root root  2931680853 Jun 19 02:46 Diff-2006-6-13-1-5-4
-rw-r-----  1 root root  1747091053 Jun 19 03:51 Diff-2006-6-13-3-15-21
-rw-r-----  1 root root  1583218413 Jun 20  2006 Diff-2006-6-20-1-5-4
-rw-r-----  1 root root   668344234 Jun 20  2006 Diff-2006-6-20-3-15-19
-rw-r-----  1 root root  1705231207 Jun 27  2006 Diff-2006-6-27-1-5-4
-rw-r-----  1 root root   566010304 Jun 27  2006 Diff-2006-6-27-3-14-31
-rw-r-----  1 root root   415531369 Jul 11  2006 Diff-2006-7-11-1-5-5
-rw-r-----  1 root root   573152057 Jul 11  2006 Diff-2006-7-11-3-14-34
-rw-r-----  1 root root   486714252 Jul 18  2006 Diff-2006-7-18-1-5-5
-rw-r-----  1 root root   574275307 Jul 18  2006 Diff-2006-7-18-3-14-33
-rw-r-----  1 root root   643785296 Jul 25  2006 Diff-2006-7-25-1-5-6
-rw-r-----  1 root root   575734059 Jul 25  2006 Diff-2006-7-25-3-14-35
-rw-r-----  1 root root   552126157 Aug 15  2006 Diff-2006-8-15-1-5-6
-rw-r-----  1 root root   591126689 Sep 12  2006 Diff-2006-9-12-3-14-44
-rw-r-----  1 root root  2856680049 Sep 19  2006 Diff-2006-9-19-1-5-4
-rw-r-----  1 root root   592656509 Sep 19  2006 Diff-2006-9-19-3-14-41
-rw-r-----  1 root root  3602344890 Sep 26  2006 Diff-2006-9-26-1-5-4
-rw-r-----  1 root root   594500457 Sep 26  2006 Diff-2006-9-26-3-14-45
-rw-r-----  1 root root  2308975556 Jan 16 02:25 Diff-2007-1-16-1-5-5
-rw-r-----  1 root root  1095129244 Jan 16 03:34 Diff-2007-1-16-3-18-45
-rw-r-----  1 root root  2572567321 Jan 23 02:36 Diff-2007-1-23-1-5-5
-rw-r-----  1 root root  1095917351 Jan 23 03:35 Diff-2007-1-23-3-18-33
-rw-r-----  1 root root  2647133908 Jan 30 02:38 Diff-2007-1-30-1-5-5
-rw-r-----  1 root root  1096822758 Jan 30 03:34 Diff-2007-1-30-3-18-35
-rw-r-----  1 root root  2182782750 Jan  9 02:23 Diff-2007-1-9-1-5-7
-rw-r-----  1 root root  1094454981 Jan  9 03:34 Diff-2007-1-9-3-18-35
-rw-r-----  1 root root   661556631 Feb 13 01:33 Diff-2007-2-13-1-5-5
-rw-r-----  1 root root  1221936107 Feb 13 03:38 Diff-2007-2-13-3-19-37
-rw-r-----  1 root root  2301527437 Feb 20 02:26 Diff-2007-2-20-1-5-5
-rw-r-----  1 root root  1222668785 Feb 20 03:38 Diff-2007-2-20-3-19-35
-rw-r-----  1 root root  2345837341 Feb 27 02:27 Diff-2007-2-27-1-5-5
-rw-r-----  1 root root  1223654582 Feb 27 03:38 Diff-2007-2-27-3-19-34
-rw-r-----  1 root root  2461913473 Mar 13 02:31 Diff-2007-3-13-1-5-5
-rw-r-----  1 root root  1349952574 Mar 13 03:42 Diff-2007-3-13-3-20-30
-rw-r-----  1 root root  2642444574 Mar 27 02:35 Diff-2007-3-27-1-5-5
-rw-r-----  1 root root  1352428824 Mar 27 03:41 Diff-2007-3-27-3-20-32
-rw-r-----  1 root root   838974480 Nov  7  2006 Full-2006-11-7-11-49-58
-rw-r-----  1 root root 14834861049 Nov  7  2006 Full-2006-11-7-1-5-4
-rw-r-----  1 root root 17460996813 May  1 12:53 Full-2006-4-4-1-5-4
-rw-r-----  1 root root  1544515563 May  1 13:36 Full-2006-4-4-7-54-48
-rw-r-----  1 root root 17727773001 Jun  5 10:13 Full-2006-5-2-1-5-4
-rw-r-----  1 root root  1743504610 Jun  5 10:54 Full-2006-5-2-8-27-21
-rw-r-----  1 root root 18258782447 Jul  3 14:16 Full-2006-6-6-1-5-4
-rw-r-----  1 root root  1817997375 Jul  3 15:06 Full-2006-6-6-6-50-30
-rw-r-----  1 root root 10879910523 Jul  4  2006 Full-2006-7-4-1-5-4
-rw-r-----  1 root root   677135893 Jul  4  2006 Full-2006-7-4-6-59-55
-rw-r-----  1 root root  1032469019 Jan  2  2007 Full-2007-1-2-11-55-23
-rw-r-----  1 root root 15500381113 Jan  2  2007 Full-2007-1-2-1-5-4
-rw-r-----  1 root root  1221413820 Feb  6 12:18 Full-2007-2-6-11-59-1
-rw-r-----  1 root root 16146215179 Feb  6 11:47 Full-2007-2-6-1-5-5
-rw-r-----  1 root root  1349150555 Mar  6 12:34 Full-2007-3-6-12-11-55
-rw-r-----  1 root root 16655134014 Mar  6 12:00 Full-2007-3-6-1-5-4
-rw-r-----  1 root root  1416102488 Apr  3 12:46 Full-2007-4-3-12-22-45
-rw-r-----  1 root root 17127132574 Apr  3 12:05 Full-2007-4-3-1-5-4
drwx------  2 root root       16384 Nov 12  2005 lost+found
<<>>

     As you can tell by the fact that the output of the date is just
the month, day and year if it hasn't been modified in the last six months,
versus the Month and day, with a time if it has, you can see the files
that have been accessed in the last six months, and this doesn't
necessarily agree with the date which is in the filename.

     For example, the first Full entry is Full-2006-11-7-1-5-4 and if you
look at the date, it is Nov 7 and 1:05 happens to be the beginning of my
backup time.  However, the next Full backup name is Full-2006-4-4-1-5-4,
which was originally written on April 4, 2006, at 1:05 and 4 seconds, but
if you look at the date, it was last modified on  May 1 (2007) at 12:53.

     I'll mention something.  I originally had one year retention, and my
USB disks were getting too close to too full.  So, I manually went in and
deleted the older files (by filename) and changed my retention to 220
days.  (I'm still experimenting with this retention time, I'll probably
lower it a bit more.)

     So, it is possible that some of what is in this directory is a result
of that manual intervention, and not a result of any kind of automatic
pruning, etc., that bacula may be doing.

     Here is an excerpt from my pools:

<<>>
Pool {
  Name = Default
  Pool Type = Backup
  Recycle = no               
  AutoPrune = yes            
  Volume Retention = 220 days
  Accept Any Volume = yes    
  Label Format = "Test-${Year}-${Month}-${Day}-${Hour}-${Minute}-${Second}"
}

Pool {
  Name = Full-Pool
  Pool Type = Backup
  Recycle = no              
  AutoPrune = yes           
  Volume Retention = 220 days
  Accept Any Volume = yes   
  UseVolumeOnce = yes
  Label Format = "Full-${Year}-${Month}-${Day}-${Hour}-${Minute}-${Second}"
}

Pool {
  Name = Diff-Pool
  Pool Type = Backup
  Recycle = no             
  AutoPrune = yes         
  Volume Retention = 220 days
  Accept Any Volume = yes   
  UseVolumeOnce = yes
  Label Format = "Diff-${Year}-${Month}-${Day}-${Hour}-${Minute}-${Second}"
}
<<>>

     I have Recycle set to "no" in every case.  I see other Recycle
settings in the manual, but I'm not sure I should use them.  And, 220 days
is the retention period.

     Again, my intention is that the filename contains the date and time
of the full or differential backup, and I could really go by just that if
I do desire to manually delete any filenames in the USB hard disks.

     (I have two USB hard drives, a Simpletech [which does a full backup
the first Saturday of every month, and a differential thereafter] and a
Western Digital [which does a full backup the first Tuesday of every
month, and a differential one thereafter].)

     What am I missing?

     Thank you!  I will gladly post any information which you want which
isn't posted here.  I was trying to find the compromise between providing
enough information to solve my current problem/question, but yet not
overload you!  :-)

     Barry

-- 
Barry L. Bond                      | http://home.cfl.rr.com/os9barry/
Software Engineer, ITT Corporation | (My personal home web page, last
                                   | updated February 17, 2005)
                                   |
[EMAIL PROTECTED] <- personal       |  Re-Vita Products:
[EMAIL PROTECTED] <- Work ONLY    |  http://www.re-vita.net/barrybond
                                   |  Re-Vita Distributor Information
Home office:  407-382-2815         |  http://www.re-vita.net/barrybond-2
Work:         321-494-5627         |  Toll free order:  1-888-820-5531

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to