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

2009-12-15 Thread Brian Clarkson
There were still volumes in my pool that were marked recycle=yes.

Removing the recycle flag from all volumes triggered the creation of new
filenames for each server and backup job.

Just changing the recycle flag to "no" in the configuration didn't solve
the problem.  

Thanks for the help!

Brian 




On Thu, 2009-12-10 at 17:38 -0500, John Drescher wrote:
> On Thu, Dec 10, 2009 at 5:09 PM, Brian Clarkson  wrote:
> > On Thu, 2009-12-10 at 16:11 -0500, John Drescher wrote:
> >> On Thu, Dec 10, 2009 at 3:53 PM, Brian Clarkson  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  wrote:
> > On Thu, 2009-12-10 at 16:11 -0500, John Drescher wrote:
> >> On Thu, Dec 10, 2009 at 3:53 PM, Brian Clarkson  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
On Thu, 2009-12-10 at 16:11 -0500, John Drescher wrote:
> On Thu, Dec 10, 2009 at 3:53 PM, Brian Clarkson  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

2009-12-10 Thread Brian Clarkson
On Thu, 2009-12-10 at 11:34 -0500, John Drescher wrote:
> On Thu, Dec 10, 2009 at 10:43 AM, Brian Clarkson  wrote:
> > I've re-read the section on volume retention and volume recycling but
> > I'm still confused.
> >
> > My backup files are being reused even though my director is configured
> > to create new files.  Backups are working on schedule but my secondary,
> > rsync-based backup is failing because the filenames and filesizes
> > haven't changed.
> >
> > I did recently change the value of Recycle back to no.
> >
> > 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 # one year
> >  MaximumVolumeBytes = 512m
> >  Maximum Volume Jobs = 1
> > }
> >
> > `show pools` within the console looks right:
> >
> > Pool: name=Default PoolType=Backup
> >  use_cat=1 use_once=1 cat_files=1
> >  max_vols=0 auto_prune=1 VolRetention=25 days
> >  VolUse=0 secs recycle=0 LabelFormat=${JobName}-${Level}-${NumVols}
> >  CleaningPrefix=*None* LabelType=0
> >  RecyleOldest=0 PurgeOldest=0
> >  MaxVolJobs=1 MaxVolFiles=0 MaxVolBytes=0
> >  MigTime=0 secs MigHiBytes=0 MigLoBytes=0
> >
> > The output of `list volumes` in the console shows the volumes are full
> > or used, not purged.
> >
> > Do I need to manually mark each volume purged so bacula will start
> > creating new files?
> 
> No that would make bacula use the old volumes. Purged is a state of recycling.
> 
> >How can I get bacula to create new files with each
> > backup job?
> >
> 
> 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?  

The catalog is exhibiting the correct file naming behavior:

BackupCatalog.2009-12-10_03.10.22-2917
BackupCatalog.2009-12-09_03.10.15-2913
BackupCatalog.2009-12-08_03.10.08-2909

Etc.

My server backup files are reusing old files.

Last night's run includes files like:

Backup_Server2.2009-08-09_01.05.27-Differential-17715
Backup_Server3.2009-08-09_01.05.24-Differential-17711
Backup_Server3.2009-08-09_01.05.24-Differential-17712

All with filesystem dates of early today.  (2009-12-10)


> 
> However I suspect what you really want is after 25 days you want the
> old volume to be deleted. For that you will need to have an external
> script (that feeds commands to bconsole) fired by a cron job or admin
> job.

I do have a cronjob that deletes old file.  My volume list (in the
console) is huge, though.  I guess I need to prune my catalog.


Thanks 

Brian Clarkson
Lone Star Internet




--
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


[Bacula-users] Create new volume vs. recycle volume

2009-12-10 Thread Brian Clarkson
I've re-read the section on volume retention and volume recycling but
I'm still confused.

My backup files are being reused even though my director is configured
to create new files.  Backups are working on schedule but my secondary,
rsync-based backup is failing because the filenames and filesizes
haven't changed.

I did recently change the value of Recycle back to no.  

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 # one year
  MaximumVolumeBytes = 512m
  Maximum Volume Jobs = 1
}

