Re: [Bacula-users] bacula-web

2007-06-12 Thread karsteb



jul wrote:
> 
> Hi all, 
> 
> I've got a problem configuring bacula-web-2.0.0. I have installed
> bacula-1.38.11, working and configuring properly. But this week I've seen
> a notice about bacula-web and I'm really excited to use it, becasuse I
> need to get reports of my backups. The problem is thay when I access to
> the server via web I get the error: "Error query 4". I know this errors
> comes from line 53 of index.php but I don't know why. I've confiured
> bacula.conf whit my database configuration and also I test
> bacula-web-2.2.2 but it's still not working. I also know this error
> happens because I don't have register in the "Media" table of bacula's
> database, but I don't know how can I add registers to this table 
> 
> Could anybody help me?? 
> Thanks in advanced and sorry for my bad English but I come from Spain. 
> Regards
> 
> 


Seems like a little loose error checking in the index.php script. Comes from
around line 52 in bacula-web/index.php. Propably caused by MySQL table
"Media" still being empty. Run a round of backups first to fill some data in
the table - that should fix it.

Karsten


-- 
View this message in context: 
http://www.nabble.com/bacula-web-tf3492995.html#a10865435
Sent from the Bacula - Users mailing list archive at Nabble.com.


-
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


Re: [Bacula-users] bacula database comparison and pitfallsbacula database comparison

2007-06-12 Thread Frank Sweetser
Dave wrote:
> Hi,
> Thanks for your reply. For me and i don't know if this is in general, 
> but in 5.0 there's a new timeout feature and when it kicks in if bacula is 
> running i end up with table corruption.

This can be worked around on the MySQL side.

http://paramount.ind.wpi.edu/wiki/doku.php?id=faq#mysql_server_has_gone_away

-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Network Engineer  |  is simple, elegant, and wrong. - HL Mencken
GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC

-
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


Re: [Bacula-users] GUI for webmin clone

2007-06-12 Thread Michael Nelson
Stephan Wendl wrote:
>  
> Not sure if anyone had noticed but OCM Webmin has a module for bacula
> configuration/management
>   
I have installed it and played with it some, but somehow at least for me 
it's easier to just vi the config files.  I find the gui approach to be 
awkward and clunky in comparison.

-- 
The music business is a cruel and shallow money trench, a long plastic hallway 
where thieves and pimps run free, and good men die like dogs. There's also a 
negative side.  Hunter S. Thompson


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-
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


[Bacula-users] bextract an encrypted file.

2007-06-12 Thread Emery Guevremont
Hello,

I'm in the middle of trying to bextract a file that's encrypted on a 
volume. Here's the command I ran:

bextract -V 24 -b /var/bacula/backup-dir.restore.4.bsr -v /dev/nst0 /tmp

and here's the error message I got:

bextract: match.c:249 add_fname_to_include prefix=0 gzip=0 fname=/
bextract: butil.c:283 Using device: "/dev/nst0" for reading.
31-May 15:51 bextract: Invalid slot=0 defined, cannot autoload Volume.
31-May 15:51 bextract: 3301 Issuing autochanger "loaded? drive 0" command.
31-May 15:51 bextract: 3302 Autochanger "loaded? drive 0", result is Slot 1.
31-May 15:51 bextract: Ready to read from volume "24" on device 
"Drive-1" (/dev/nst0).
31-May 15:51 bextract: Forward spacing Volume "24" to file:block 97:0.
bextract: -rw-r-   1 root bacula 965 2007-05-31 
15:33:56  /tmp/etc/bacula/bacula-fd.conf
31-May 15:52 bextract: bextract Error: Unknown stream=20 ignored. This 
shouldn't happen!
31-May 15:52 bextract: bextract Error: Unknown stream=20 ignored. This 
shouldn't happen!
1 files restored.

I've got the pem file of the client copied on this machine, but I don't 
know how I'm supposed to get bextract to use it. Is it even possible to 
restore encrypted data with bextract? If not, what our my options if I 
don't have access to the catalog?

Thank you.

-
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


Re: [Bacula-users] bextract an encrypted file.

2007-06-12 Thread Emery Guevremont
Michel Meyers wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Emery Guevremont wrote:
>   
>> Hello,
>>
>> I'm in the middle of trying to bextract a file that's encrypted on a
>> volume. Here's the command I ran:
>> 
> [...]
>   
>> I've got the pem file of the client copied on this machine, but I don't
>> know how I'm supposed to get bextract to use it. Is it even possible to
>> restore encrypted data with bextract? If not, what our my options if I
>> don't have access to the catalog?
>> 
>
> - From the manual (http://www.bacula.org/rel-manual/Data_Encryption.html):
>
> The implementation does not encrypt file metadata such as file path
> names, permissions, and ownership. Extended attributes are also
> currently not encrypted. However, Mac OS X resource forks are encrypted.
>
> - ---
> Maybe you can use bscan to populate a 'dummy catalog' and then recover
> your real catalog backup using that?
>   
I know I can use bscan, but I was hoping I can save a step and just use 
bextract. I thought I had seen on this list that bextract supports 
encrypted files, but I could be wrong.
> Greetings,
>Michel
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
>
> iD8DBQFGYDI02Vs+MkscAyURAjoOAJ9pwrxxBrgtyiDW5rtBdMQP0pyTMwCeJnzb
> 3nsHhcG6UmmN5oA6vmBxxes=
> =wFeA
> -END PGP SIGNATURE-
>
>
> -
> 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
>   


-
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


[Bacula-users] FTP Sync

2007-06-12 Thread ashok shah
Is it possible to use Bacula to back up two servers via FTP protocol.
 
Conceptually I am looking for a solution that can go transfer files via LAN or 
WAN.
 
 Windows(FTP)-->Embeded Linux Server-Buffalo Terrastation(FTP)
 
I have tried other FTP sync softwares.. and Pulling Data from the server runs 
at 11.6MB/sec (via gigabit LAN on the same SWITCH), the connection times out 
frequently, but it works..
 
When trying to pull Data from the Linux Server (bufallo Terrastation) the 
throughput is only 3.63MB/sec
 
Theoretically it should be the same..
 
I am interested in automating this procedure regularly.. between FTP boxes on 
the WAN as well.
 
Thanks,
 
 
Ashok Shah M.D.
 
CTO Integrated Technologies Inc.
CTO En-Lightend LLC
993 Walker Ave S.E.
Atlanta, GA 30316
Office: 404-624-9930
Fax: 866-259-5802
Cell: 404-934-9818
[EMAIL PROTECTED]
[EMAIL PROTECTED]
 
"The faulty interface usually lies between the chair and the keyboard."-Bill 
Gates-
-
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


Re: [Bacula-users] Feature: Reduce Backup Size on RAID

2007-06-12 Thread Hederer Jean-Sébastien
This could be a great feature for bacula. The only difference with 
BackupPC should be that the two ACLs be backed up and the file once.


Jean-Sébastien Hederer - Gérant
ASPerience
Conseil, intégration, hébergement de systèmes informatiques spécialisé en 
solutions logiciel libre de gestion d'entreprise
Mob.: 06 69 56 21 49
Tél.: 02 51 13 50 94
Fax.: 02 40 68 70 06
http://www.asperience.fr




"Ralf Gross" a écrit le 04/06/2007 21:01 :

Mark Best schrieb:
  

I'm not sure what term is used to describe the feature but basically the
backup server only saves 1 copy of a file. Using MD5 it checks to see if
the file is different if its not it considers it to be the same file and
doesn't backup multiple copies of the file. 


For example most *nixes have the /bin/ls binary file. Assuming it's the
same 'ls' that another system has the backup server only keeps 1 copy of
the binary but 2 entries in the Database - one for each PC. 
...



I don't think this is possible with bacula. BackupPC with its pooling
feature could be an alternative (maybe you know BackupPC already).

Ralf

-
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
  
begin:vcard
fn;quoted-printable:Jean-S=C3=A9bastien Hederer
n;quoted-printable:Hederer;Jean-S=C3=A9bastien
org:ASPerience
email;internet:[EMAIL PROTECTED]
title;quoted-printable:G=C3=A9rant
tel;cell:0669562149
x-mozilla-html:FALSE
url:http://www.asperience.fr
version:2.1
end:vcard

-
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


Re: [Bacula-users] [Bacula-devel] Project for strong incremental backup assurance

2007-06-12 Thread Andre Noll
On 10:40, Kern Sibbald wrote:

> > So I think it would be _really_ nice to store information about
> > deleted files and directories in the database which would make it
> > possible to get rid of all deleted files and directories automatically
> > during restore.
> > 
> > The dar backup tool for example has this feature. Are there any
> > plans to include such a feature also in bacula?
> 
> Yes, but no one is currently working on it.  There have been a number of 
> emails on this subject on the bacula-users' list recently.

In February you said Robert will be working on this project. Do you
have any pointers to this work? I would be interested to look at the
strategy for implementing this and at the work that has been done so
far, if any.

Thanks
Andre
-- 
The only person who always got his work done by Friday was Robinson Crusoe


signature.asc
Description: Digital signature
-
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


Re: [Bacula-users] [Bacula-devel] Project for strong incremental backup assurance

2007-06-12 Thread Andre Noll
On 11:57, Kern Sibbald wrote:

> Robert quit the project, so currently there is no one assigned to it.
> 
> I would be *extremely* happy to see someone interested in this project.

I sure am interested. But I'm not sure how much time I will be able
to spend on it.

> If your offer is for algorithm help, please see Algorithms below. If
> your offer above includes programming (i.e. C or C++ programmer), and
> you are interested in working on it, please let me know (either off
> list or if you wish copying the bacula-devel list) and we can discuss
> the project.

The theoretical background is what I'm interested (and probably
skilled) most, but programming in C is not a problem either. I'm not
that familiar with C++ though.

> This project and the project to store only one copy of a file (Base project) 
> are closely related because they both require *much* more communication 
> between the Dir and the FD -- essentially the Dir must send the current state 
> as known in the catalog to the client, which can then determine which files 
> to backup.
> 
> Algorithms:
> This requires potentially sending a *lot* of data (i.e. millions of filenames 
> and attribute data), which will require hash coding the names for performance 
> reasons.

Agreed. So the communication between sd and fd for an incemental
backup would look like

fd -> sd: here's the list of (hashes of) filenames that
have changed.  This list might also contain hashes of the
contents of these files.

sd -> fd: thanks, please send them, but omit the following ones
as I already have them.

sd -> fd: list of hashes to omit.

fd -> sd: send contents of shortened list of files

