Re: [Bacula-users] How to setup Pools/Volumes?

2009-11-15 Thread Bundschuh, Philipp
Could anybody please post a sample config-file?

-Ursprüngliche Nachricht-
Von: terryc [mailto:ter...@woa.com.au] 
Gesendet: Sonntag, 15. November 2009 08:53
An: bacula-users@lists.sourceforge.net
Betreff: Re: [Bacula-users] How to setup Pools/Volumes?

Bundschuh, Philipp wrote:

 I want to do a full backup once a week and a differential backup the
 other 6 days. On the 8th day, another (=second) full backup and so on...
 
 My problem is, that I have only 100GB Backup Space (mounted via NFS), so
 that I have to overwrite the first full backup file. Every two weeks,
 the backups should be overwritten.
 
 How do I have to configure my pools/volumes?

Looks like four pools; FB1, FB2, Inc1   Inc2 
Overwriting depends on retention setting.
Create a new volume each time you do it.

If space is a problem (and run time/size isn't), bumping those 
Incrementals up to Differentials means that you only need to keep the 
latest and probably one or two others for safety.

Caveat, I work with tapes.


-- 
Terry Collins {:-)}
Bicycles, Appropriate Technology, Natural Environment, Welding

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


[Bacula-users] question about multiple file pools

2009-11-15 Thread Jerome Alet
Hi,

We have an old bacula setup with a single tape drive as part of an
autochanger, which holds three different pools for incremental,
differential and full backups. On restore, the correct tape is correctly
extracted from the database then mounted from the correct pool on our
single tape drive.

I'd like to replicate such functionnality on hard disks and a newer
release of bacula (2.4.4-1 under Debian Lenny, AMD64 architecture,
PostgreSQL backend).

During backups, all my pools and volumes are used as needed.

But during restore, what happens is that only volumes configured as
being part of the pool defined for the RestoreFiles job are
automatically mounted, and bacula waits for us to manually mount the
other volumes, which don't seem to be possible since they are file
volumes (i.e. always 'mounted')

Here's the message I've got in the logs :

myclient-dir JobId 29: Start Restore Job RestoreFiles.2009-11-16_10.45.10.03
myclient-dir JobId 29: Using Device FileStorageFull
myclient-sd JobId 29: Ready to read from volume full0007 on device 
FileStorageFull (/backups/full/).
myclient-sd JobId 29: Forward spacing Volume full0007 to file:block 0:202.
myclient-sd JobId 29: End of Volume at file 0 on device FileStorageFull 
(/backups/full/), Volume full0007
myclient-sd JobId 29: Warning: acquire.c:221 Read open device
FileStorageFull (/backups/full/) Volume differential0009 failed:
 ERR=dev.c:490 Could not open: /backups/full/differential0009, ERR=No
 such file or directory

myclient-sd JobId 29: Please mount Volume differential0009 for:
Job:  RestoreFiles.2009-11-16_10.45.10.03
Storage:  FileStorageFull (/backups/full/)
Pool: FullPool
Media type:   File

As you can see bacula searches for volume differential0009 in
/backups/full instead of in /backups/differential, but my configuration
is as follows :

--- extracted from bacula-sd.conf ---
Device {
  Name = FileStorageFull
  Media Type = File
  Archive Device = /backups/full/
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = FileStorageDifferential
  Media Type = File
  Archive Device = /backups/differential/
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = FileStorageIncremental
  Media Type = File
  Archive Device = /backups/incremental/
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}
--- end of bacula-sd.conf ---

--- extracted from bacula-dir.conf ---
Storage {
  Name = FileFull
  Address = myclient.example.org
  SDPort = 9103
  Password = yyy
  Device = FileStorageFull
  Media Type = File
}

Storage {
  Name = FileDifferential
  Address = myclient.example.org
  SDPort = 9103
  Password = yyy
  Device = FileStorageDifferential
  Media Type = File
}

Storage {
  Name = FileIncremental
  Address = myclient.example.org
  SDPort = 9103
  Password = yyy
  Device = FileStorageIncremental
  Media Type = File
}

Pool {
  Name = FullPool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 70 days
  Maximum Volume Bytes = 33554432
  LabelFormat = full
  Storage = FileFull
  Catalog Files = yes
}

Pool {
  Name = DifferentialPool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 60 days
  Maximum Volume Bytes = 33554432
  LabelFormat = differential
  Storage = FileDifferential
  Catalog Files = yes
}

Pool {
  Name = IncrementalPool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 16 days
  Maximum Volume Bytes = 33554432
  LabelFormat = incremental
  Storage = FileIncremental
  Catalog Files = yes
}

Job {
  Name = RestoreFiles
  Type = Restore
  Client = MyClient-fd
  Messages = Standard
  Where = /backups/restore
  FileSet=FullUnixSet
  Pool = FullPool
}

Client {
  Name = MyClient-fd
  Address = myclient.example.org
  FDPort = 9102
  Catalog = MyCatalog
  Password = xxx
  File Retention = 45 days
  Job Retention = 60 days
  AutoPrune = yes
}
--- end of bacula-dir.conf ---

A solution would be for the RestoreFiles job to not have to specify
the pool, but this doesn't seem to be possible. Any reason for this ?

Anything wrong in my configuration ?

How to solve this big problem ?

Another small question :

As you can see above, I want to have very small volumes, but LOTS of
them. When labelling them automatically, bacula only uses 4 digits, what
will happen when it will reach  ?

Thanks in advance for your help.

--
Jérôme Alet - jerome.a...@univ-nc.nc - Centre de Ressources Informatiques
  Université de la Nouvelle-Calédonie - BPR4 - 98851 NOUMEA CEDEX
   Tél : +687 266754  Fax : +687 254829

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration 

[Bacula-users] after building bat, location of binary varies

2009-11-15 Thread Dan Langille
Folks,

I am finding that the location of the executable binary varies from one 
system to another.  I am trying to find out why.  The answer will help 
to improve the build and install process.

Sometimes the binary is at:

   src/qt-console/bat

If not there, it is at:

   src/qt-console/.libs/bat

Within a given system, the location is always consistent.  It is one of 
the above.  Why the location varies, I do not know.

Where does this binary appear during your build?

What OS?

What version of QT?

Me?

src/qt-console/bat
FreeBSD 8.0


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