`show pools` within the console looks right:

Pool: name=Default PoolType=Backup
  use_cat=1 use_once=1 cat_files=1
  max_vols=0 auto_prune=1 VolRetention=25 days 
  VolUse=0 secs recycle=0 LabelFormat=${JobName}-${Level}-${NumVols}
  CleaningPrefix=*None* LabelType=0
  RecyleOldest=0 PurgeOldest=0
  MaxVolJobs=1 MaxVolFiles=0 MaxVolBytes=0
  MigTime=0 secs MigHiBytes=0 MigLoBytes=0

The output of `list volumes` in the console shows the volumes are full
or used, not purged.  

Do I need to manually mark each volume purged so bacula will start
creating new files?  How can I get bacula to create new files with each
backup job?



Thanks!

Brian Clarkson
Lone Star Internet




--
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] question about volume naming

2009-08-10 Thread Brian Clarkson
On Thu, 2009-08-06 at 19:48 -0400, John Drescher wrote:
> On Thu, Aug 6, 2009 at 4:32 PM, Brian Clarkson wrote:
> > Hello again ...
> >
> >
> > I've read and re-read the Basic Volume Management section of the bacula
> > manual today but I can't figure out why my scheduled jobs report one
> > volume name while my configuration indicates a different volume name.

> > Separate volumes per job were being used in previous jobs.  I've
> > apparently changed something but I can't seem to determine *what* has
> > made the difference.  The Pool and Job definitions look OK to me.

> 
> I believe this is normal. The volume is not known until the job has
> started. And the rules like Use volume once only get executed after
> the tape has been used once.

My backups seem to be working as expected.  bconsole is reporting
*unknown* volume for scheduled jobs.  Once the jobs run, they are stored
in volumes according to the expected naming convention.

I guess scheduled jobs aren't altered by configuration changes.


Brian 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] question about volume naming

2009-08-06 Thread Brian Clarkson
Hello again ...


I've read and re-read the Basic Volume Management section of the bacula
manual today but I can't figure out why my scheduled jobs report one
volume name while my configuration indicates a different volume name.

bconsole -> status -> director gives me the following list of jobs


Scheduled Jobs:
Level  Type Pri  Scheduled  Name
Volume
===
Differential   Backup10  07-Aug-09 01:05Backup Nibbler
Backup_Nibbler.2009-08-06_01.05.02-Differential-17635
Differential   Backup10  07-Aug-09 01:05Backup Zapp
Backup_Nibbler.2009-08-06_01.05.02-Differential-17635
Differential   Backup10  07-Aug-09 01:05Backup Hypnotoad
Backup_Nibbler.2009-08-06_01.05.02-Differential-17635

All three scheduled jobs are using the same volume.  My Pool definition,
though, looks like this:

Pool {
  Name = LSIPool
  Label Format = "${JobName}-${Level}-${NumVols}"
  Pool Type = Backup
  Recycle = no  
  AutoPrune = yes 
  Use Volume Once = yes
  Volume Retention = 25 days 
  # Accept Any Volume = yes
  MaximumVolumeBytes = 512m
  Maximum Volume Jobs = 1
}

My Job definitions all look like this:

Job {
  Name = "Backup Leela"
  Type = Backup
  Client = leela-fd
  FileSet = "Full Set Leela"
  Schedule = "WeeklyCycle"
  Storage = BenderStorage
  Messages = Standard
  Pool = LSIPool
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/leela.bsr"
}

 That backup job should use the LSIPool pool.  The LSIPool pool says
volumes should follow a naming convention that uses jobname as part of
the filename.  ( jobname, in this case, would be "Backup Leela" ).


I've tried stopping and starting the director then checking the status
but the job list (and the volume list) remains unchanged.

Separate volumes per job were being used in previous jobs.  I've
apparently changed something but I can't seem to determine *what* has
made the difference.  The Pool and Job definitions look OK to me.


Thanks for any assistance.  I've already put a dent in the desk where my
head keeps hitting it.


Brian 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] empty storage resource used for restore jobs