> Some years ago, I wrote hasing routines specifically for this, but they have 
> never been used yet, and so I am now looking at bringing them up to date -- 
> in particular adding a Bloom filter to improve performance (I am currently 
> researching Bloom filters).

I just read the wikipedia page on bloom filters. Looks to me like a
very promising concept. However, one obvious problem is that you'll
have to regenerate the filter whenever the ratio n/m of number of
hash bits per filename becomes so small that the false probability of
(ln 2)^(n/m) becomes too large.

> Where I could use a bit of advice is:
> 
> Now:
> - Reviewing my hash table code (particularly the hash function)  
> src/lib/htable.h src/lib/htable.c

Will do.

> - Proposing how to size a Bloom filter (n bits) and number of hash functions.

Well, these values will have to depend on the number of files that
are going to be stored in the database. If an upper bound M on
this number is known in advance as well as a small number p, the
probability with which we are willing to accept false positives,
one can easily determine n and the number k of hash functions as

n = M * ln (1 / p) / (ln 2)^2

k = ln 2 * n / M

unless I errored with the math ;)

> - Proposing what hash functions to use for the Bloom filter.

I personally like SuperFastHash for its performance, see

http://www.azillionmonkeys.com/qed/hash.html 

It's not cryptographically secure, but very fast. md5 would be another
option, but sha1 is likely too expensive for no real gain. It should
be possible to exchange the hash algorithm easily.

In any case it's enough to choose only two hash functions h1 and h2,
no matter what k is. One can then use the standard double hashing
method to produce k hash functions via

h(i, key) = (h1(key) + i * h2(key)) mod m, i = 0...k-1,

where m is chosen properly (e.g. a power of two if h2 produces only
odd numbers).

> Since these two projects (de-duplication of files, tracking new and deleted 
> files) are quite hot topics lately, over the next week, I will write up a 
> sort of proposal for implementation outlining my general ideas for how to 
> implement them within the existing Bacula framework (i.e. without too many 
> modifications to the database, ...).

I'm looking forward to this.

Andre

-- 
The only person who always got his work done by Friday was Robinson Crusoe


signature.asc
Description: Digital signature
-
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


[Bacula-users] Client build on AIX -- Help!

2007-06-12 Thread Reuben A. Popp
Hello everyone,

I'm trying to build 2.0.3 (client only) on AIX 5.3.  I have all the requisite 
libraries installed via the linux toolkit packages and some built from 
source.  I'm also running configure with the following 
flags:  --enable-client-only --sysconfdir=/usr/local/etc/bacula 
--with-working-dir=/usr/local/bacula/working.

Configure appears to finish properly, but when I try a 'make all', the build  
stops shortly while trying to build console in filed with the errors:

 ==>Entering directory /usr/local/src/bacula-2.0.3/src/findlib
 Make of findlib is good 

==>Entering directory /usr/local/src/bacula-2.0.3/src/filed
Linking bacula-fd ...
/usr/bin/g++  -O -L../lib -L../findlib -o bacula-fd filed.o 
authenticate.o acl.o backup.o estimate.o  filed_conf.o heartbeat.o job.o 
pythonfd.o  restore.o status.o verify.o 
verify_vol.o   -lz-lfind -lbac -lm  -lpthread  -lintl-lintl
ld: 0706-006 Cannot find or open library file: -l stdc++
ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l m
ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l gcc_s
ld:open(): A file or directory in the path name does not exist.
ld: 0706-005 Cannot find or open file: libgcc.a
ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l gcc_s
ld:open(): A file or directory in the path name does not exist.
ld: 0706-005 Cannot find or open file: libgcc.a
ld:open(): A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 1.


Stop.

Any help at this point would be greatly appreciated!!

Thanks in advance
Reuben

-- 
Reuben A. Popp
Systems Administrator
Information Technology Department
East Central College
1+ 636 583 5195 x2480

-
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


[Bacula-users] Multiple Clients Using Disk Example

2007-06-12 Thread Kyle Marsh
In the Bacula manual there is a wonderful example of how to set up
pools for backups to disk using the default three level schedule.
However, the example configuration file only uses one client.  I was
wondering if the same configuration works for multiple clients, or if
there is something else to consider.  For example, the sample file has
one job per volume for each of 6 volumes in the differential pool, one
for each week in a month (with some slack).  If I were to try to run
10 clients on this would it fill that pool on the first week after 6
had backed up?  What would happen to the other four, would baucla die
horribly, or overwrite the volumes it just created, or create more
volumes?

Similarly, I seem to need a new client entry and a new job entry for
every machine I want to back up.  Many of the machines to be backed up
will change every 4 months or so, and they all will have the same
configuration, so is there any way to condense the amount of
configuration that needs to change?  i know about JobDefs, but is
there any BatchJob, say, or a similar ClientDefs?

Thanks,

Kyle Marsh

-
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


[Bacula-users] Could not open Catalog MyCatalog

2007-06-12 Thread tamada(acornsoft)
I'm facing a trouble with the following message.
I very appreciate if someone could help me out.
OpenSuSE10.2 32 bit version
MySQL 5.0.41
Bacula 2.1.12 and 2.0.3 (I used these two versions and have the same 
message)

I did not change any script files.
The command I used for compilations is :
./configure --prefix=/usr/local/bacula --with-mysql 
--with-pid-dir=/usr/local/bacula/var/run

I used three script for MySQL, i.e. grant_mysql_privileges, 
create_mysql_database and make_mysql_tables.

pumpkin bacula/bacula-2.1.12> cd /usr/local/bacula/etc/
Directory: /usr/local/bacula/etc
pumpkin bacula/etc> ./bacula restart
Stopping the Bacula File daemon
Pool   Maxsize  Maxused  Inuse
NoPool  2560  0
NAME1300  0
FNAME   2561  0
MSG 5121  0
EMSG   10241  0

Stopping the Bacula Storage daemon
Stopping the Bacula Director daemon

Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
bacula-dir: dird.c:873 Could not open Catalog "MyCatalog", database 
"bacula".
bacula-dir: dird.c:878 mysql.c:193 Unable to connect to MySQL server.
Database=bacula User=bacula
MySQL connect failed either server not running or your authorization is 
incorrect.
07-Jun 08:50 bacula-dir ERROR TERMINATION
Please correct configuration file: /usr/local/bacula/etc/bacula-dir.conf

 Thank you in advance.
/Junzo



-
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


Re: [Bacula-users] Could not open Catalog MyCatalog

2007-06-12 Thread tamada(acornsoft)
I checked mysql.c and recognized md->db_port and md-db_socket are NULL.
I inserted these information as magic code (hard code).
Now it seems to work.

I do not know why it could not have MySQL port number and socket file.
For time being, I'll use this approach to understand Bacula in depth.

Thanks.
/Junzo
P.S. I can not be a part of Bacula mailing list because Mailman error.
- Original Message - 
From: "tamada(acornsoft)" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, June 07, 2007 9:09 AM
Subject: Could not open Catalog MyCatalog


> I'm facing a trouble with the following message.
> I very appreciate if someone could help me out.
> OpenSuSE10.2 32 bit version
> MySQL 5.0.41
> Bacula 2.1.12 and 2.0.3 (I used these two versions and have the same 
> message)
>
> I did not change any script files.
> The command I used for compilations is :
> ./configure --prefix=/usr/local/bacula --with-mysql 
> --with-pid-dir=/usr/local/bacula/var/run
>
> I used three script for MySQL, i.e. grant_mysql_privileges, 
> create_mysql_database and make_mysql_tables.
>
> pumpkin bacula/bacula-2.1.12> cd /usr/local/bacula/etc/
> Directory: /usr/local/bacula/etc
> pumpkin bacula/etc> ./bacula restart
> Stopping the Bacula File daemon
> Pool   Maxsize  Maxused  Inuse
> NoPool  2560  0
> NAME1300  0
> FNAME   2561  0
> MSG 5121  0
> EMSG   10241  0
>
> Stopping the Bacula Storage daemon
> Stopping the Bacula Director daemon
>
> Starting the Bacula Storage daemon
> Starting the Bacula File daemon
> Starting the Bacula Director daemon
> bacula-dir: dird.c:873 Could not open Catalog "MyCatalog", database 
> "bacula".
> bacula-dir: dird.c:878 mysql.c:193 Unable to connect to MySQL server.
> Database=bacula User=bacula
> MySQL connect failed either server not running or your authorization is 
> incorrect.
> 07-Jun 08:50 bacula-dir ERROR TERMINATION
> Please correct configuration file: /usr/local/bacula/etc/bacula-dir.conf
>
> Thank you in advance.
> /Junzo
> 



-
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


Re: [Bacula-users] store data on two storages at one time

2007-06-12 Thread Maik Derstappen

Ryan Novosielski schrieb:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

For what reason? Load balancing? What are these two storages, tape drives?

I don't know how to answer this question with the small amount of
information you have provided.

  

hello Ryan,

thank for your answer.
I the 2 Storages are 2 Servers which stores the data on harddisks.
Just i need an solution to store the same data on more than one storage.
And i don't want run 2 job for this. Because the filedaemon then read 
the data twice for the same Backup.


Any Idears for an nice solution?

regards Maik



Maik Derstappen wrote:
  

hello,

is there an solution to storage the data which we will backup on more 
then one storage?



for example:


when the job is running:

  ==>   storage A
bacula-fd  ==>
  ==>   storage B



thans for any answer  :-)

regards Maik



  



-
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


Re: [Bacula-users] Multiple Clients Using Disk Example

2007-06-12 Thread Kyle Marsh
Thanks,

On 6/8/07, Arno Lehmann <[EMAIL PROTECTED]> wrote:
> Hi,

> >  For example, the sample file has
> > one job per volume for each of 6 volumes in the differential pool, one
> > for each week in a month (with some slack).  If I were to try to run
> > 10 clients on this would it fill that pool on the first week after 6
> > had backed up?  What would happen to the other four; would baucla die
> > horribly, or overwrite the volumes it just created, or create more
> > volumes?
>
> When I deploy a disk-based backup scenario, I usually don't bother with
> volumes for a certain weekday, or anything like this. Rather, I estimate
> the amount of space needed (per pool, obviously), and set up the pool to
> take that amount of data (using limits on the volume size, volume
> number, plus enabling automatic labeling).
>
> Bacula will create, fill and recycle volumes as necessary and as set up.
> It usually doesn't die horribly, and it overwrites volumes only once
> they are out of their retention time. The worst that can (and does,
> sooner or later) hapen is that Bacula asks for a new volme, which simply
> shows that my estimate wasn't good enough or that the data grew faster
> than could be expected. Then it's either time to create more volumes (as
> available space permits) or to shorten the retention times (as policy
> permits).

