Re: [Bacula-users] Create new volume vs. recycle volume (with config)

2009-12-11 Thread Martin Simmons
 On Thu, 10 Dec 2009 17:09:59 -0600, Brian Clarkson said:
 
 Is there a way to paginate the response from these list commands?  I
 have 37k entries in this pool ... 

Not within Bacula, but you can use the @output command in bconsole:

@output /tmp/out.txt
list media pool=Default
@output

and then open /tmp/out.txt in a text editor.

You can also run bconsole in a GNU Emacs shell (as long as bconsole is built
without conio).

__Martin


 
 
  
 
 
 On Thu, 2009-12-10 at 17:38 -0500, John Drescher wrote:
  On Thu, Dec 10, 2009 at 5:09 PM, Brian Clarkson bri...@lnstar.com wrote:
   On Thu, 2009-12-10 at 16:11 -0500, John Drescher wrote:
   On Thu, Dec 10, 2009 at 3:53 PM, Brian Clarkson bri...@lnstar.com 
   wrote:
On Thu, 2009-12-10 at 15:06 -0500, John Drescher wrote:
 Make the volume retention much longer. And then apply that to all 
 of
 your volumes.

 Wouldn't the volume retention period need to be shorter?

   
Retention period is how long to keep the volume before it can be 
reused.
   
So if I don't want to reuse volumes I should set the retention period 
to
zero?
   
  
   Definitely not. I know telling bacula to keep your backup data for 0
   seconds is not what you want. Set this to the amount of time you want
   to keep your data after the backup is finished.
  
Reusing the files (a volume is just a collection of 512m files per my
configuration) is what I want to stop.
   
  
   I got you there. As you mentioned you need to turn off automatic
   volume recycling. Please post your configs. Have you had bacula reload
   the config file after you have changed it?
  
   I restarted the bacula director after making the changes.  Subsequent
   backup jobs still re-used files.
  
   From bacula-dir.conf
  
   Pool {
Name = Default
Label Format = ${JobName}-${Level}-${NumVols}
Pool Type = Backup
Recycle = no
AutoPrune = yes # Prune expired volumes
Use Volume Once = yes
Volume Retention = 25 days
MaximumVolumeBytes = 512m
Maximum Volume Jobs = 1
   }
  
   Client {
 Name = client-fd
 Address = server.com
 FDPort = 9102
 Catalog = MyCatalog
 Password = ***
 File Retention = 21 days
 Job Retention = 21 days
 AutoPrune = yes
   }
  
   Job {
Name = Backup Server
Type = Backup
Client = server-fd
FileSet = Full Set
Schedule = WeeklyCycle
Storage = Storage
Messages = Standard
Pool = Default
Write Bootstrap = /usr/local/bacula/var/bacula/working/server.bsr
   }
  
   Storage {
Name = Storage
Address = storage.server.com
SDPort = 9103
Password = ***
Device = StorageServer
Media Type = File
   }
  
   From bacula-sd.conf
  
   Device {
Name = StorageServer
Media Type = File
Archive Device = /home/bacula-data/
LabelMedia = yes;   # lets Bacula label unlabeled
   media
Random Access = Yes;
AutomaticMount = yes;   # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
   }
  
  
  I think I see why this is happening.
  
  Do the following
  list media pool=Default
  
  and see if Recycle=1 is set in any of the volumes.
  
  if so
  
  update
  
  and then select Pool from resource
  
  and follow the prompts.
  
  John
 
 
 
 --
 Return on Information:
 Google Enterprise Search pays you back
 Get the facts.
 http://p.sf.net/sfu/google-dev2dev
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Create new volume vs. recycle volume (with config)