2009-08-06 Thread Brian Clarkson
On Thu, 2009-08-06 at 10:48 +0100, Martin Simmons wrote:
> >>>>> On Wed, 05 Aug 2009 12:08:55 -0500, Brian Clarkson said:
> > 
> > I've almost completed my upgrades from 1.36.3 to 2.4.1 but I've
> > encountered one last problem.
> 
> I don't know the answer to your question. but 2.4.1 is an old release and is
> not even the latest in the 2.4.x branch.  Can you try 3.0.2?

Unfortunately, I'm stuck with 2.4.1 for now.  It's the most recent
version in gentoo's portage.  I can't get around company policy.  

Brian



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] empty storage resource used for restore jobs

2009-08-05 Thread Brian Clarkson
I've almost completed my upgrades from 1.36.3 to 2.4.1 but I've
encountered one last problem.

Backup jobs appear to run correctly.  Restore jobs do not.  (I can't be
100% sure about proper backup unless I can restore files.)

When using the (command-line) console to restore a file I get the
following error after marking files:

> Storage "" not found, using Storage "BenderStorage" from MediaType
"File".

The job preview looks like this:

Run Restore job
JobName: Restore Leela
Bootstrap:   /var/lib/bacula/colo-dir.restore.1.bsr
Where:   /tmp/bacula-restores
Replace: always
FileSet: Full Set Leela
Backup Client:   leela-fd
Restore Client:  leela-fd
Storage: BenderStorage
When:2009-08-05 12:02:55
Catalog: MyCatalog
Priority:10
OK to run? (yes/mod/no): yes
Job queued. JobId=11150

Everything there looks OK to me.  

The console says the restore job has begun but files aren't actually
restored.  The following message is displayed in the console:

> 05-Aug 12:03 colo-dir JobId 11150: Start Restore Job
Restore_Leela.2009-08-05_12.02.03


I can't see anything wrong with the restore job definition or the
storage definition.  


bacula-dir.conf defines the Job and Storage as follows:

Job {
  Name = "Restore Leela"
  Type = Restore
  Client = leela-fd
  FileSet="Full Set Leela"
  Storage = BenderStorage
  Pool = LSIPool
  Messages = Standard
  Where = /tmp/bacula-restores
}

Storage {
  Name = BenderStorage
  Address = bender.lnstar.com
  SDPort = 9103
  Password = "samplepass"
  Device = LSIBackup
  Media Type = File
}

The device definition from bacula-sd.conf

Device {
  Name = LSIBackup
  Media Type = File
  Archive Device = /home/bacula-data/LSI
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

I'm at a complete loss.  Thanks for any help.



Brian



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] zero-size catalog after upgrade

2009-07-30 Thread Brian Clarkson
I fixed this issue.  Turns out my RunBeforeJob command wrote the
exported SQL to a different location than specified in the Catalog's
fileset.


On Wed, 2009-07-29 at 14:43 -0500, Brian Clarkson wrote:
> On Wed, 2009-07-29 at 14:56 -0400, John Drescher wrote:
> > On Wed, Jul 29, 2009 at 2:54 PM, John Drescher wrote:
> > > On Wed, Jul 29, 2009 at 12:45 PM, Brian Clarkson wrote:
> > >> I did have one more problem with my recent upgrade from 1.36.3 to
> > >> 2.4.1.
> > >>
> > >> I changed the RunBeforeJob and RunAfterJob commands for the
> > >> BackupCatalog job.  When I ran the job this morning (after fixing a
> > >> config error) it ran successfully.  (At least, the console didn't report
> > >> any errors.  The job list from the console indicates success.)
> > >>
> > >> Now my BackupCatalog file is tiny when compared to previous files.  I
> > >> only have one 619kb file whereas the catalog file usually spans 3 or 4
> > >> 512M files.
> > >>
> > >> Is there a config directive I should be examining?
> > >>
> > >
> > > Are you sure your database was not replaced by an empty one on the 
> > > install?
> > >
> > 
> 
> > 
> > Are you sure your database was not replaced by an empty one on the
> > install?
> > 
> 
> 
> > Or that the new bacula version is using the same database type as before?
> > 
> 
> 
> I'm sure the database in use is just an update/ upgrade of the previous
> MySQL database.  
> 
> Brian 
> 
> 
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] zero-size catalog after upgrade