So if I understand you, what you do is create an pool for each level
of backup and estimate how much space that will take, then pick a
reasonable maximum size for each volume and divide the estimated pool
size by that to get the number of volumes, rather than put each backup
it its own volume like the example does.  That seems good.

For reference, what have you found to be reasonable sizes for disk
volumes?  If, as I suspect, the optimal size depends on the overall
size of each job, could you give some examples or a rule of thumb?

> >  Many of the machines to be backed up
> > will change every 4 months or so, and they all will have the same
> > configuration, so is there any way to condense the amount of
> > configuration that needs to change?  i know about JobDefs, but is
> > there any BatchJob, say, or a similar ClientDefs?
>
> No, unfortunately not. But you can rather easily create a template which
> is semi-automatically populated with the individual information. An
> example I invented recently could look like this:
>
> Put this into an executable text file:
> #!/bin/bash
> SED=/usr/bin/sed
> SUBST="-e s/TEMPLATE/$1/g -e s/PASS/$2/g"
> cat< Client{
>Name=TEMPLATE-fd
>Password=PASS
># all the usual stuff that never changes
> }
>
> I called this unix-templ and execute:
>
> [EMAIL PROTECTED]:~/some-config> ./unix-templ test pass
> Client{
>Name=test-fd
>Password=pass
># all the usual stuff that never changes
> }
>
> which you could paste into your configuration or redirect into an
> included file.
>
> Similar scripts for other configuration sections are equally simple...
>

Indeed...I think I will write a script that takes the client data and
appends it in the necessary formats to files that are then included
where needed.  That seems like the best idea in this case.  I'll have
to look up includes -- I have yet to run across them in the manual.
Also, I'm not sure if it helps here, but is there any sort of variable
system in the bacula configuration?  I think not, but it may turn out
useful if there is.

> Also, IIRC the upcoming version 2.2 (now in beta testing) allows to use
> script output as the configuration file, so you could use a main script
> that dynamically generates all the necessary information, taking it, for
> example, from a database. Adding a client could be done using a simple
> front-end to your database, and then reloading the DIR.

What do you mean here by using script output as the conf file?  How is
this different from what I plan on doing above except with a database,
which I could implement if I felt so inclned?  Do you mean that 2.2
will ship with a script which generates the configuration files rather
than requiring them to be written out by hand?

Thanks for the help,

~Kyle

> Arno
>
> > Thanks,
> >
> > Kyle Marsh
> >
> > -
> > 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
>
> --
> IT-Service Lehmann[EMAIL PROTECTED]
> Arno Lehmann  http://www.its-lehmann.de
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your X

Re: [Bacula-users] Bacula Waits for 40min When a Client is Down

2007-06-12 Thread Kyle Marsh
On 6/7/07, Arno Lehmann <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On 6/7/2007 2:42 PM, Steve Campbell wrote:
> > I had the same thought about time-outs just yesterday. I am new to
> > Bacula, and was testing my second client backup, when I realized I had
> > not defined the client in my host file. I run my  backups on an internal
> > network (non-public) so the DNS for this was not available either. I was
> > using bconsole, and the job hung up due to not being able to find the
> > client,
>
> It should terminate almost immediately.
>

And yet the fact remains that for both Steve and me, it doesn't.  You
suggested pinging the client with RunBeforeJob.  Is there a better way
to do this than adding a new line in each job?  You cannot put it in
the JobDefs because you need the hostname, and of course you cannot
extract that from anything in the Job field as far as I know, so it
has to appear magically.

> > and I was wondering how to kill it immediately, as it wasn't
> > going to find the client.
>
> The cancel command...
>

Of course, I don't believe the cancel command is particularly
effective when your console is busy with something else, like waiting
40 minutes for a response that isn't coming.  You need to start a new
bconsole and run cancel from there as far as I can tell.

> > As a new user, I didn't know if there is a
> > timeout value I could set, or how long it was going to run (maybe even
> > forever?).
> >
> > So, good question, Arno, and I hope someone provides the answer.
>
> Erm, which was the question?
>
> :-)
>
> Arno
>
> > Steve
> >
> > Arno Lehmann wrote:
> >> Hi,
> >>
> >> On 6/6/2007 10:57 PM, Kyle Marsh wrote:
> >>
> >>> Howdy,
> >>>
> >>> I'm working on a bacula setup for my college and I have found that
> >>> when a client goes down, whether it's firewalled, turned off, or
> >>> otherwise disconnected from the network, bacula seems to hang for
> >>> about 40 minutes
> >>>
> >> Unusual timeout, in my experience... I'd expect nearly instantaneous job
> >> failure or the IT-related two hours...
> >>
> >>
> >>> before deciding that the client isn't there and
> >>> stopping.  This could become problematic if we have several machines
> >>> down each night and could cause substantial problems if some backups
> >>> don't start until people are back working.  Is there a directive that
> >>> allows me to specify something sane as the timeout period, and where
> >>> does it need to go?
> >>>
> >>
> >> I prefer leaving the timeouts to Bacula, and instead use "Run Before
> >> Job" scripts to ping the clients. Concurrent jobs are a reasonable
> >> solution against long-running or stalled jobs.
> >>
> >> Arno
> >>
> >>
> >>> Thanks,
> >>>
> >>> Kyle Marsh
> >>>
> >>>
> >
> >
> > -
> > 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
>
> --
> IT-Service Lehmann[EMAIL PROTECTED]
> Arno Lehmann  http://www.its-lehmann.de
>
> -
> 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
>

-
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


Re: [Bacula-users] Using sd on Windows - possible to use UNC path or mapped drive as the Archive Location?

2007-06-12 Thread Erich Prinz
Been down this 'path' before. Not supported by the current code base.  
Bacula requires locally mounted devices for the SD.

One alternative for you is to install the SD on the remote machine  
and configure Bacula to use that SD for its jobs.

Erich

On Jun 8, 2007, at 3:57 PM, Mike Lauwaert wrote:

> Hi all --
>
> I am trying to use the Windows servers which I know aren't  
> completely supported but I have had decent successes with tem thus  
> far.  My problem now is I am trying to use a network attached  
> storage device which I have mapped as a persistent drive on the  
> Windows 2003 box as my Archive Location.  I have tried every  
> combination of UNC paths, to shared folders, to the mappeded  
> network drive itself and no matter what I do I get the following on  
> doing a "status storage":
>
> Device status:
> Device "NASFileStorage" is not open or does not exist.
>
> and when trying to mount:
>
> ../../stored/dev.c:126 Unable to stat device Z:\Backups\Bacula:  
> ERR=The system cannot find the path specified.
>
> Device "NASFileStorage" requested by DIR could not be opened or  
> does not exist.
> 3999 Device "NASFileStorage" not found or could not be opened.
>
> My initial though was to do a junction/linkd/mountvol/subst to map  
> the share to a local folder but no luck, doing that is not  
> supported in Windows for network\shared drives.
>
> Is using a network drive just not supported by Bacula or is there  
> some creative way to mount one that I am just not thinking of?
>
> Thanks,
>
> Mike
>
> Explore the seven wonders of the world Learn more!
> -- 
> ---
> 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


-
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


Re: [Bacula-users] [Bacula-devel] Backup of databases and Exchange

2007-06-12 Thread Kern Sibbald
On Saturday 09 June 2007 15:47, db wrote:
> Kern Sibbald wrote:
> > I don't foresee the Bacula project undertaking these 
> > kinds of projects because the Bacula project is about Bacula not about 
MySQL, 
> > PostgreSQL, Exchange, Oracle, DB2, ...   
> Bacula is about Bacula? 

Yes, Bacula is about backing up files. 

> I thought Bacula was about backup?  Like it or  
> not, but admins have to take backup of files AND systems. If Bacula 
> fails to acknowledge this, then it can't provide a complete backup 
> solution and that would be a shame.
> Yes you can script a solution to some database systems, but it would be 
> nice to have a supported solution that was part of Bacula. Scripting a 
> database backup still doesn't help exchange and other systems. The 
> possibility to create an exchange module it here, but am I the only own 
> that sees the need for it? Doesn't people want an alternative to systems 
> like Symantec backup exec as a central complete backup system?

I believe I already explained to you how I plan to get solutions that 
are "part of Bacula", and in explicitly acknowledging this issue, I cannot 
undstand why you say " If Bacula fails to acknowledge this ...".  At the 
moment, there are *many* more critical features that Bacula lacks than what 
you are asking for when one looks at the voting results from the Bacula users 
themselves. 

In the mean time, the users using Bacula can help the project by either 
helping provide those solutions or by writing and contributing scripts.


-
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


Re: [Bacula-users] Problems using smartmontools as Tape Alert Command

2007-06-12 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ryan Novosielski wrote:
> Andreas Helmcke wrote:
>> On 08.06.2007 16:20, Ryan Novosielski wrote:
>>> Marc Levy wrote:
 Ryan Novosielski  umdnj.edu> writes:
> Ralf Gross wrote:
>> Ryan Novosielski schrieb:
>>> -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA1
>>>
>>> Ralf Gross wrote:
 Ryan Novosielski schrieb:
> Could someone tell me where I'm going wrong here? Here is my line that
> I've added to the config files, stolen directly from those who know 
> what
> they're doing:
>
> Alert Command = "sh -c '/opt/csw/sbin/smartctl -H -l error %c'"
 Try something like this:

 Alert Command = "sh -c 'smartctl -H -d scsi -l error %c'"
>>> I'll certainly give it a shot, but doesn't it look like the %c is never
>>> getting expanded to anything? Does anyone know where in the manual these
>>> % variables are discussed?
>> It's in 'CHAPTER 28. AUTOCHANGER SUPPORT'
>> ...
>> %c = changer device name
>> ...
>>
>> Of course you can use the device path instead of %c.
> I don't have an autochanger. Would that mean I'd have to type the path
> in manually, or use a different variable?
>
 You've got to solutions:
 1/ The answer is in the manual too:
 'Chapter 14: Alert Command' (bottom of page 228 of bacula.pdf v2.0.3):
 "you will need to specify a Changer Device directive in your Device 
 resource
 (...) so that the generic SCSI device name can be edited into the command 
 (with
 the %c)."
 2/ The second one, more elegant, as you do not have to define a 
 ChangerDevice=
 directive for a device that is not an autochanger, is to modify the
 AlertCommand= and replace the '%c' with '%a' that is the subtitution for 
 the
 archive device name (as stated in the manual (chapter 28.5 bottom of page 
 409
 and other places as well). This way Bacula will substitute '%a' with the 
 actual
 value of the ArchiveDevice= directive in your SD.conf file before it is 
 sent to
 the OS for execution.
>> I dare say - without having checked this version, but fought with Alert
>> Command for a while - that this wont work.
> 
>> When bacula is executing the Alert Command the storage daemon is using
>> the tape and thus preventing the smartcl to access the tape device.
> 
>> So you are either back to solution number 1 (having to add a changer
>> device when not having an autochanger) or you have to replace the %c
>> with the name of the generic scsi-device of the tape drive (using linux
>> the name is something like /dev/sg4)
> 
> I'm not 100% sure on this, but I do not believe Solaris uses companion
> generic device names in addition to the standard tape drive names. If it
> does, I've never come across them (unless we're talking about those
> crazy [EMAIL PROTECTED],4, etc. device names that hang out under /dev 
> someplace).
> I suppose I will find out soon enough whether Solaris' handling of
> drives allows for this sort of thing or not.