2009-12-10 Thread Brian Clarkson
On Thu, 2009-12-10 at 16:11 -0500, John Drescher wrote:
 On Thu, Dec 10, 2009 at 3:53 PM, Brian Clarkson bri...@lnstar.com wrote:
  On Thu, 2009-12-10 at 15:06 -0500, John Drescher wrote:
   Make the volume retention much longer. And then apply that to all of
   your volumes.
  
   Wouldn't the volume retention period need to be shorter?
  
 
  Retention period is how long to keep the volume before it can be reused.
 
  So if I don't want to reuse volumes I should set the retention period to
  zero?
 
 
 Definitely not. I know telling bacula to keep your backup data for 0
 seconds is not what you want. Set this to the amount of time you want
 to keep your data after the backup is finished.
 
  Reusing the files (a volume is just a collection of 512m files per my
  configuration) is what I want to stop.
 
 
 I got you there. As you mentioned you need to turn off automatic
 volume recycling. Please post your configs. Have you had bacula reload
 the config file after you have changed it?

I restarted the bacula director after making the changes.  Subsequent
backup jobs still re-used files.

From bacula-dir.conf

Pool {
  Name = Default
  Label Format = ${JobName}-${Level}-${NumVols}
  Pool Type = Backup
  Recycle = no
  AutoPrune = yes # Prune expired volumes
  Use Volume Once = yes
  Volume Retention = 25 days 
  MaximumVolumeBytes = 512m
  Maximum Volume Jobs = 1
}

Client {
   Name = client-fd
   Address = server.com
   FDPort = 9102
   Catalog = MyCatalog
   Password = ***
   File Retention = 21 days
   Job Retention = 21 days
   AutoPrune = yes
}

Job {
  Name = Backup Server
  Type = Backup
  Client = server-fd
  FileSet = Full Set
  Schedule = WeeklyCycle
  Storage = Storage
  Messages = Standard
  Pool = Default
  Write Bootstrap = /usr/local/bacula/var/bacula/working/server.bsr
}

Storage {
  Name = Storage
  Address = storage.server.com
  SDPort = 9103
  Password = ***
  Device = StorageServer
  Media Type = File
}

From bacula-sd.conf

Device {
  Name = StorageServer
  Media Type = File
  Archive Device = /home/bacula-data/
  LabelMedia = yes;   # lets Bacula label unlabeled
media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}



--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Create new volume vs. recycle volume (with config)

2009-12-10 Thread John Drescher
On Thu, Dec 10, 2009 at 5:09 PM, Brian Clarkson bri...@lnstar.com wrote:
 On Thu, 2009-12-10 at 16:11 -0500, John Drescher wrote:
 On Thu, Dec 10, 2009 at 3:53 PM, Brian Clarkson bri...@lnstar.com wrote:
  On Thu, 2009-12-10 at 15:06 -0500, John Drescher wrote:
   Make the volume retention much longer. And then apply that to all of
   your volumes.
  
   Wouldn't the volume retention period need to be shorter?
  
 
  Retention period is how long to keep the volume before it can be reused.
 
  So if I don't want to reuse volumes I should set the retention period to
  zero?
 

 Definitely not. I know telling bacula to keep your backup data for 0
 seconds is not what you want. Set this to the amount of time you want
 to keep your data after the backup is finished.

  Reusing the files (a volume is just a collection of 512m files per my
  configuration) is what I want to stop.
 

 I got you there. As you mentioned you need to turn off automatic
 volume recycling. Please post your configs. Have you had bacula reload
 the config file after you have changed it?

 I restarted the bacula director after making the changes.  Subsequent
 backup jobs still re-used files.

 From bacula-dir.conf

 Pool {
  Name = Default
  Label Format = ${JobName}-${Level}-${NumVols}
  Pool Type = Backup
  Recycle = no
  AutoPrune = yes                     # Prune expired volumes
  Use Volume Once = yes
  Volume Retention = 25 days
  MaximumVolumeBytes = 512m
  Maximum Volume Jobs = 1
 }

 Client {
   Name = client-fd
   Address = server.com
   FDPort = 9102
   Catalog = MyCatalog
   Password = ***
   File Retention = 21 days
   Job Retention = 21 days
   AutoPrune = yes
 }

 Job {
  Name = Backup Server
  Type = Backup
  Client = server-fd
  FileSet = Full Set
  Schedule = WeeklyCycle
  Storage = Storage
  Messages = Standard
  Pool = Default
  Write Bootstrap = /usr/local/bacula/var/bacula/working/server.bsr
 }

 Storage {
  Name = Storage
  Address = storage.server.com
  SDPort = 9103
  Password = ***
  Device = StorageServer
  Media Type = File
 }

 From bacula-sd.conf

 Device {
  Name = StorageServer
  Media Type = File
  Archive Device = /home/bacula-data/
  LabelMedia = yes;                   # lets Bacula label unlabeled
 media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
 }