2009-07-29 Thread Brian Clarkson
On Wed, 2009-07-29 at 14:56 -0400, John Drescher wrote:
> On Wed, Jul 29, 2009 at 2:54 PM, John Drescher wrote:
> > On Wed, Jul 29, 2009 at 12:45 PM, Brian Clarkson wrote:
> >> I did have one more problem with my recent upgrade from 1.36.3 to
> >> 2.4.1.
> >>
> >> I changed the RunBeforeJob and RunAfterJob commands for the
> >> BackupCatalog job.  When I ran the job this morning (after fixing a
> >> config error) it ran successfully.  (At least, the console didn't report
> >> any errors.  The job list from the console indicates success.)
> >>
> >> Now my BackupCatalog file is tiny when compared to previous files.  I
> >> only have one 619kb file whereas the catalog file usually spans 3 or 4
> >> 512M files.
> >>
> >> Is there a config directive I should be examining?
> >>
> >
> > Are you sure your database was not replaced by an empty one on the install?
> >
> 

> 
> Are you sure your database was not replaced by an empty one on the
> install?
> 


> Or that the new bacula version is using the same database type as before?
> 


I'm sure the database in use is just an update/ upgrade of the previous
MySQL database.  

Brian 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileStorage problems after upgrade

2009-07-29 Thread Brian Clarkson
On Wed, 2009-07-29 at 14:46 -0400, John Drescher wrote:
> > I just finished upgrading the director on host2 and I still get the same
> > error.  Where should I look now?
> >
> Did you restart the daemons?

Yes, the daemons were restarted.  I restarted them again for good
measure.  Now, I get:


29-Jul 14:33 colo-dir JobId 11079: There are no more Jobs associated
with Volume "Backup_CBMSI.2009-07-13_01.05.54-Differential-3844".
Marking it purged.
29-Jul 14:33 colo-dir JobId 11079: All records pruned from Volume
"Backup_CBMSI.2009-07-13_01.05.54-Differential-3844"; marking it
"Purged"
29-Jul 14:33 colo-dir JobId 11079: Created new Volume
"Backup_CBMSI.2009-07-29_14.33.14-Incremental-3878" in catalog.
29-Jul 14:33 colo-dir JobId 11079: Using Device "FileStorage"
29-Jul 14:33 completebook-fd: Backup_CBMSI.2009-07-29_14.33.14 Fatal
error: job.c:1093 Unknown backup level: incremental
29-Jul 14:33 colo-dir JobId 11079: Fatal error: Socket error on Level
command: ERR=No data available
29-Jul 14:33 2cbmsi-sd JobId 11079: Job Backup_CBMSI.2009-07-29_14.33.14
marked to be canceled.
29-Jul 14:33 colo-dir JobId 11079: Error: Bacula colo-dir 2.4.1
(07Jul08): 29-Jul-2009 14:33:58


Something changed because the error now complains about backup level and
socket connections.

Brian



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileStorage problems after upgrade

2009-07-29 Thread Brian Clarkson
On Wed, 2009-07-29 at 14:16 -0400, John Drescher wrote:
> On Wed, Jul 29, 2009 at 12:39 PM, Brian Clarkson wrote:
> > On Wed, 2009-07-29 at 12:02 -0400, John Drescher wrote:
> >> On Wed, Jul 29, 2009 at 12:00 PM, Brian Clarkson wrote:
> >> > On Wed, 2009-07-29 at 11:47 -0400, John Drescher wrote:
> >> >> On Wed, Jul 29, 2009 at 11:09 AM, Brian Clarkson 
> >> >> wrote:
> >> >> > I upgraded our bacula install yesterday ( 1.36.3 to 2.4.1 ) and most
> >> >> > things are functioning as expected.
> >> >> >
> >> >> > I'm having an issue with one backup job.  I've searched the mailing 
> >> >> > list
> >> >> > archives for a solution but I haven't found anything that points me in
> >> >> > the right direction.  I can connect to the remote machine from the
> >> >> > console but I can neither backup nor restore files.
> >> >> >
> >> >> > The console gives me the following information about the error:
> >
> > [snip]
> >
> >> >>
> >> >> How about the bacula-sd.conf file from host2? That appears to be where
> >> >> the problem exists.
> >> >
> >> >
> >> > I didn't think to include the file from host2 since it hasn't changed at
> >> > all.  That installation is still at v1.36.3.  It's in the upgrade queue.
> >> >
> >> That is probably the problem then. I mean the director is rejecting
> >> the storage on this server.
> >
> > Why would the director reject the storage?  I have clients on the
> > network that are still running 1.36 and still work just fine ...
> >
> There is no guarantee of backward compatibility especially back this far.
> 
> This error says that the director will not use the storage.
> 
> 29-Jul 09:46 colo-dir JobId 11076: Fatal error:
> Storage daemon didn't accept Device "FileStorage" because:
> 3913 Bad use command: use storage=2CBMSIFile media_type=File
> pool_name=2CBMSIPool pool_type=Backup append=1 copy=0 stripe=0
> 