Well, it looks like we were both right. Unfortunately, I don't know
where that takes me. If you look at the following manpage for scsitape:

The first argument, given following -f , is the SCSI generic device
corresponding to your tape drive. Consult your operating system's
documentation for more information (for example, under Linux these are
generally /dev/sg0 through /dev/sg15, under FreeBSD these are /dev/pass0
through /dev/passX. Under Solaris this is usually the same as your tape
drive (Solaris has a SCSI passthrough ioctl). You can set the STAPE or
TAPE environment variable rather than use -f.

...however, if I do try to use %a for the archive device, I do get a
busy error:

09-Jun 20:52 helios-sd: Alert: smartctl version 5.36
[sparc-sun-solaris2.8] Copyright (C) 2002-6 Bruce Allen
09-Jun 20:52 helios-sd: Alert: Home page is
http://smartmontools.sourceforge.net/
09-Jun 20:52 helios-sd: Alert:
09-Jun 20:52 helios-sd: Alert: Smartctl open device: /dev/rmt/0cbn
failed: Device busy
09-Jun 20:52 helios-sd: 3997 Bad alert command: sh -c
'/opt/csw/sbin/smartctl -H -l error /dev/rmt/0cbn': ERR=Child exited
with code 2.

...I tried /dev/rmt/0 too for good measure. No dice. I wonder if this is
also a problem caused by this process running at an odd place in the
job. It appears as if Blastwave has upgraded to 2.0.3 -- I guess I can
find out.

Incidentally, the out-of-place running of RunAfterJob (before
despooling) -- which part would I upgrade to test the effects? The
director? The storage?

>> By the way:
>> I would recommend to use this form *especially* when using multidrive
>> autochangers or you will only ask the changer for its status while
>> asking the tape gives more and more useful information.
> 
> Not 100% sure what you mean in this case. I don't have an autochanger,
> so this doesn't much matter to me, but I'm curious how thi

[Bacula-users] Instructions for Bacula on Solaris

2007-06-12 Thread Niclas Sodergard
Hi,

I wrote down some simple instructions on how to get Bacula working on
Solaris using Blastwave binary packages. Have a look if you are
interested or have struggled to get it to compile properly on the
platform.

http://aspiringsysadmin.com/blog/2007/06/10/getting-bacula-to-work-on-solaris-in-10-minutes/

If you have any comments or suggestion for improvements please let me know.

cheers,
Nickus

-- 
Have a look at my blog for sysadmins!
http://aspiringsysadmin.com

-
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


[Bacula-users] Compile Error building Bacula with MySQL and PostgreSql

2007-06-12 Thread Berner Martin
Hello
I use Bacula 1.38.9 on Sun Solaris in a productive environment. Cataloc-Backend 
is PostgreSql currently. But I think the bottleneck in Performance is Postgre. 
So I like to give MySql a try.
Now I try to compile Bacula with Support for both Backend MySql and PostgrSql.
I make a configure like this:
./configure --with-postgresql=/usr/local/pgsql --with-mysql=/usr/local/mysql
and a simple make afterwards. But I always get a compilation error by sql.c

make[1]: Leaving directory 
`/export/home/install/download/bacula-1.38.9/src/console'
==>Entering directory /export/home/install/download/bacula-1.38.9/src/cats
make[1]: Entering directory 
`/export/home/install/download/bacula-1.38.9/src/cats'
/usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
-I/usr/local/mysql/include/mysql  -g -O2 -Wall  mysql.c
/usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
-I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb.c
/usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
-I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_create.c
/usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
-I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_get.c
/usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
-I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_update.c
/usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
-I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_delete.c
/usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
-I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_find.c
/usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
-I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_list.c
/usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
-I/usr/local/mysql/include/mysql  -g -O2 -Wall  sql.c
sql.c: In function `void db_start_transaction(JCR*, B_DB*)':
sql.c:296: error: 'struct B_DB' has no member named 'allow_transactions'
sql.c:301: error: 'struct B_DB' has no member named 'transaction'
sql.c:304: error: 'struct B_DB' has no member named 'transaction'
sql.c:307: error: 'struct B_DB' has no member named 'transaction'
sql.c: In function `void db_end_transaction(JCR*, B_DB*)':
sql.c:346: error: 'struct B_DB' has no member named 'allow_transactions'
sql.c:350: error: 'struct B_DB' has no member named 'transaction'
sql.c:352: error: 'struct B_DB' has no member named 'transaction'
make[1]: *** [sql.o] Error 1
make[1]: Leaving directory 
`/export/home/install/download/bacula-1.38.9/src/cats'


  == Error in /export/home/install/download/bacula-1.38.9/src/cats ==


I tried with different version of Bacula and tried with precompiled MySql from 
MySql-Site and self compiled version of MySQL. I tried with MySql 4.1.22 and 
5.0.41 but non of them solve my compilation problems.
If I configure only with --with-postgresql=/usr/local/pgsql and do a make, all 
works fine.

What dos I miss?

mit freundlichen Grüssen

Berner Martin
_

Martin Berner, EDV Tel.: ++41-(0)41-729 33 46
Schweizer BraunviehzuchtverbandFax : ++41-(0)41-729 33 77
Chamerstrasse 56  http://www.braunvieh.ch
6300 ZugEmail: [EMAIL PROTECTED]
_
 


-
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


[Bacula-users] change FileSet name, where's the new filesetid?

2007-06-12 Thread Ralf Gross
Hi,

just for confirmation: if I change the name of a FileSet (not the file
list), the next job will be a full backup? 

>From the docs:
Any change to the list of the included files will cause Bacula to automatically
create a new FileSet (defined by the name and an MD5 checksum of the
Include/Exclude contents). Each time a new FileSet is created, Bacula will
ensure that the next backup is always a Full save.

Where can I see the current FileSet ID? With 'llist jobs' I get the filesetids
of completed jobs, but where can I check the current filesetid?

I tried to get it from the db.

bacula=> select * from fileset;
 filesetid |fileset|  md5   | createtime
---+---++-
 1 | SMTCZB0003| K98Oq//ZH2plCHkth6UKkC | 2007-02-20 22:25:00
 2 | VU0EM003 Full | yB/6TU1SCB+HyTpYeFwiGD | 2007-02-20 22:25:01
 3 | Catalog   | z4/v/7/uQ+xwMkF9v//4VD | 2007-02-25 00:10:00
 5 | VU0EM003 Full | I3oXN/QmSUZEs2/H7i+C4C | 2007-02-25 16:22:49
 7 | Test-Set  | 4H+m384yU9+n7//wR6/KjA | 2007-03-01 08:43:47
(5 Zeilen)

I changed the 'VU0EM003 Full' FileSet to 'VU0EM003' and issued reload in
bconsole before. But I can't find the modified FileSet name or id in the db.
Show fileset returns the correct modified name.

* show fileset
...
FileSet: name=VU0EM003
...


Ralf

-
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


[Bacula-users] exabyte autochanger

2007-06-12 Thread Maria McKinley
I recently updated to version 1.38.11-8, and I am having a hard time 
getting my autochanger to work. I changed my bacula-sd.conf file so that 
there is now an Autochanger:

Autochanger {
   Name = Exabyte
   Device = Drive-1
   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
   Changer Device = /dev/sg0
}

Device {
   Name = Drive-1
   Drive Index = 0
   Media Type = VXA-2
   Archive Device = /dev/st0
   LabelMedia = yes;  # lets Bacula label unlabeled media
   Random Access = Yes;
   AutomaticMount = yes;  # when device opened, read it
   RemovableMedia = yes;
   AlwaysOpen = yes;
   Autochanger = yes;
   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

This seems to work fine with btape auto command, but if I try to label 
from bconsole, I get the following:

*label barcodes
Automatically selected Storage: Exabyte
Connecting to Storage daemon Exabyte at dinah:9103 ...
3306 Issuing autochanger "slots" command.
Device "Exabyte" has 0 slots.
No slots in changer to scan.

Any idea why I'm getting this?

Thanks a bunch,
Maria

-
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


Re: [Bacula-users] [Bacula-devel] Project for strong incremental backup assurance

2007-06-12 Thread Kern Sibbald
Hello,

Thanks for your comments.  Please see my notes below ...

On Monday 11 June 2007 10:24, Andre Noll wrote:
> On 15:35, Andre Noll wrote:
> 
> > > - Reviewing my hash table code (particularly the hash function)  
> > > src/lib/htable.h src/lib/htable.c
> > 
> > Will do.
> 
> First some general remarks:
> 
>   - check the return value of malloc()

Not necessary, malloc() is #defined to be bmalloc(), which aborts if it is out 
of memory.

>   - keys are restricted to strings. it would be easy to extend this
> to arbitrary data by adding a "size" field.

Yes, good idea, though I don't immediately see a need to handle anything other 
than strings within Bacula.

>   - IMHO "%p" is prefered for printing pointer variables.

Yes, but it was not portable.  We now have our own Bacula printf code which is 
portable and supports %p, so I've been converting the old stuff when I am in 
the file.  Clearly this is a good file to attack.

> 
> --- htable.h
> 
> 
> > struct hlink {
> >void *next;/* next hash item */
> 
> why not struct hlink *next?

Good question -- I think you are right.  I'll try it and see if anything 
complains ...

> 
> >char *key; /* key this item */
> >uint32_t hash; /* hash for this key */
> > };
> > 
> > class htable : public SMARTALLOC {
> >hlink **table; /* hash table */
> >int loffset;   /* link offset in item */
> 
> see below.
> 
> >uint32_t num_items;/* current number of items */
> >uint32_t max_items;/* maximum items before growing */
> 
> see below.
> 
> >uint32_t buckets;  /* size of hash table */
> >uint32_t hash; /* temp storage */
> >uint32_t index;/* temp storage */
> >uint32_t mask; /* "remainder" mask */
> >uint32_t rshift;   /* amount to shift down */
> >hlink *walkptr;/* table walk pointer */
> 
> This is only used in first() and next(). IMHO the code would be
> more readable if this were local to these two methods and
> mext() would take a pointer to the predecessor.

I think what you are suggesting is possible, and I will take a look at it. 
However, it leads to several problems:
1. walkptr and walk_index are then no longer treated the same, and IMO that 
will make it harder to read the code.  I.e. there are 2 pieces of information 
that would have to be returned and then passed into next().
2. There will be additional code necessary to adjust the pointer on entry, 
which I currently avoid by keeping walkptr in the class.
3. It complicates the "user" code in that it must pass the old pointer to the 
next() routine and if it is symmetric also walk_index.

> 
> >uint32_t walk_index;   /* table walk index */
> 
> same here.

As with the above, that will complicate the problem by returning it to the 
higher level program.  The "user" program really shouldn't need to know 
anything about walkptr or walk_index as they are simply the means to traverse 
a hash list in linear order without using recursion (I have never seen such 
code anywhere), so IMO, returning them to the higher level routine breaks the 
encapsulation of the code.

> 
> >void hash_index(char *key);/* produce hash key,index */
> >void grow_table(); /* grow the table */
> > public:
> >htable(void *item, void *link, int tsize = 31);
> >~htable() { destroy(); }
> >void init(void *item, void *link, int tsize = 31);
> >bool  insert(char *key, void *item);
> >void *lookup(char *key);
> >void *first(); /* get first item in table */
> >void *next();  /* get next item in table */
> >void destroy();
> >void stats();  /* print stats about the table */
> >uint32_t size();   /* return size of table */
> > };
> 
> htable.c
> 
> 
> > /*
> >  * Create hash of key, stored in hash then
> >  *  create and return the pseudo random bucket index
> >  */
> > void htable::hash_index(char *key)
> > {
> >hash = 0;
> >for (char *p=key; *p; p++) {
> >   hash += (hash << 3) + (uint32_t)*p;
> >}
> 
> This ist just shifting and multiplication with the bytes in key. I
> would expect this hash to have quite some unneccessary collisions
> when used on strings, though I'm by no means an expert in this area.

If I am not mistaken, this is a *very* common technique.  The most common 
algorithm shifts by 5 rather than 3, but if I remember right my tests showed 
that 3 was better -- at least with the filenames on my system.

> 
> >/* Multiply by large prime number, take top bits, mask for remainder */
> >index = ((hash * 1103515249) >> rshift) & mask;
> >Dmsg2(100, "Leav

Re: [Bacula-users] how to reinitialize both database and pools/volumes

2007-06-12 Thread Valéry Roché
Hi again,

Ok, when database has been reset, I can delete volumes on HD without
problems. But I installed Bacula on a debian box, and I can't find the
scripts that should reset the database.
Is there a place where I can download it ?

Thanx,
Valéry Roché


Valéry Roché a écrit :
> Hi list,
> 
> I'm testing Bacula since a month and I enjoy it. It's now in production, 
> but I'd like to know how I could reinitialize bot the database and the 
> pools/voulmes I defined in bacula-director.conf
> 
> I found this in the user's manual :
> http://bacula.org/fr/dev-manual-fr/Installing_Configurin_MySQL.html#SECTION000473000
> 
> But it doesn't explain how to reinitialize my volumes, considered that 
> I'm doing backup on a hard-disk (using file backup), not on a tape.
> 
> Kind regards
> Valéry Roché
> 
> -
> 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
> 


-
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


Re: [Bacula-users] block.c:275 Volume data error at 0:0! Wanted ID: "BB02"

2007-06-12 Thread Jeff Dickens

Thanks.

Arno Lehmann wrote:

Hi,

On 6/7/2007 3:02 PM, Jeff Dickens wrote:
  
  I got this error while labeling a tape, which I don't think I've seen 
before. The tape had been previous used as a tar tape, and probably with 
a different hardware compression setting.  Is this anything to worry about?


Connecting to Storage daemon VS160 at squirrel:9103 ...
Sending label command for Volume "tape-pool1-0005" Slot 0 ...
block.c:275 Volume data error at 0:0! Wanted ID: "BB02", got "1-24".
Buffer discarded.



This is not an error, just an indication that the SD didn't find a 
bacula header.
  

3000 OK label. VolBytes=64512 DVD=0 Volume="tape-pool1-0005"
Device="VS160" (/dev/nst0)
Catalog record for Volume "tape-pool1-0005", Slot 0  successfully
created.
Requesting to mount VS160 ...
3001 Device "VS160" (/dev/nst0) is mounted with Volume "tape-pool1-0005"
*
07-Jun 07:49 squirrel-sd: Wrote label to prelabeled Volume
"tape-pool1-0005" on device "VS160" (/dev/nst0)
07-Jun 07:49 squirrel-sd: New volume "tape-pool1-0005" mounted on
device "VS160" (/dev/nst0) at 07-Jun-2007 07:49.



As you see, everything worked as it should.

Arno

  

*status storage=VS160
Connecting to Storage daemon VS160 at squirrel:9103

squirrel-sd Version: 2.0.3 (06 March 2007) i686-redhat-linux-gnu redhat
Daemon started 05-Jun-07 13:01, 7 Jobs run since started.
 Heap: bytes=290,664 max_bytes=421,702 bufs=113 max_bufs=124

Running Jobs:
Writing: Differential Backup job wilkins JobId=6723
Volume="tape-pool1-0005"
pool="tape-pool1" device=""VS160" (/dev/nst0)"
spooling=0 despooling=1 despool_wait=0
Files=3,207 Bytes=17,822,968,826 Bytes/sec=7,953,132
FDReadSeqNo=297,587 in_msg=288668 out_msg=9 fd=5
.
.
.




-
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



  
-
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


Re: [Bacula-users] Using sd on Windows - possible to use UNC path or mapped drive as the Archive Loc

2007-06-12 Thread Mike Lauwaert
Thanks for the response.  
 
Yeah I thought of that however my problem is I have allocated space on NAS 
device through our service provider which I would like to use for which there 
is no machine that I could install the SD.  I can just mount the drive.  Also, 
I would was hoping I could use Bacula to store data to remote backup 
providers/filesystems like rsync.net and mozypro.com etc. which would also 
require mounting the device as a shared drive as you don't have control of the 
physical machine that houses that storage space.  I guess for now I will have 
to do it locally and once a week upload the volumes to the offsite/remote 
storage location.
 
Does anyone know if there is plans to support network backup devices in the 
future for compatibility with remote backup providers etc.?
 
Thanks,
 
Mike



> CC: bacula-users@lists.sourceforge.net> From: [EMAIL PROTECTED]> Subject: Re: 
> [Bacula-users] Using sd on Windows - possible to use UNC path or mapped drive 
> as the Archive Location?> Date: Sat, 9 Jun 2007 10:39:12 -0500> To: [EMAIL 
> PROTECTED]> > Been down this 'path' before. Not supported by the current code 
> base. > Bacula requires locally mounted devices for the SD.> > One 
> alternative for you is to install the SD on the remote machine > and 
> configure Bacula to use that SD for its jobs.> > Erich> > On Jun 8, 2007, at 
> 3:57 PM, Mike Lauwaert wrote:> > > Hi all --> >> > I am trying to use the 
> Windows servers which I know aren't > > completely supported but I have had 
> decent successes with tem thus > > far. My problem now is I am trying to use 
> a network attached > > storage device which I have mapped as a persistent 
> drive on the > > Windows 2003 box as my Archive Location. I have tried every 
> > > combination of UNC paths, to shared folders, to the mappeded > > network 
> drive itself and no matter what I do I get the following on > > doing a 
> "status storage":> >> > Device status:> > Device "NASFileStorage" is not open 
> or does not exist.> >> > and when trying to mount:> >> > 
> ../../stored/dev.c:126 Unable to stat device Z:\Backups\Bacula: > > ERR=The 
> system cannot find the path specified.> >> > Device "NASFileStorage" 
> requested by DIR could not be opened or > > does not exist.> > 3999 Device 
> "NASFileStorage" not found or could not be opened.> >> > My initial though 
> was to do a junction/linkd/mountvol/subst to map > > the share to a local 
> folder but no luck, doing that is not > > supported in Windows for 
> network\shared drives.> >> > Is using a network drive just not supported by 
> Bacula or is there > > some creative way to mount one that I am just not 
> thinking of?> >> > Thanks,> >> > Mike> >> > Explore the seven wonders of the 
> world Learn more!> > 
> -- > > 
> ---> > 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> 
_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE-
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


[Bacula-users] "Zlib data error" failure on only one file in restore

2007-06-12 Thread Jeff Dickens
I ran a test restore, verifying (apparently) that my now-retired Windows 
SD system really was handling the end-of-tape condition correctly, and 
found to my surprise that I got a "Zlib data error" failure on one 
file.  The rest of the restore seems perfect.  One probably important 
point is that the file in question is large: over 750MB. 

The FD that did the backup several weeks ago was "liz1-fd Version: 2.0.3 
(06 March 2007)  VSS Linux Cross-compile Win32".  The FD that did the 
restore was "kestrel-fd Version: 2.0.4 (02 May 2007)  VSS Linux 
Cross-compile Win32".  The SD that did the restore was "squirrel-sd 
Version: 2.0.3 (06 March 2007) i686-redhat-linux-gnu redhat".  The SD 
that did the backup was the "2.0.4" version on Windows.



Is this a bug, or a known problem?

11-Jun 09:41 packrat-dir: Start Restore Job RestoreFiles.2007-06-11_09.41.47
11-Jun 08:44 squirrel-sd: Please mount Volume "tape-pool1-0001" on Storage Device 
"VS160" (/dev/nst0) for Job RestoreFiles.2007-06-11_09.41.47
11-Jun 08:48 squirrel-sd: Ready to read from volume "tape-pool1-0001" on device 
"VS160" (/dev/nst0).
11-Jun 08:48 squirrel-sd: Forward spacing Volume "tape-pool1-0001" to 
file:block 132:0.
11-Jun 09:00 squirrel-sd: End of Volume at file 137 on device "VS160" (/dev/nst0), Volume 
"tape-pool1-0001"
11-Jun 09:00 squirrel-sd: RestoreFiles.2007-06-11_09.41.47 Warning: acquire.c:237 Wrong 
Volume mounted on device "VS160" (/dev/nst0): Wanted tape-pool1-0002 have 
tape-pool1-0001
11-Jun 09:00 squirrel-sd: Please mount Volume "tape-pool1-0002" on Storage Device 
"VS160" (/dev/nst0) for Job RestoreFiles.2007-06-11_09.41.47
11-Jun 09:07 squirrel-sd: Ready to read from volume "tape-pool1-0002" on device 
"VS160" (/dev/nst0).
11-Jun 09:07 squirrel-sd: Forward spacing Volume "tape-pool1-0002" to 
file:block 0:1.
11-Jun 10:05 kestrel-fd: RestoreFiles.2007-06-11_09.41.47 Error: Uncompression 
error on file /brestore/C/Documents and Settings/liz/Application 
Data/Thunderbird/Profiles/79l2clkj.default/Mail/lightning.he.net/Inbox. 
ERR=Zlib data error
11-Jun 09:25 squirrel-sd: End of Volume at file 8 on device "VS160" (/dev/nst0), Volume 
"tape-pool1-0002"
11-Jun 09:25 squirrel-sd: End of all volumes.
11-Jun 10:24 packrat-dir: RestoreFiles.2007-06-11_09.41.47 Error: Bacula 2.0.3 
(06Mar07): 11-Jun-2007 10:24:40
 JobId:  6821
 Job:RestoreFiles.2007-06-11_09.41.47
 Client: kestrel-fd
 Start time: 11-Jun-2007 09:41:49
 End time:   11-Jun-2007 10:24:40
 Files Expected: 7,743
 Files Restored: 7,744
 Bytes Restored: 20,270,174,205
 Rate:   7884.2 KB/s
 FD Errors:  1
 FD termination status:  Error
 SD termination status:  OK
 Termination:*** Restore Error ***

11-Jun 10:24 packrat-dir: Begin pruning Jobs.
11-Jun 10:24 packrat-dir: No Jobs found to prune.
11-Jun 10:24 packrat-dir: Begin pruning Files.
11-Jun 10:24 packrat-dir: No Files found to prune.
11-Jun 10:24 packrat-dir: End auto prune.





-
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


Re: [Bacula-users] Using sd on Windows - possible to use UNC path or mapped drive as the Archive Location?

2007-06-12 Thread Jeff Dickens

Try replacing backslashes with forward slashes ?

Mike Lauwaert wrote:

Hi all --
 
I am trying to use the Windows servers which I know aren't completely 
supported but I have had decent successes with tem thus far.  My 
problem now is I am trying to use a network attached storage device 
which I have mapped as a persistent drive on the Windows 2003 box as 
my Archive Location.  I have tried every combination of UNC paths, to 
shared folders, to the mappeded network drive itself and no matter 
what I do I get the following on doing a "status storage":
 
Device status:

Device "NASFileStorage" is not open or does not exist.
 
and when trying to mount:
 
../../stored/dev.c:126 Unable to stat device Z:\Backups\Bacula: 
ERR=The system cannot find the path specified.
 
Device "NASFileStorage" requested by DIR could not be opened or does 
not exist.

3999 Device "NASFileStorage" not found or could not be opened.
 
My initial though was to do a junction/linkd/mountvol/subst to map the 
share to a local folder but no luck, doing that is not supported in 
Windows for network\shared drives.
 
Is using a network drive just not supported by Bacula or is there some 
creative way to mount one that I am just not thinking of?
 
Thanks,
 
Mike



Explore the seven wonders of the world Learn more! 
 




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


[Bacula-users] change FileSet name, where's the new filesetid?

2007-06-12 Thread Ralf Gross
[resent, because of sf problems with the mailing lists]

Hi,

just for confirmation: if I change the name of a FileSet (not the file
list), the next job will be a full backup? 

>From the docs:
Any change to the list of the included files will cause Bacula to automatically
create a new FileSet (defined by the name and an MD5 checksum of the
Include/Exclude contents). Each time a new FileSet is created, Bacula will
ensure that the next backup is always a Full save.

Where can I see the current FileSet ID? With 'llist jobs' I get the filesetids
of completed jobs, but where can I check the current filesetid?

I tried to get it from the db.

bacula=> select * from fileset;
 filesetid |fileset|  md5   | createtime
---+---++-
 1 | SMTCZB0003| K98Oq//ZH2plCHkth6UKkC | 2007-02-20 22:25:00
 2 | VU0EM003 Full | yB/6TU1SCB+HyTpYeFwiGD | 2007-02-20 22:25:01
 3 | Catalog   | z4/v/7/uQ+xwMkF9v//4VD | 2007-02-25 00:10:00
 5 | VU0EM003 Full | I3oXN/QmSUZEs2/H7i+C4C | 2007-02-25 16:22:49
 7 | Test-Set  | 4H+m384yU9+n7//wR6/KjA | 2007-03-01 08:43:47
(5 Zeilen)

I changed the 'VU0EM003 Full' FileSet to 'VU0EM003' and issued reload in
bconsole before. But I can't find the modified FileSet name or id in the db.
Show fileset returns the correct modified name.

* show fileset
...
FileSet: name=VU0EM003
...


Ralf

-
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


[Bacula-users] wx-console instalation

2007-06-12 Thread alejandro lencina

Hi,

I'm trying to get wx-console to work. I'm not an experienced user. So far
I've got to install wxWidgets 2.8 and I installed Bacula 2.0.2 with the
--enable-wx-console option in ./configure. I'm not so sure of what I should
be doing next. I went to src/wx-console and tried to do a make to compile
the source(I guess). Please, I would be thankful for any directions of what
to do or where to get information.

Gracias!

Using openSuSE10.2 if that's helpful
-
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


[Bacula-users] Bacula references needed

2007-06-12 Thread Kern Sibbald
Hello,

If you are a "large" organization (University, hospital, bank, 
corporation, ...) or a "big" name that uses Bacula and would be willing to 
act as a reference for a very small number of potential Bacula clients (1 or 
2 max), I would appreciate it if you would contact me directly (off-list if 
you wish) with your name, organization, title, rough Bacula installation 
size, and your telephone number and/or email address.  This could be of a 
*big* help getting Bacula into some larger institutions.  I would 
particularly appreciate a few French users, though this is not at all a 
requirement.

Best regards,

Kern

-
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


Re: [Bacula-users] volume retention period not working?

2007-06-12 Thread Chantal Rosmuller
Thanks, everything works now,
Chantal

-
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


Re: [Bacula-users] RunBeforeJob / RunRightBeforeWrite question

2007-06-12 Thread Rich
On 2007.06.08. 16:32, Steve Campbell wrote:
> I've been following the thread about waiting 40 minutes, and the 
> suggestion to perform a RunBeforeJob seems to be the current solution.
> 
> I have been running Mondo as a disaster recovery solution. It has a 
> function that comes in handy here whereas it will perform a task just 
> before writing it's ISO  images. I am guessing that the RunBeforeJob in 
> Bacula runs before even deciding what files it will back up. As I write 
> to a Samba mount which need awaken before writing to it, and if Bacula 
> takes a little bit of time to decide on and transfer files, is there a 
> way to nudge the mount just before any writes to it? I realize this is 

i can't access archives right now, sf server gives me error 500...
unless you found a better solution, quick and dirty hack would be a 
script which would be run before the job and would ls, touch or whatever 
you need every 10 or so seconds something on the mount.

> not the same situation, but I could buffer the writes to disk before 
> writing to the mount. (I seem to recall there is this buffering option 
> in Bacula).
> 
> Thanks for any advice.
> 
> Blackbeard
-- 
  Rich

-
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


Re: [Bacula-users] Bacula Status

2007-06-12 Thread Rich
On 2007.06.04. 15:46, Kern Sibbald wrote:

i know this is a bad thing to ask... but are there any estimates when 
the next stable version could be expected ?

i've been putting off touching a running system, so maybe i can drag it 
a bit longer and upgrade to the next stable (still running 1.36 ;) )
...
-- 
  Rich

-
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


Re: [Bacula-users] Dell LT-2000

2007-06-12 Thread [EMAIL PROTECTED]

Peter Eisch schreef:
> I am with NetBSD 3.1 as the host.
> 
> I like it.
> 
Hi Peter,

That's nice to hear.

Do you use LTO-2 or LTO-3?
What speeds are you getting?

--
Marc

-
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


Re: [Bacula-users] Bacula Status

2007-06-12 Thread Kern Sibbald
On Tuesday 12 June 2007 11:12, Rich wrote:
> On 2007.06.04. 15:46, Kern Sibbald wrote:
> 
> i know this is a bad thing to ask... but are there any estimates when 
> the next stable version could be expected ?

The end of June -- mid-August.

> 
> i've been putting off touching a running system, so maybe i can drag it 
> a bit longer and upgrade to the next stable (still running 1.36 ;) )

Ugh, a bit old :-)

> ...
> -- 
>   Rich
> 

-
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


[Bacula-users] bacula backing up to tape

2007-06-12 Thread Dave
Hello,
I've got a job that i want to back up to tape. It contains several Large 
files that i don't want under disk storage, but i forsee a need to 
periodically restore them say over the next year. I'm wondering the best 
configuration, this is what i have.

Job {
  Name = "backup_to_tape"
  Type = Backup
 Level = Incremental
  Messages = Standard
  Client = client1-fd
Storage = "Tape Drive"
  FileSet = "isos"
  Pool = Default
  Write Bootstrap = "/backup/bacula/tape.bsr"
  Priority = 10
}

Client {
  Name = client1-fd
  Address = 111.222.333.444
  FDPort = 9102
  Catalog = MyCatalog
  Password = "xxx"
  File Retention = 45 days
  Job Retention = 6 months
  AutoPrune = yes   # Prune expired Jobs/Files
}

Pool {
 Name = Default
  Pool Type = Backup
  Recycle = yes   # Bacula can automatically recycle 
Volumes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 365 days # one year
}

I've got the client resource already set up for this box, and it's retention 
periods are working fine for another job that it backs up. But the job and 
file retention periods for this job wouldn't work and i don't want to have 
to continuously adjust retention periods.
Thanks.
Dave. 


-
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


[Bacula-users] Unable to connect to MySQL server

2007-06-12 Thread Marc-Henri Fernandez
Hi,
I have set up bacula v. 1.38 with mysql and whan I want to start the
director deamon, I have an error :  Unable to connect to MySQL server
Database=bacula User=bacula
It is probably not running or your password is incorrect.
12-jun 17:50 bacula-dir ERROR TERMINATION

Now this is my bacula-dir.conf
Job {
 Name = "BackupCatalog"
 JobDefs = "DefaultJob"
 Level = Full
 FileSet="Catalog"
 Schedule = "WeeklyCycleAfterBackup"
 # This creates an ASCII copy of the catalog
 # RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup 
 "
 RunBeforeJob = "/etc/abcula/scripts/make_catalog_backup bacula bacula
doume"
# This deletes the copy of the catalog
 RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
 Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
 Priority = 11   # run after main backup
}

# Generic catalog service
Catalog {
 Name = MyCatalog
 dbname = bacula; DB Address = localhost ; user = bacula; password =
"doume"
}


What is wrong with me ?

Thanks a lot


___

Marc Henri Fernandez
Service Informatique
Tourisport company


[EMAIL PROTECTED]
ligne directe : 04 88 66 48 68 ? Portable : 06 09 54 77 90 
BP 109 ? 13321 Marseille Cedex 16

Voyagez avec des spécialistes
www.clubaventure.fr randonneés & voyages
href="www.sport-away.com">www.sport-away.com destination passion
href="www.femmes-du-monde.com">www.femmes-du-monde.com l'aventure au
féminin
href="www.66nord.com">www.66nord.com le spécialiste des terres polaires






-
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


[Bacula-users] problem with incremental jobs

2007-06-12 Thread Craig White
I have Friday's set to Full and Monday/Tuesday/Wednesday/Thursday set to
Incremental. I started last Thursday and it did a full backup because it
said that the 'No prior suitable Full backup found in catalog' - that
made sense. That backup completed.

Then Friday did a Full backup and that completed successfully.

Now Monday's backup should have been an incremental but indeed it did
another Full backup as you can see from the first 2 lines of the log...

11-Jun 20:00 SRV1: No prior Full backup Job record found.
11-Jun 20:00 SRV1: No prior or suitable Full backup found in catalog.
Doing FULL backup.
11-Jun 20:00 SRV1: Start Backup JobId 21,
Job=NightlySave.2007-06-11_20.00.00

which makes no sense to me...

appropriate parts of bacula-dir.conf

Job {
  Name = "NightlySave"
  Type = Backup
  Client = SRV1
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = DDS-4
  Messages = Standard
  Pool = Default
  Write Bootstrap = "/var/bacula/NightlySave.bsr"
  Max Start Delay = 22h
}
Schedule {
  Name = "WeeklyCycle"
  Run = Level=Incremental Pool=MondayPool Monday at 8:00pm
  Run = Level=Incremental Pool=TuesdayPool Tuesday at 8:00pm
  Run = Level=Incremental Pool=WednesdayPool Wednesday at 8:00pm
  Run = Level=Incremental Pool=ThursdayPool Thursday at 8:00pm
  Run = Level=Full Pool=WeeklyPool Friday at 1:00pm
}

Shouldn't it have run an 'incremental' backup last night?

-- 
Craig White <[EMAIL PROTECTED]>


-
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


Re: [Bacula-users] Dell LT-2000

2007-06-12 Thread Peter Eisch
On 6/12/07 8:42 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> 
> Peter Eisch schreef:
>> I am with NetBSD 3.1 as the host.
>> 
>> I like it.
>> 
> Hi Peter,
> 
> That's nice to hear.
> 
> Do you use LTO-2 or LTO-3?
> What speeds are you getting?
> 

20750.4 <> 27012.6 KB/s depending on the size of what's being written to
tape.  This is with the LTO-3.  The only place any compression is enabled is
in hardware on the drive.  This results in tapes that fill at just over 900G
and can be written between 9PM and 8AM.

peter


-
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


[Bacula-users] How to point bkp to a volume disk in another server

2007-06-12 Thread Sandro Mendes
Hello people, 
I need to save bkps in disk on another server. How I configure the Archive 
device in bacula-sd. conf?
I tried using Archive Device = "server\\g$\\Users\\Bkps by 
Bacula\\dgrosado" but it's not working. 
OBS: I'm using bacula on Windows. 

Tks!
Sandro



-
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


Re: [Bacula-users] Could not open Catalog MyCatalog

2007-06-12 Thread Arno Lehmann
Hi,

On 6/7/2007 4:25 AM, tamada(acornsoft) wrote:
> I checked mysql.c and recognized md->db_port and md-db_socket are NULL.
> I inserted these information as magic code (hard code).
> Now it seems to work.
> 
> I do not know why it could not have MySQL port number and socket file.
> For time being, I'll use this approach to understand Bacula in depth.

What's your catalog configuration in the DIR configuration? I suppose 
you don't have that information in there...

> Thanks.
> /Junzo
> P.S. I can not be a part of Bacula mailing list because Mailman error.

That should be fixed by now.

Arno

> - Original Message - 
> From: "tamada(acornsoft)" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, June 07, 2007 9:09 AM
> Subject: Could not open Catalog MyCatalog
> 
> 
>> I'm facing a trouble with the following message.
>> I very appreciate if someone could help me out.
>> OpenSuSE10.2 32 bit version
>> MySQL 5.0.41
>> Bacula 2.1.12 and 2.0.3 (I used these two versions and have the same 
>> message)
>>
>> I did not change any script files.
>> The command I used for compilations is :
>> ./configure --prefix=/usr/local/bacula --with-mysql 
>> --with-pid-dir=/usr/local/bacula/var/run
>>
>> I used three script for MySQL, i.e. grant_mysql_privileges, 
>> create_mysql_database and make_mysql_tables.
>>
>> pumpkin bacula/bacula-2.1.12> cd /usr/local/bacula/etc/
>> Directory: /usr/local/bacula/etc
>> pumpkin bacula/etc> ./bacula restart
>> Stopping the Bacula File daemon
>> Pool   Maxsize  Maxused  Inuse
>> NoPool  2560  0
>> NAME1300  0
>> FNAME   2561  0
>> MSG 5121  0
>> EMSG   10241  0
>>
>> Stopping the Bacula Storage daemon
>> Stopping the Bacula Director daemon
>>
>> Starting the Bacula Storage daemon
>> Starting the Bacula File daemon
>> Starting the Bacula Director daemon
>> bacula-dir: dird.c:873 Could not open Catalog "MyCatalog", database 
>> "bacula".
>> bacula-dir: dird.c:878 mysql.c:193 Unable to connect to MySQL server.
>> Database=bacula User=bacula
>> MySQL connect failed either server not running or your authorization is 
>> incorrect.
>> 07-Jun 08:50 bacula-dir ERROR TERMINATION
>> Please correct configuration file: /usr/local/bacula/etc/bacula-dir.conf
>>
>> Thank you in advance.
>> /Junzo
>>
> 
> 
> 
> -
> 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

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

-
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


Re: [Bacula-users] [Bacula-devel] Project for strong incremental backup assurance

2007-06-12 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andre Noll wrote:
> On 11:57, Kern Sibbald wrote:
> 
>> Robert quit the project, so currently there is no one assigned to it.
>>
>> I would be *extremely* happy to see someone interested in this project.
> 
> I sure am interested. But I'm not sure how much time I will be able
> to spend on it.
> 
>> If your offer is for algorithm help, please see Algorithms below. If
>> your offer above includes programming (i.e. C or C++ programmer), and
>> you are interested in working on it, please let me know (either off
>> list or if you wish copying the bacula-devel list) and we can discuss
>> the project.
> 
> The theoretical background is what I'm interested (and probably
> skilled) most, but programming in C is not a problem either. I'm not
> that familiar with C++ though.



>> Now:
>> - Reviewing my hash table code (particularly the hash function)  
>> src/lib/htable.h src/lib/htable.c
> 
> Will do.



Andre:

Not being a programmer myself (yes, I know, job title aside), I cannot
assist here. However, I am also very interested in this project and
appreciate any help you can provide moving this feature forward.

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
 |$&| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGbwtSmb+gadEcsb4RAtmeAJ97CIQD0nYWJPHnruJK2xkEbZKX+QCfVcjx
hvqWlfNcHiwICFnLgY/4uhM=
=6cKU
-END PGP SIGNATURE-
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:[EMAIL PROTECTED]
title:Systems Programmer III
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

-
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


[Bacula-users] bacula reads disk pages atomically? (bdb question)

2007-06-12 Thread Ross Boylan
The Berkeley Database apparently requires that hot backups read disk
pages atomically.  They note that most system cp commands do so; I've
searched the manual, FAQ, and newsgroups, but can't find how bacula
operates when reading a file.

Does anyone know if I can count on the reads taking whole pages?

More generally, any tips on bdb backups with bacula would be great.

I'm on Linux with a 2.6 kernel.

Thanks.
-- 
Ross Boylan  wk:  (415) 514-8146
185 Berry St #5700   [EMAIL PROTECTED]
Dept of Epidemiology and Biostatistics   fax: (415) 514-8150
University of California, San Francisco
San Francisco, CA 94107-1739 hm:  (415) 550-1062


-
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


Re: [Bacula-users] [Bacula-devel] Backup of databases and Exchange

2007-06-12 Thread Marc Cousin
On Saturday 09 June 2007 15:47:01 db wrote:
> Kern Sibbald wrote:
> > I don't foresee the Bacula project undertaking these
> > kinds of projects because the Bacula project is about Bacula not about
> > MySQL, PostgreSQL, Exchange, Oracle, DB2, ...
>
> Bacula is about Bacula? I thought Bacula was about backup?  Like it or
> not, but admins have to take backup of files AND systems. If Bacula
> fails to acknowledge this, then it can't provide a complete backup
> solution and that would be a shame.
> Yes you can script a solution to some database systems, but it would be
> nice to have a supported solution that was part of Bacula. Scripting a
> database backup still doesn't help exchange and other systems. The
> possibility to create an exchange module it here, but am I the only own
> that sees the need for it? Doesn't people want an alternative to systems
> like Symantec backup exec as a central complete backup system?

What it means is that bacula's purpose isn't to provide a unified way of 
backing up/restoring any software configuration you'll find, with a nice, 
friendly GUI with a big 'restore database' button.

Backing up Mysql and PostgreSQL for instance is quite easy, as they are well 
documented and easy to backup. But do you want to do sql dumps or binary 
backups, maybe you'd even like to backup database journals during the day ?

It's funny you take Exchange as an example, as the only supported way of 
backing up Exchange is, I think, NT Backup... And I'd say I trust MS on this 
one, as most Exchange backup agents (symantec included) we've tested suck big 
time. As it is, we backup exchange on disk with ntbackup, then through the 
network with bacula. We do the same with Oracle (RMAN, then bacula).
You know what ? We already did the same before with our proprietary software, 
as there were dedicated agents, but none of the worked as well (reliably) as 
ntbackup or RMAN... no one knows the internals of these softwares as well as 
their editors.

Anyway, what is really important, I think, is that :
- Developping a dedicated solution for one piece of software is a lot of work, 
and work you have to do again for each release... even some proprietary 
backup software have trouble following the pace
- Some APIs may even not be disclosed to open source, or with NDA or fees
- You'd be better off trusting the provided utility to backup each software : 
pg_dump for postgres, rman for oracle, ntbackup for exchange, etc ...

-
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


Re: [Bacula-users] Using sd on Windows - possible to use UNC path or mapped drive as the Archive Location?

2007-06-12 Thread Martin Simmons
> On Fri, 8 Jun 2007 16:57:27 -0400, Mike Lauwaert said:
>
> Hi all --
> 
> I am trying to use the Windows servers which I know aren't completely
> supported but I have had decent successes with tem thus far.  My problem now
> is I am trying to use a network attached storage device which I have mapped
> as a persistent drive on the Windows 2003 box as my Archive Location.  I
> have tried every combination of UNC paths, to shared folders, to the
> mappeded network drive itself and no matter what I do I get the following on
> doing a "status storage":
> 
> Device status:
> Device "NASFileStorage" is not open or does not exist.
> 
> and when trying to mount:
> 
> ../../stored/dev.c:126 Unable to stat device Z:\Backups\Bacula: ERR=The 
> system cannot find the path specified.
> 
> Device "NASFileStorage" requested by DIR could not be opened or does not 
> exist.
> 3999 Device "NASFileStorage" not found or could not be opened.
> 
> My initial though was to do a junction/linkd/mountvol/subst to map the share
> to a local folder but no luck, doing that is not supported in Windows for
> network\shared drives.
> 
> Is using a network drive just not supported by Bacula or is there some
> creative way to mount one that I am just not thinking of?

I think the problem is that Bacula runs as a Windows services, which cannot
access the network drives that you mount on the desktop.  I would expect UNC
paths to work provided the server allows access to the user that is running
the Bacula service (probably not the desktop user).

You might be able to run bacula-sd from the desktop instead of as a service.

You could also try mounting the network drive from a RunBefore script (using
NET USE), but I don't know if that will work and it will still have the issues
with access to the UNC path.

__Martin

-
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


[Bacula-users] Includes in .conf files

2007-06-12 Thread Kyle Marsh
Hi all,

I've seen allusions to being able to include files in bacula's
configuration files -- that would make my job of writing a script to
generate client and job entries much easier -- but I haven't been able
to find any references to it in the manual.  Is this possible?  If so
how?

Thanks,

~Kyle Marsh

-
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


Re: [Bacula-users] Includes in .conf files

2007-06-12 Thread Frank Sweetser
Kyle Marsh wrote:
> Hi all,
> 
> I've seen allusions to being able to include files in bacula's
> configuration files -- that would make my job of writing a script to
> generate client and job entries much easier -- but I haven't been able
> to find any references to it in the manual.  Is this possible?  If so
> how?

It's in the manual alright =)

http://www.bacula.org/rel-manual/Customizin_Configurat_Files.html

-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Network Engineer  |  is simple, elegant, and wrong. - HL Mencken
GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC

-
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


Re: [Bacula-users] Includes in .conf files

2007-06-12 Thread Kyle Marsh
Thanks all for your responses!  Dave, I'm writing a python script that
parses a text file containing information about the bacula install
(working directory, install directory, director name, etc.) and
another containing information about all the clients that I need to
back up.  It then creates a file with all the client and job
definitions that get included in the bacula-dir.conf file.  It also
spits out a bacula-fd.conf for each client as well as creates and
signs the certificates required for TLS.

At the moment it's a very inflexible script -- I assume my own
convention for the locations of the files and such.  When I get it
working, I'll see about parsing some command line arguments to tell it
where to look for files and where to put things, and possibly make it
a well behaved unix program (take input from stdin/send input to
stdout if nothing is specified, etc) but so far it reads from and
writes to specific files.

If you'd like I'll send you (or the list, if others are interested) an
e-mail when it's done.  Should be this week or the next.

~Kyle Marsh

On 6/12/07, Dave <[EMAIL PROTECTED]> wrote:
> Hi,
> Yes it is possible. Put an @ sign before the file name of the file you
> want to include.
> What kind of client/job generation script are you writing? I might be
> interested.
> Thanks.
> Dave.
>
> - Original Message -
> From: "Kyle Marsh" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, June 12, 2007 9:55 PM
> Subject: [Bacula-users] Includes in .conf files
>
>
> > Hi all,
> >
> > I've seen allusions to being able to include files in bacula's
> > configuration files -- that would make my job of writing a script to
> > generate client and job entries much easier -- but I haven't been able
> > to find any references to it in the manual.  Is this possible?  If so
> > how?
> >
> > Thanks,
> >
> > ~Kyle Marsh

-
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


Re: [Bacula-users] How to point bkp to a volume disk in another server

2007-06-12 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm guessing you don't read the mailing list, since someone asked this
question just hours ago. You might try searching the list archives in
general, as they are often helpful.

There is no way to do what you want to do, short of installing the
bacula-sd on the server that contains the storage. Is this not possible?

Sandro Mendes wrote:
> Hello people, 
> I need to save bkps in disk on another server. How I configure the Archive 
> device in bacula-sd. conf?
> I tried using Archive Device = "server\\g$\\Users\\Bkps by 
> Bacula\\dgrosado" but it's not working. 
> OBS: I'm using bacula on Windows. 
> 
> Tks!
> Sandro
> 
> 
> 
> -
> 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


- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
 |$&| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGb3zbmb+gadEcsb4RApyGAKCROTCvwVgTxJiZfnQXdwDscFGiwQCgybCb
WKO1+yeLd6BTSqCAGfebLgw=
=NGmr
-END PGP SIGNATURE-
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:[EMAIL PROTECTED]
title:Systems Programmer III
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

-
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


Re: [Bacula-users] change FileSet name, where's the new filesetid?

2007-06-12 Thread Ralf Gross
Ralf Gross schrieb:
> [resent, because of sf problems with the mailing lists]
> [...hey, the list is finally working again ;) ] 
> 
> just for confirmation: if I change the name of a FileSet (not the file
> list), the next job will be a full backup? 

The backup was upgraded to full, that's what I expected.
 
> Where can I see the current FileSet ID? With 'llist jobs' I get the filesetids
> of completed jobs, but where can I check the current filesetid?
> 
> I tried to get it from the db.
> 
> bacula=> select * from fileset;
>  filesetid |fileset|  md5   | createtime
> ---+---++-
>  1 | SMTCZB0003| K98Oq//ZH2plCHkth6UKkC | 2007-02-20 22:25:00
>  2 | VU0EM003 Full | yB/6TU1SCB+HyTpYeFwiGD | 2007-02-20 22:25:01
>  3 | Catalog   | z4/v/7/uQ+xwMkF9v//4VD | 2007-02-25 00:10:00
>  5 | VU0EM003 Full | I3oXN/QmSUZEs2/H7i+C4C | 2007-02-25 16:22:49
>  7 | Test-Set  | 4H+m384yU9+n7//wR6/KjA | 2007-03-01 08:43:47
> (5 Zeilen)
> 
> I changed the 'VU0EM003 Full' FileSet to 'VU0EM003' and issued reload in
> bconsole before. But I can't find the modified FileSet name or id in the db.
> Show fileset returns the correct modified name.

Looking at the psql output after the next backup happend, now there is a new
fileset in the list. VU0EM003, which is the one I changed before. The
createtime is the time the backup started. 

bacula=> select * from fileset;
 filesetid |fileset|  md5   | createtime
---+---++-
 1 | SMTCZB0003| K98Oq//ZH2plCHkth6UKkC | 2007-02-20 22:25:00
 2 | VU0EM003 Full | yB/6TU1SCB+HyTpYeFwiGD | 2007-02-20 22:25:01
 3 | Catalog   | z4/v/7/uQ+xwMkF9v//4VD | 2007-02-25 00:10:00
 5 | VU0EM003 Full | I3oXN/QmSUZEs2/H7i+C4C | 2007-02-25 16:22:49
 7 | Test-Set  | 4H+m384yU9+n7//wR6/KjA | 2007-03-01 08:43:47
 9 | VU0EM003  | I3oXN/QmSUZEs2/H7i+C4C | 2007-06-12 00:05:01
(6 Zeilen)


I'm still a bit confused why the new fileset wasn't created at the time I
changed the config and reloaded the daemon.

Ralf

-
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


Re: [Bacula-users] exabyte autochanger

2007-06-12 Thread Falk Sauer
Hi Maria,

On Wednesday 13 June 2007 writes Maria McKinley:
> I recently updated to version 1.38.11-8, and I am having a hard time
> getting my autochanger to work. I changed my bacula-sd.conf file so that
> there is now an Autochanger:
>
> Autochanger {
>Name = Exabyte
>Device = Drive-1
>Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>Changer Device = /dev/sg0
> }
>
> Device {
>Name = Drive-1
>Drive Index = 0
>Media Type = VXA-2
>Archive Device = /dev/st0
>LabelMedia = yes;  # lets Bacula label unlabeled media
>Random Access = Yes;
>AutomaticMount = yes;  # when device opened, read it
>RemovableMedia = yes;
>AlwaysOpen = yes;
>Autochanger = yes;
>Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> }
>
> This seems to work fine with btape auto command, but if I try to label
> from bconsole, I get the following:
>
> *label barcodes
> Automatically selected Storage: Exabyte
> Connecting to Storage daemon Exabyte at dinah:9103 ...
> 3306 Issuing autochanger "slots" command.
> Device "Exabyte" has 0 slots.
> No slots in changer to scan.
>
> Any idea why I'm getting this?

please make shure that your changer device has the correct permissions eg.:

 crw-rw root disk /dev/sg0

and for the potentially next problem ...
by your tapedrive device i'm unshure, i think this should /dev/nst0, i don't 
know how its correct on exabyte tapes.

Normally the /dev/st* device makes a automatic rewind after write, 
the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding 
device. You dosn't write wich OS you use, here are little differences between 
the OSes.

regards
   Falk


-
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


Re: [Bacula-users] store data on two storages at one time

2007-06-12 Thread Rich
On 2007.06.08. 11:15, Maik Derstappen wrote:
...
>>   
> hello Ryan,
> 
> thank for your answer.
> I the 2 Storages are 2 Servers which stores the data on harddisks.
> Just i need an solution to store the same data on more than one storage.
> And i don't want run 2 job for this. Because the filedaemon then read 
> the data twice for the same Backup.

if i understood you correctly, you have two servers with hdd storage and 
would like to replicate backups on both without running them twice.

which is also what i have :)

this would be ideally handled by a clustered bacula servers (a feature 
request i made recently) - but that probably won't appear anytime soon.

until then, your best bet probably would be to rsync changes between the 
servers.

> Any Idears for an nice solution?
> 
> regards Maik
...
-- 
  Rich

-
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