I think I see why this is happening.

Do the following
list media pool=Default

and see if Recycle=1 is set in any of the volumes.

if so

update

and then select Pool from resource

and follow the prompts.

John

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Create new volume vs. recycle volume (with config)

2009-12-10 Thread Brian Clarkson
Is there a way to paginate the response from these list commands?  I
have 37k entries in this pool ... 


 


On Thu, 2009-12-10 at 17:38 -0500, John Drescher wrote:
 On Thu, Dec 10, 2009 at 5:09 PM, Brian Clarkson bri...@lnstar.com wrote:
  On Thu, 2009-12-10 at 16:11 -0500, John Drescher wrote:
  On Thu, Dec 10, 2009 at 3:53 PM, Brian Clarkson bri...@lnstar.com wrote:
   On Thu, 2009-12-10 at 15:06 -0500, John Drescher wrote:
Make the volume retention much longer. And then apply that to all of
your volumes.
   
Wouldn't the volume retention period need to be shorter?
   
  
   Retention period is how long to keep the volume before it can be reused.
  
   So if I don't want to reuse volumes I should set the retention period to
   zero?
  
 
  Definitely not. I know telling bacula to keep your backup data for 0
  seconds is not what you want. Set this to the amount of time you want
  to keep your data after the backup is finished.
 
   Reusing the files (a volume is just a collection of 512m files per my
   configuration) is what I want to stop.
  
 
  I got you there. As you mentioned you need to turn off automatic
  volume recycling. Please post your configs. Have you had bacula reload
  the config file after you have changed it?
 
  I restarted the bacula director after making the changes.  Subsequent
  backup jobs still re-used files.
 
  From bacula-dir.conf
 
  Pool {
   Name = Default
   Label Format = ${JobName}-${Level}-${NumVols}
   Pool Type = Backup
   Recycle = no
   AutoPrune = yes # Prune expired volumes
   Use Volume Once = yes
   Volume Retention = 25 days
   MaximumVolumeBytes = 512m
   Maximum Volume Jobs = 1
  }
 
  Client {
Name = client-fd
Address = server.com
FDPort = 9102
Catalog = MyCatalog
Password = ***
File Retention = 21 days
Job Retention = 21 days
AutoPrune = yes
  }
 
  Job {
   Name = Backup Server
   Type = Backup
   Client = server-fd
   FileSet = Full Set
   Schedule = WeeklyCycle
   Storage = Storage
   Messages = Standard
   Pool = Default
   Write Bootstrap = /usr/local/bacula/var/bacula/working/server.bsr
  }
 
  Storage {
   Name = Storage
   Address = storage.server.com
   SDPort = 9103
   Password = ***
   Device = StorageServer
   Media Type = File
  }
 
  From bacula-sd.conf
 
  Device {
   Name = StorageServer
   Media Type = File
   Archive Device = /home/bacula-data/
   LabelMedia = yes;   # lets Bacula label unlabeled
  media
   Random Access = Yes;
   AutomaticMount = yes;   # when device opened, read it
   RemovableMedia = no;
   AlwaysOpen = no;
  }
 
 
 I think I see why this is happening.
 
 Do the following
 list media pool=Default
 
 and see if Recycle=1 is set in any of the volumes.
 
 if so
 
 update
 
 and then select Pool from resource
 
 and follow the prompts.
 
 John



--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users