I just finished upgrading the director on host2 and I still get the same
error.  Where should I look now?

Here's bacula-sd.conf on host2


Storage {   
  Name = 2cbmsi-sd
  SDPort = 9103 
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run"
} 

Director {
  Name = colo-dir
  Password = ***
} 

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




--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] zero-size catalog after upgrade

2009-07-29 Thread Brian Clarkson
I did have one more problem with my recent upgrade from 1.36.3 to
2.4.1.  

I changed the RunBeforeJob and RunAfterJob commands for the
BackupCatalog job.  When I ran the job this morning (after fixing a
config error) it ran successfully.  (At least, the console didn't report
any errors.  The job list from the console indicates success.)

Now my BackupCatalog file is tiny when compared to previous files.  I
only have one 619kb file whereas the catalog file usually spans 3 or 4
512M files.

Is there a config directive I should be examining?  



Brian Clarkson  







--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileStorage problems after upgrade

2009-07-29 Thread Brian Clarkson
On Wed, 2009-07-29 at 12:02 -0400, John Drescher wrote:
> On Wed, Jul 29, 2009 at 12:00 PM, Brian Clarkson wrote:
> > On Wed, 2009-07-29 at 11:47 -0400, John Drescher wrote:
> >> On Wed, Jul 29, 2009 at 11:09 AM, Brian Clarkson wrote:
> >> > I upgraded our bacula install yesterday ( 1.36.3 to 2.4.1 ) and most
> >> > things are functioning as expected.
> >> >
> >> > I'm having an issue with one backup job.  I've searched the mailing list
> >> > archives for a solution but I haven't found anything that points me in
> >> > the right direction.  I can connect to the remote machine from the
> >> > console but I can neither backup nor restore files.
> >> >
> >> > The console gives me the following information about the error:

[snip]

> >>
> >> How about the bacula-sd.conf file from host2? That appears to be where
> >> the problem exists.
> >
> >
> > I didn't think to include the file from host2 since it hasn't changed at
> > all.  That installation is still at v1.36.3.  It's in the upgrade queue.
> >
> That is probably the problem then. I mean the director is rejecting
> the storage on this server.

Why would the director reject the storage?  I have clients on the
network that are still running 1.36 and still work just fine ... 


Brian 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileStorage problems after upgrade

2009-07-29 Thread Brian Clarkson
On Wed, 2009-07-29 at 11:47 -0400, John Drescher wrote:
> On Wed, Jul 29, 2009 at 11:09 AM, Brian Clarkson wrote:
> > I upgraded our bacula install yesterday ( 1.36.3 to 2.4.1 ) and most
> > things are functioning as expected.
> >
> > I'm having an issue with one backup job.  I've searched the mailing list
> > archives for a solution but I haven't found anything that points me in
> > the right direction.  I can connect to the remote machine from the
> > console but I can neither backup nor restore files.
> >
> > The console gives me the following information about the error:
> >
> > 29-Jul 09:46 colo-dir JobId 11076: Start Backup JobId 11076,
> > Job=Backup_CBMSI.2009-07-29_09.46.06
> > 29-Jul 09:46 2cbmsi-sd: Backup_CBMSI.2009-07-29_09.46.06 Fatal error:
> > Bad Use Device command: use storage=2CBMSIFile media_type=File
> > pool_name=2CBMSIPool pool_type=Backup append=1 copy=0 stripe=0
> >
> > 29-Jul 09:46 colo-dir JobId 11076: Fatal error:
> > Storage daemon didn't accept Device "FileStorage" because:
> > 3913 Bad use command: use storage=2CBMSIFile media_type=File
> > pool_name=2CBMSIPool pool_type=Backup append=1 copy=0 stripe=0
> >
> > 29-Jul 09:46 colo-dir JobId 11076: Error: Bacula colo-dir 2.4.1
> > (07Jul08): 29-Jul-2009 09:46:22
> >  Build OS:   i686-pc-linux-gnu gentoo
> >  JobId:  11076
> >  Job:Backup_CBMSI.2009-07-29_09.46.06
> >  Backup Level:   Incremental, since=2009-07-28 01:05:39
> >  Client: "cbmsi-fd"
> > i686-redhat-linux-gnu,redhat,Enterprise release
> >  FileSet:"Full Set CBMSI" 2009-04-03 01:05:50
> >  Pool:   "2CBMSIPool" (From Job resource)
> >  Storage:"2CBMSIFile" (From Job resource)
> >  Scheduled time: 29-Jul-2009 09:46:17
> >  Start time: 29-Jul-2009 09:46:22
> >  End time:   29-Jul-2009 09:46:22
> >  Elapsed time:   0 secs
> >  Priority:   10
> >  FD Files Written:   0
> >  SD Files Written:   0
> >  FD Bytes Written:   0 (0 B)
> >  SD Bytes Written:   0 (0 B)
> >  Rate:   0.0 KB/s
> >  Software Compression:   None
> >  VSS:no
> >  Storage Encryption: no
> >  Volume name(s):
> >  Volume Session Id:  187
> >  Volume Session Time:120677
> >  Last Volume Bytes:  0 (0 B)
> >  Non-fatal FD errors:0
> >  SD Errors:  0
> >  FD termination status:
> >  SD termination status:
> >  Termination:*** Backup Error ***
> >
> > Nothing about the Client, Storage, Job, or FileSet has changed for this
> > client.
> >
> > The relevant configuration directive are:
> >
> > Job {
> >  Name = "Backup CBMSI"
> >  Type = Backup
> >  Client = cbmsi-fd
> >  FileSet = "Full Set CBMSI"
> >  Schedule = "WeeklyCycle"
> >  Storage = 2CBMSIFile
> >  Messages = Standard
> >  Pool = 2CBMSIPool
> >  Write Bootstrap = "/usr/local/bacula/var/bacula/working/cbmsi.bsr"
> > }
> >
> > Job {
> >  Name = "Restore CBMSI"
> >  Type = Restore
> >  Client = cbmsi-fd
> >  FileSet="Full Set CBMSI"
> >  Storage = 2CBMSIFile
> >  Pool = 2CBMSIPool
> >  Messages = Standard
> >  Where = /tmp/bacula-restores
> > }
> >
> > Client {
> >   Name = cbmsi-fd
> >   Address = host1
> >   FDPort = 9102
> >   Catalog = MyCatalog
> >   Password = **
> >   File Retention = 21 days
> >   Job Retention = 21 days
> >   AutoPrune = yes
> > }
> >
> > Storage {
> >Name = 2CBMSIFile
> >Address = host2
> >SDPort = 9103
> >Password = **
> >Device = FileStorage
> >Media Type = File
> > }
> >
> >
> > I'm not sure how to continue debugging the problem.  Any help is
> > appreciated.
> >
> >
> 
> How about the bacula-sd.conf file from host2? That appears to be where
> the problem exists.


I didn't think to include the file from host2 since it hasn't changed at
all.  That installation is still at v1.36.3.  It's in the upgrade queue.


Storage {
  Name = 2cbmsi-sd
  SDPort = 9103 
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run"
}

#
# List Directors who are permitted to contact Storag

[Bacula-users] FileStorage problems after upgrade

2009-07-29 Thread Brian Clarkson
I upgraded our bacula install yesterday ( 1.36.3 to 2.4.1 ) and most
things are functioning as expected.  

I'm having an issue with one backup job.  I've searched the mailing list
archives for a solution but I haven't found anything that points me in
the right direction.  I can connect to the remote machine from the
console but I can neither backup nor restore files.

The console gives me the following information about the error:

29-Jul 09:46 colo-dir JobId 11076: Start Backup JobId 11076,
Job=Backup_CBMSI.2009-07-29_09.46.06
29-Jul 09:46 2cbmsi-sd: Backup_CBMSI.2009-07-29_09.46.06 Fatal error:
Bad Use Device command: use storage=2CBMSIFile media_type=File
pool_name=2CBMSIPool pool_type=Backup append=1 copy=0 stripe=0

29-Jul 09:46 colo-dir JobId 11076: Fatal error: 
 Storage daemon didn't accept Device "FileStorage" because:
 3913 Bad use command: use storage=2CBMSIFile media_type=File
pool_name=2CBMSIPool pool_type=Backup append=1 copy=0 stripe=0

29-Jul 09:46 colo-dir JobId 11076: Error: Bacula colo-dir 2.4.1
(07Jul08): 29-Jul-2009 09:46:22
  Build OS:   i686-pc-linux-gnu gentoo 
  JobId:  11076
  Job:Backup_CBMSI.2009-07-29_09.46.06
  Backup Level:   Incremental, since=2009-07-28 01:05:39
  Client: "cbmsi-fd"
i686-redhat-linux-gnu,redhat,Enterprise release
  FileSet:"Full Set CBMSI" 2009-04-03 01:05:50
  Pool:   "2CBMSIPool" (From Job resource)
  Storage:"2CBMSIFile" (From Job resource)
  Scheduled time: 29-Jul-2009 09:46:17
  Start time: 29-Jul-2009 09:46:22
  End time:   29-Jul-2009 09:46:22
  Elapsed time:   0 secs
  Priority:   10
  FD Files Written:   0
  SD Files Written:   0
  FD Bytes Written:   0 (0 B)
  SD Bytes Written:   0 (0 B)
  Rate:   0.0 KB/s
  Software Compression:   None
  VSS:no
  Storage Encryption: no
  Volume name(s): 
  Volume Session Id:  187
  Volume Session Time:120677
  Last Volume Bytes:  0 (0 B)
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  
  SD termination status:  
  Termination:*** Backup Error ***

Nothing about the Client, Storage, Job, or FileSet has changed for this
client.  

The relevant configuration directive are:

Job {
  Name = "Backup CBMSI"
  Type = Backup
  Client = cbmsi-fd
  FileSet = "Full Set CBMSI"
  Schedule = "WeeklyCycle"
  Storage = 2CBMSIFile
  Messages = Standard
  Pool = 2CBMSIPool
  Write Bootstrap = "/usr/local/bacula/var/bacula/working/cbmsi.bsr"
}

Job {
  Name = "Restore CBMSI"
  Type = Restore
  Client = cbmsi-fd
  FileSet="Full Set CBMSI"
  Storage = 2CBMSIFile
  Pool = 2CBMSIPool
  Messages = Standard
  Where = /tmp/bacula-restores
}

Client {
   Name = cbmsi-fd
   Address = host1
   FDPort = 9102
   Catalog = MyCatalog
   Password = **
   File Retention = 21 days
   Job Retention = 21 days   
   AutoPrune = yes
}

Storage {
Name = 2CBMSIFile
Address = host2
SDPort = 9103
Password = **
Device = FileStorage
Media Type = File
}


I'm not sure how to continue debugging the problem.  Any help is
appreciated.



Brian 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] prune files from backup

2009-03-13 Thread Brian Clarkson
Good [localtime]


I didn't get a directory into a server's Exclude section before a full
backup ran.  Now I have a rather large full backup that contains files
that are backed up elsewhere (a large image directory).

Is there any way to delete files from the backup after it has run?  


Thanks!


Brian Clarkson
Lone Star Internet





--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users