[Bacula-users] Excluding files and directories recursive

2011-11-04 Thread Thomas Schweikle
Hi!

I have defined:

FileSet {
  Name = bacula
  @/etc/bacula/clients/include/linux.inc
  @/etc/bacula/clients/include/fileset.exc
}

where linux.inc is:
  Include {
Options {
  signature = MD5
  xattrsupport = yes
  onefs = yes
}
File = \\|/bin/sh -c 'df -TlP | tail -n +2 | grep
\ext\\|reiserfs\\|ufs\\|xfs\\|zfs\ | grep -v \/BACKUP/\ | awk
\{print \\$7}\'
Exclude Dir Containing = .exclude
  }

and fileset.exc:
  Exclude {
File = /var/lib/bacula
File = /var/lib/mysql
File = /var/lib/nfs
File = /var/lib/postgresql
File = /var/lock
File = /var/run
File = /lib/init/rw
File = /BACKUP
File = /HOME
File = /home
File = /dev
File = /proc
File = /sys
File = /tmp
File = /.journal
File = /.fsck
  }


now, backing up bacula itself I get errors:
2011-11-04 01:10:09   bacula-fd JobId 8007:  Could not stat
/var/lib/postgresql/9.1/main/base/19190/27367: ERR=No such file or
directory

Since this is an excluded path /var/lib/postgresql I'd assume it
to be excluded, but it is included again by the script creating the
includes, leading to:

FileSet {
  Name = bacula
  Include {
Options {
  signature = MD5
  xattrsupport = yes
  onefs = yes
}
File = / /boot /var/lib/postgresql
Exclude Dir Containing = .exclude
  }
  Exclude {
File = /var/lib/bacula
File = /var/lib/mysql
File = /var/lib/nfs
File = /var/lib/postgresql
File = /var/lock
File = /var/run
File = /lib/init/rw
File = /BACKUP
File = /HOME
File = /home
File = /dev
File = /proc
File = /sys
File = /tmp
File = /.journal
File = /.fsck
  }
}

Any idea why /var/lib/postgresql is descended into?
And how do I exclude it the right way?


-- 
Thomas

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] webacula only giving back empty page

2011-03-06 Thread Thomas Schweikle
Am 05.03.2011 17:20, schrieb J. Echter:
 Am 05.03.2011 09:05, schrieb Thomas Schweikle:
 Am 04.03.2011 11:42, schrieb Jan Lentfer:
 On Fri, 04 Mar 2011 11:22:49 +0100, Thomas Schweikle t...@vr-web.de
 wrote:
 Am 03.03.2011 22:37, schrieb Jan Lentfer:
 Am 03.03.2011 22:30, schrieb Thomas Schweikle:
 /opt/webacula/install/db.conf:
 db_name=bacula
 db_name_sqlite=/var/bacula/working/bacula.db
 db_user=user
 db_pwd=xxx
 webacula_root_pwd=
 Mal nach Fehlermeldungen in den apache logs geschaut?
 Ja. Dort steht was von:
 [Fri Mar 04 10:44:43 2011] [error]\
   [client 79.229.116.15] PHP Warning:  include(Zend/Loader.php):\
   failed to open stream: No such file or directory in\
   /opt/webacula/html/index.php on line 45
 [Fri Mar 04 10:44:43 2011] [error]\
   [client 79.229.116.15] PHP Warning:  include(): Failed opening\
   'Zend/Loader.php' for inclusion (include_path='.:../library:..\
   /application/models/:../application/forms/:/usr/share/php') in\
   /opt/webacula/html/index.php on line 45
 [Fri Mar 04 10:44:43 2011] [error]\
   [client 79.229.116.15] PHP Fatal error:  Class 'Zend_Loader'\
   not found in /opt/webacula/html/index.php on line 47

 In /etc/php5/apache2/php.ini:
 include_path = /usr/share/php

 In /etc/php5/apache2/conf.d:
 This is an empty directory!!

 OK. I'd linked all files from /etc/php5/conf.d to
 /etc/php5/apache5/conf.d --- solved some problems. Now:

 Not Found
 The requested URL /webacula/auth/login was not found on this server.

 That is true: /opt/webacula/html/auth doesn't exist! Any idea? Broken?
 Den Pfad zum Zend im php.ini mit in include rein. Keine Ahnung wo das beim
 Debian/Ubuntu im Standard liegt.
 Bei mir sieht's im php.ini so aus:

 include_path =
 .:/usr/pkg/lib/php:/usr/local/lib/ZendFramework-1.11.3/library
 Ich hab es jetzt probiert, das in /etc/php5/apache2/php.ini direkt
 einzutragen. Der Pfad wird eigentlich in der Datei
 /etc/php5/apache2/conf.d/zend-framework.ini entsprechend ergänzt.

 Ein neues zend-projekt funktioniert auch.  Nach anlegen des Projekts

 zf create project zend-test

 und

 der entsprechenden Apache-Konfiguration:

 Alias /zend /opt/zend-test/public

 VirtualHost *:80
 Directory /opt/zend-test/public
 DirectoryIndex index.php
 Options -Indexes +FollowSymLinks
 AllowOverride Options

 Order allow,deny
 Allow from all
 /Directory

 Location /zend
 AuthType Kerberos
 AuthName Kerberos Login
 KrbMethodNegotiate On
 KrbMethodK5Passwd On
 KrbServiceName HTTP
 KrbAuthRealms XOMPU.DE
 Krb5KeyTab /etc/apache2/krb5.http
 require valid-user
 /Location
 /VirtualHost

 Kann die Webseite nach restart von apache2 aufgerufen werden. Ich
 hab' ganz langsam den Verdacht, dass webacula zur Zeit überhaupt
 nicht funktioniert, die Beschreibungen zum Einrichten völlig daneben
 sind und H.

 Es eistieren die Verzeichnisse
 - application
 - docs
 - library

 Die Verzeichnisse
 - data
 - html
 - install
 - languages

 Ich kann nur vermuten, das
 - public - html

 entspricht. Das wäre aber keine gute Idee, weil dann public auf html
 abgebildet werden müsste (was aber wohl durch exzessives nutzen von
 Rewrite passiert). In den Unterverzeichnissen fehlt so zimlich
 alles. Diverse Dateien, die in public vorhanden sind, fehlen in
 html. Dafür sind andere Dateien vorhanden.
 Auf mich wirkt das ganze, als ob jemand nur die Dateien, die er
 selber geschrieben hat eingepackt hätte und nicht das komplette
 Projekt...

 Ich werde es mal mit einem checkout probieren. Vielleicht ist dann
 dort alles was gebraucht wird enthalten ...
 anyone you talking with?
Am 05.03.2011 17:20, schrieb J. Echter:

-- 
Thomas


--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] webacula only giving back empty page

2011-03-05 Thread Thomas Schweikle
Am 04.03.2011 11:42, schrieb Jan Lentfer:
 On Fri, 04 Mar 2011 11:22:49 +0100, Thomas Schweikle t...@vr-web.de
 wrote:
 Am 03.03.2011 22:37, schrieb Jan Lentfer:
 Am 03.03.2011 22:30, schrieb Thomas Schweikle:
 /opt/webacula/install/db.conf:
 db_name=bacula
 db_name_sqlite=/var/bacula/working/bacula.db
 db_user=user
 db_pwd=xxx
 webacula_root_pwd=

 Mal nach Fehlermeldungen in den apache logs geschaut?
 
 Ja. Dort steht was von:
 [Fri Mar 04 10:44:43 2011] [error]\
   [client 79.229.116.15] PHP Warning:  include(Zend/Loader.php):\
   failed to open stream: No such file or directory in\
   /opt/webacula/html/index.php on line 45
 [Fri Mar 04 10:44:43 2011] [error]\
   [client 79.229.116.15] PHP Warning:  include(): Failed opening\
   'Zend/Loader.php' for inclusion (include_path='.:../library:..\
   /application/models/:../application/forms/:/usr/share/php') in\
   /opt/webacula/html/index.php on line 45
 [Fri Mar 04 10:44:43 2011] [error]\
   [client 79.229.116.15] PHP Fatal error:  Class 'Zend_Loader'\
   not found in /opt/webacula/html/index.php on line 47
 
 In /etc/php5/apache2/php.ini:
 include_path = /usr/share/php
 
 In /etc/php5/apache2/conf.d:
 This is an empty directory!!
 
 OK. I'd linked all files from /etc/php5/conf.d to
 /etc/php5/apache5/conf.d --- solved some problems. Now:
 
 Not Found
 The requested URL /webacula/auth/login was not found on this server.
 
 That is true: /opt/webacula/html/auth doesn't exist! Any idea? Broken?
 
 Den Pfad zum Zend im php.ini mit in include rein. Keine Ahnung wo das beim
 Debian/Ubuntu im Standard liegt.
 Bei mir sieht's im php.ini so aus:
 
 include_path =
 .:/usr/pkg/lib/php:/usr/local/lib/ZendFramework-1.11.3/library

Ich hab es jetzt probiert, das in /etc/php5/apache2/php.ini direkt
einzutragen. Der Pfad wird eigentlich in der Datei
/etc/php5/apache2/conf.d/zend-framework.ini entsprechend ergänzt.

Ein neues zend-projekt funktioniert auch.  Nach anlegen des Projekts

zf create project zend-test

und

der entsprechenden Apache-Konfiguration:

Alias /zend /opt/zend-test/public

VirtualHost *:80
Directory /opt/zend-test/public
DirectoryIndex index.php
Options -Indexes +FollowSymLinks
AllowOverride Options

Order allow,deny
Allow from all
/Directory

Location /zend
AuthType Kerberos
AuthName Kerberos Login
KrbMethodNegotiate On
KrbMethodK5Passwd On
KrbServiceName HTTP
KrbAuthRealms XOMPU.DE
Krb5KeyTab /etc/apache2/krb5.http
require valid-user
/Location
/VirtualHost

Kann die Webseite nach restart von apache2 aufgerufen werden. Ich
hab' ganz langsam den Verdacht, dass webacula zur Zeit überhaupt
nicht funktioniert, die Beschreibungen zum Einrichten völlig daneben
sind und H.

Es eistieren die Verzeichnisse
- application
- docs
- library

Die Verzeichnisse
- data
- html
- install
- languages

Ich kann nur vermuten, das
- public - html

entspricht. Das wäre aber keine gute Idee, weil dann public auf html
abgebildet werden müsste (was aber wohl durch exzessives nutzen von
Rewrite passiert). In den Unterverzeichnissen fehlt so zimlich
alles. Diverse Dateien, die in public vorhanden sind, fehlen in
html. Dafür sind andere Dateien vorhanden.
Auf mich wirkt das ganze, als ob jemand nur die Dateien, die er
selber geschrieben hat eingepackt hätte und nicht das komplette
Projekt...

Ich werde es mal mit einem checkout probieren. Vielleicht ist dann
dort alles was gebraucht wird enthalten ...
-- 
Thomas


--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] webacula only giving back empty page

2011-03-04 Thread Thomas Schweikle
Am 03.03.2011 22:37, schrieb Jan Lentfer:
 Am 03.03.2011 22:30, schrieb Thomas Schweikle:
 /opt/webacula/install/db.conf:
 db_name=bacula
 db_name_sqlite=/var/bacula/working/bacula.db
 db_user=user
 db_pwd=xxx
 webacula_root_pwd=

 Mal nach Fehlermeldungen in den apache logs geschaut?

Ja. Dort steht was von:
[Fri Mar 04 10:44:43 2011] [error]\
  [client 79.229.116.15] PHP Warning:  include(Zend/Loader.php):\
  failed to open stream: No such file or directory in\
  /opt/webacula/html/index.php on line 45
[Fri Mar 04 10:44:43 2011] [error]\
  [client 79.229.116.15] PHP Warning:  include(): Failed opening\
  'Zend/Loader.php' for inclusion (include_path='.:../library:..\
  /application/models/:../application/forms/:/usr/share/php') in\
  /opt/webacula/html/index.php on line 45
[Fri Mar 04 10:44:43 2011] [error]\
  [client 79.229.116.15] PHP Fatal error:  Class 'Zend_Loader'\
  not found in /opt/webacula/html/index.php on line 47

In /etc/php5/apache2/php.ini:
include_path = /usr/share/php

In /etc/php5/apache2/conf.d:
This is an empty directory!!

OK. I'd linked all files from /etc/php5/conf.d to
/etc/php5/apache5/conf.d --- solved some problems. Now:

Not Found
The requested URL /webacula/auth/login was not found on this server.

That is true: /opt/webacula/html/auth doesn't exist! Any idea? Broken?


-- 
Thomas


--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] webacula only giving back empty page

2011-03-03 Thread Thomas Schweikle
Hi!

I have installed WeBacula. All OK as far as I can see.
Zend-Framework seems accessible (at least phpinfo() tells about it
being used and loaded. But ...:

loading the main page only gives back an empty page: not even any
html. Nothing!

phpinfo() until I put just beyond these lines:

phpinfo(); // this is OK --- I'll get all infos!

// load all configuration sections and save to registry
$config = new Zend_Config_Ini('../application/config.ini');
$registry = Zend_Registry::getInstance();
$registry-set('config', $config);

phpinfo(); // not reached any more

Any idea how I could debug this?

All running on Ubuntu 10.04.2 LTS
Webacula installed to /opt/webacula

Apache config taken from webacula/install/apache/webacula.conf and
modified to match my site (btw: is there an Ubuntu package around?
Maybe with an Ubuntu repository somewhere?)


-- 
Thomas


--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] webacula only giving back empty page

2011-03-03 Thread Thomas Schweikle
Am 03.03.2011 21:30, schrieb Jan Lentfer:
Am 03.03.2011 21:07, schrieb Thomas:
 I have installed WeBacula. All OK as far as I can see.
 Zend-Framework seems accessible (at least phpinfo() tells
 about it
 being used and loaded. But ...:
 Did you also configure install/db.conf,
 application/config.ini and run the stuff
 install/mysql || install/postgresql etc?

All configured, all installed:
ii  php5-pgsql   5.3.2-1ubuntu4.7
ii  postgresql-client8.4.7-0ubuntu0.10.04
ii  postgresql-client-8.48.4.7-0ubuntu0.10.04
ii  postgresql-client-common 106ubuntu1
ii  libzend-framework-php1.10.3-0ubuntu1
ii  zend-framework   1.10.3-0ubuntu1
ii  zend-framework-bin   1.10.3-0ubuntu1

/opt/webacula/application/config.ini:
[general]
db.adapter = PDO_PGSQL
db.config.host = psql.example.org
db.config.username = user
db.config.password = xxx
db.config.dbname = bacula
def.timezone = Europe/Berlin
locale=de
bacula.sudo = /usr/bin/sudo
bacula.bconsole = /usr/bin/bconsole
bacula.bconsolecmd = -n -c /etc/bacula/bconsole.conf
head_title = webacula :: example.org
days_to_show_jobs_with_errors = 8

[timeline]
fontsize   = 10

[webacula]
email.to_admin = root@localhost
email.from = webacula@localhost

[feed]
feed_title = My Bacula backup server #1
feed_desc  = Description feed here

[layout]
path = default


/opt/webacula/install/db.conf:
db_name=bacula
db_name_sqlite=/var/bacula/working/bacula.db
db_user=user
db_pwd=xxx
webacula_root_pwd=


-- 
Thomas


--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] webacula only giving back empty page

2011-03-03 Thread Thomas Schweikle
Am 03.03.2011 21:30, schrieb Jan Lentfer:
Am 03.03.2011 21:07, schrieb Thomas:
 I have installed WeBacula. All OK as far as I can see.
 Zend-Framework seems accessible (at least phpinfo() tells
 about it
 being used and loaded. But ...:
 Did you also configure install/db.conf,
 application/config.ini and run the stuff
 install/mysql || install/postgresql etc?

List of relations
 Schema | Name  | Type  | Owner
+---+---+
 public | basefiles | table | bacula
 public | cdimages  | table | bacula
 public | client| table | bacula
 public | counters  | table | bacula
 public | device| table | bacula
 public | file  | table | bacula
 public | filename  | table | bacula
 public | fileset   | table | bacula
 public | job   | table | bacula
 public | jobhisto  | table | bacula
 public | jobmedia  | table | bacula
 public | location  | table | bacula
 public | locationlog   | table | bacula
 public | log   | table | bacula
 public | media | table | bacula
 public | mediatype | table | bacula
 public | path  | table | bacula
 public | pathhierarchy | table | bacula
 public | pathvisibility| table | bacula
 public | pool  | table | bacula
 public | status| table | bacula
 public | storage   | table | bacula
 public | unsavedfiles  | table | bacula
 public | version   | table | bacula
 public | webacula_client_acl   | table | bacula
 public | webacula_command_acl  | table | bacula
 public | webacula_dt_commands  | table | bacula
 public | webacula_dt_resources | table | bacula
 public | webacula_fileset_acl  | table | bacula
 public | webacula_job_acl  | table | bacula
 public | webacula_jobdesc  | table | bacula
 public | webacula_logbook  | table | bacula
 public | webacula_logtype  | table | bacula
 public | webacula_pool_acl | table | bacula
 public | webacula_resources| table | bacula
 public | webacula_roles| table | bacula
 public | webacula_storage_acl  | table | bacula
 public | webacula_users| table | bacula
 public | webacula_version  | table | bacula
 public | webacula_where_acl| table | bacula
(40 rows)

Looks like these scripts ran successfully!
I remember: I had to add -h psql.example.org -U bacula -W to the
psql-Command to make them work.


-- 
Thomas


--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and automatic labelling of volumes

2010-11-24 Thread Thomas Schweikle
Am 23.11.2010 22:37, schrieb Thomas Schweikle:
 Am 23.11.2010 21:50, schrieb John Drescher:

Looks like I've got it running now. At last it was a simple thing:
bacula did not have write permissions on the directory used for file
storage. After correcting the permissions it is working now!

Thanks for all the help!

-- 
Thomas



--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] tray-monitor and multiple clients

2010-11-24 Thread Thomas Schweikle
Hi!

I have tray-monitor set up to watch my bacula server:

On the server:
Console {
  Name = bacula-mon
  Password = XXX_MONDIRPASSWORD_XXX
  CommandACL = status, .status
}

Director {
  Name = bacula-mon
  Password = XXX_FDPASSWORD_XXX
  Monitor = yes
}

Director {
  Name = bacula-mon
  Password = XXX_SDPASSWORD_XXX
  Monitor = yes
}


On one client:
Director {
  Name = ub0001-mon
  Password = XXX_CLIENTFDPW_XXX
  Monitor = yes
}


And for the tray-monitor:
Monitor {
  Name = bacula-mon
  Password = XXX_MONDIRPASSWORD_XXX
  RefreshInterval = 5 seconds
}

Director {
  Name = bacula-mon
  DIRport = 9101
  address = bacula
}

Client {
  Name = bacula-fd
  Address = bacula
  FDPort = 9102
  Password = XXX_FDPASSWORD_XXX
}

Storage {
  Name = bacula-sd
  Address = bacula
  SDPort = 9103
  Password = XXX_SDPASSWORD_XXX
}


Client {
  Name = ub0001-fd
  Address = auth
  FDPort = 9102
  Password = XXX_CLIENTFDPW_XXX
}


Now starting tray-monitor gives:
ub0001:~% bacula-tray-monitor -c tray-monitor.conf
Gtk-Message: Failed to load module gnomesegvhandler:
libgnomesegvhandler.so: cannot open shared object file: No such file
or directory

(bacula-tray-monitor:21436): Gtk-WARNING **: GtkSpinButton: setting
an adjustment with non-zero page size is deprecated
Connecting to Director bacula.local:9101
Opened connection with Director daemon.
Connecting to Client bacula.local:9102
Opened connection with File daemon.
Connecting to Storage bacula.local:9103
Opened connection with Storage daemon.
Connecting to Client ub0001.local:9102
24-Nov 21:40 tray-monitor JobId 0: Fatal error: Director and File
daemon passwords or names not the same.
Please see
http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION00376
for help.
Connecting to Client ub0001.local:9102
24-Nov 21:40 tray-monitor JobId 0: Fatal error: Director and File
daemon passwords or names not the same.
Please see
http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION00376
for help.

As far as I can interpret the documentation this seems correct.
Could anyone have a look at it and prove it?

Thanks in advance!


PS: the given URL for FAQs isn't available any more: page not found
error. :-)

-- 
Thomas



--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula and automatic labelling of volumes

2010-11-23 Thread Thomas Schweikle
Hi!

I have set up bacula with automatic labelling of volumes:

In bacula-dir.conf:
Storage {
  Name = File
  Address = bacula
  SDPort = 9103
  Password = 
  Device = FileStorage
  Media Type = File
}

Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes
  recycle Volumes
  AutoPrune = yes
  Volume Retention = 10 days
  Maximum Volume Bytes = 4G
  Maximum Volume Jobs = 1
  Maximum Volumes = 100
  LabelFormat = T${JobName}
}

In bacula-sd.conf:
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /srv/bacula
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

Automatic creation of volumes then labelling them fails. Bacula
hangs waiting for operator intervention --- this is not what I
expected it to do. I'd like to have:

- Start a job,
- look for an empty volume, if none there, create one, than label it
- push it into the pool, mount it.
- backup the jobs data.
- after finishing keep the volume with this one job arround
- delete it when retention time has come and there is
  not enough space for a new volume.

After reading the fine manual , goggling around, not finding
anything helpful: does anyone have a setup doing what I expect mine
to do, running and is willing to share?

I'd appreciate any help!

-- 
Thomas


--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and automatic labelling of volumes

2010-11-23 Thread Thomas Schweikle
Am 23.11.2010 20:55, schrieb Blake Dunlap:
 Bacula does not act like you wish, you could script parts of this to
 accomplish what you want, but you cannot do it natively.

Which parts does bacula do, which does it not?

 On Tue, Nov 23, 2010 at 12:53, Thomas Schweikle t...@vr-web.de
 [...]
 
 Automatic creation of volumes then labelling them fails. Bacula
 hangs waiting for operator intervention --- this is not what I
 expected it to do. I'd like to have:
 
 - Start a job,
 - look for an empty volume, if none there, create one, than label it
 - push it into the pool, mount it.
 - backup the jobs data.
 - after finishing keep the volume with this one job arround
 - delete it when retention time has come and there is
  not enough space for a new volume.
 
 After reading the fine manual , goggling around, not finding
 anything helpful: does anyone have a setup doing what I expect mine
 to do, running and is willing to share?
 
 I'd appreciate any help!

-- 
Thomas


--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and automatic labelling of volumes

2010-11-23 Thread Thomas Schweikle
Am 23.11.2010 21:50, schrieb John Drescher:
 Which parts does bacula do, which does it not?

 - Start a job,
 - look for an empty volume, if none there, create one, than label it
 
 It looks here for an appendable volume. Although if all of your
 volumes are use volume once /max jobs =1 it will only find empty ones.

Does this mean bacula does not automatically create volumes as
needed if storage is File? Would be a nice feature. Else: is there
a way to mass create volumes? I've calculated about 70 volumes per
host I've to backup ...

 - push it into the pool, mount it.
 
 You probably already want the volume in the correct pool. There is a
 scratch pool that can pull new volumes out of into your pool but I am
 not sure that will help or do what you want.

This would be enough --- if volumes recycled are relabelled. If they
keep there label I'd have to look for a way remove labels from
volumes not used any more.

 - backup the jobs data.
 
 usually no problem if the last step succeed.
 
 - after finishing keep the volume with this one job arround
 
 this is the default operation/

:-)

 - delete it when retention time has come and there is
  not enough space for a new volume.
 
 Bacula does not delete volumes when the retention period expires or it
 runs out of space. It will purge volumes when there are no available
 volumes in the pool and one is needed at the moment for a job. If you
 want different functionality than the default you will have to script
 this.

I'd do it. But at first bacula would have to run and use volumes as
necessary. Most of the time bacula shall run without any
intervention by anyone!

-- 
Thomas




--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] What about clients not turned on at scheduled time?

2010-02-03 Thread Thomas Schweikle
On 03.02.2010 01:45, Thomas Schweikle wrote:
 Hi!
 
 I've noticed clients not turned on at job schedule time to not carry
 out a given job. The job is just cancelled.
I found a way to reschedule the job until it can be done:

  Reschedule On Error = yes
  Reschedule Interval = 30m
  Reschedule Times = 47

This would try 24h to execute the job, trying all 30 minutes

But this is more a workaround than really of use. I'd like to have
something like on connect: if the client fd connects some
configured time interval later the job begins. Is this somehow possible?

-- 
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] File-Storage and automatic labeling andvolumecreation

2010-02-02 Thread Thomas Schweikle
On 02.02.2010 01:01, Heitor Faria wrote:

[...]

 For automatic recycling is also recomendable that you use one of these
 volume usage limiters: *Volume Use Duration or **Maximum Volume Jobs*.
 When the volume reach one of these limiters it will become used - an
 than the reetention time starts to count.
Was done already :-)


-- 
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] What about clients not turned on at scheduled time?

2010-02-02 Thread Thomas Schweikle
Hi!

I've noticed clients not turned on at job schedule time to not carry
out a given job. The job is just cancelled.

How do I have to set up a client I do not know when it is online the
next time to carry out the latest jobs not done so far? AKA I want
the client to run the last full backup if it wasn't run, if it was,
the last differential backup and it that ran too, the last scheduled
incremental backup.

There are laptops not all times connected, some PC not turned on or
already turned off again.

-- 
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] File-Storage and automatic labeling andvolumecreation

2010-02-02 Thread Thomas Schweikle
On 02.02.2010 00:46, Timo Neuvonen wrote:
 Thomas Schweikle t...@vr-web.de kirjoitti viestissä 

[...]

Does this mean volumes aren't created automatic? I do have to create
them manually?
 
 At first, I didn't notice there was a recycle=yes option in the conf.
I was sure I had put it in ;-)

 The volumes can be (if configured so) created automatically, until the 
 configured limit for maximum number of volumes is reached. Limiting the 
 number (and the size) of the volumes as you did is a good idea on file 
 storage, because otherwise you would run out of disk space sooner or later. 
 But the automatic creation will stop when the maximum number is reached.
I have limited the number of allowed volumes, volume size, volume
jobs. Volume retention is set to an useful value (14d). Automatic
pruning is on.

  AutoPrune = yes
  Volume Retention = 20 days
  Maximum Volumes = 14
  Maximum Volume Jobs = 6
  Maximum Volume Bytes = 4.3g

 Now you have specified recycle=yes, which means the existing volumes will 
 then be used again starting from the oldest expired one - so the old ones 
 will not be deleted but re-used. What this means, is that your volume names 
 that include (old) timestamps will become very misleading since they'll 
 contain data that is newer than the volume name could make one think. But no 
 technical problem there so far.
That is an argument. I have changed volume labelling to use simple
counts. Might be less confusing.

  Label Format = ${Client}_Inc_${Count}

 So, is the problem now that
 - not a single volume gets created (there aren't 20 volumes yet)
 -- if so, then there is a bug in the conf I didn't notice
This is the case: not a single volume is created automatically. I
have to create the volume manually. But I do not see any error I've
made with my configuration.

 or
 - no new volume names appear after there already exists 20 volumes?
 -- if so, this is propably due to possible misunderstanding I tried to 
 explain above
Since there are no volumes at first start with this configuration,
the limit isn't reached jet. The volume shall be created.

 btw, maybe you are aware of this, but any changes to pool definition need to 
 be taken into use with update pool command in bconsole.
I have tried this too, but it did not change anything. Volumes are
just not created. I can create them manually, but this is not really
an option :-(

Maybe it could help if one has a running configuration with
autocreating volumes as needed? Maybe it is more easy to compare my
configuration against a working one?!

-- 
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] File-Storage and automatic labeling andvolumecreation

2010-02-02 Thread Thomas Schweikle
On 03.02.2010 01:36, Thomas Schweikle wrote:
 On 02.02.2010 00:46, Timo Neuvonen wrote:
 Thomas Schweikle t...@vr-web.de kirjoitti viestissä 
 
 [...]
 
Does this mean volumes aren't created automatic? I do have to create
them manually?
 
 At first, I didn't notice there was a recycle=yes option in the conf.
 I was sure I had put it in ;-)
 
 The volumes can be (if configured so) created automatically, until the 
 configured limit for maximum number of volumes is reached. Limiting the 
 number (and the size) of the volumes as you did is a good idea on file 
 storage, because otherwise you would run out of disk space sooner or later. 
 But the automatic creation will stop when the maximum number is reached.
 I have limited the number of allowed volumes, volume size, volume
 jobs. Volume retention is set to an useful value (14d). Automatic
 pruning is on.
 
   AutoPrune = yes
   Volume Retention = 20 days
   Maximum Volumes = 14
   Maximum Volume Jobs = 6
   Maximum Volume Bytes = 4.3g
 
 Now you have specified recycle=yes, which means the existing volumes will 
 then be used again starting from the oldest expired one - so the old ones 
 will not be deleted but re-used. What this means, is that your volume names 
 that include (old) timestamps will become very misleading since they'll 
 contain data that is newer than the volume name could make one think. But no 
 technical problem there so far.
 That is an argument. I have changed volume labelling to use simple
 counts. Might be less confusing.
 
   Label Format = ${Client}_Inc_${Count}
 
 So, is the problem now that
 - not a single volume gets created (there aren't 20 volumes yet)
 -- if so, then there is a bug in the conf I didn't notice
 This is the case: not a single volume is created automatically. I
 have to create the volume manually. But I do not see any error I've
 made with my configuration.
 
 or
 - no new volume names appear after there already exists 20 volumes?
 -- if so, this is propably due to possible misunderstanding I tried to 
 explain above
 Since there are no volumes at first start with this configuration,
 the limit isn't reached jet. The volume shall be created.
 
 btw, maybe you are aware of this, but any changes to pool definition need to 
 be taken into use with update pool command in bconsole.
 I have tried this too, but it did not change anything. Volumes are
 just not created. I can create them manually, but this is not really
 an option :-(
 
 Maybe it could help if one has a running configuration with
 autocreating volumes as needed? Maybe it is more easy to compare my
 configuration against a working one?!
Automatically it works after again dropping the database and
starting all over with the same configuration files.

I'd say thanks for all the help on this topic!


-- 
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tool to test a Fileset what passes?

2010-02-01 Thread Thomas Schweikle
On 01.02.2010 02:24, Glen Barber wrote:
 Hi Thomas,

[...]

 Have a look at the 'estimate' command.
 
 http://www.bacula.org/en/dev-manual/Bacula_Console.html

Yes, not exactly what I was looking for, but OK. Thanks!

-- 
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] File-Storage and automatic labeling and volume creation

2010-02-01 Thread Thomas Schweikle
Hi!

I am trying to set up bacula to aoutmaticly creating and labeling a
volume for backup. AFAIK I did everything to make it happen, but it
does not work as expected ...

In bacula-dir.conf:
JobDefs {
  Name = kiwiJob
  Type = Backup
  Level = Incremental
  Client = kiwi-fd
  FileSet = Win-Drive-C
  Schedule = WeeklyCycle
  Storage = File
  Messages = Standard
  Pool = kiwi-pl
  Priority = 10
}

Job {
  Name = kiwi
  Client = kiwi-fd
  JobDefs = kiwiJob
  Write Bootstrap = D:\\Bacula\\Work\\kiwi.bsr
}

Storage {
  Name = File
  Address = kiwi
  SDPort = 9103
  Password = B9yXCsk5ZfbwlUnj+rC1AbmnbNNh4vcjiyEQpu92G1js
  Device = FileStorage
  Media Type = File
  LabelMedia = yes
}

Pool {
  Name = kiwi-pl
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 365 days
  Maximum Volumes = 20
  Maximum Volume Bytes = 4.3G
  Label Format = ${Client}-${Level}-${year}-${month}-${Day}-${hour}
}


In bacula-sd.conf:
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = D:\\Backup
  LabelMedia = yes
  Random Access = Yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
}


and at job start time:
01-Feb 17:05 kiwi-sd JobId 1: Job kiwi.2010-02-01_17.05.10_02
waiting. Cannot find any appendable volumes.
Please use the label  command to create a new Volume for:
Storage:  FileStorage (D:\Backup)
Pool: kiwi-pl
Media type:   File


How do I have to set up bacula to automaticly create a volume, label
it, then use it, until it is old enough to be pruned and deleted?
Ideally with no user interaction at all?

-- 
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] File-Storage and automatic labeling and volumecreation

2010-02-01 Thread Thomas Schweikle
On 01.02.2010 20:14, Timo Neuvonen wrote:
 Thomas Schweikle t...@vr-web.de kirjoitti viestissä 
 news:hk76l8$o2...@ger.gmane.org...
 Hi!

 I am trying to set up bacula to aoutmaticly creating and labeling a
 volume for backup. AFAIK I did everything to make it happen, but it
 does not work as expected ...

[...]

 Volumes won't get deleted automatically. If you don't want to recycle 
 existing volumes, you have to delete old ones manually, or make a script to 
 do it. Deleting might require both deleting from the catalog (since you have 
 a limit of 'maximum volumes' which would prevent creating new ones) and also 
 deleting the actual files. I think there were some discussion about that 
 kind of script recently (in January?) in this list.

Does this mean volumes aren't created automatic? I do have to create
them manually?

 Btw, if this isn't your private-only system, it would be wise to remove the 
 passwords from the conf files you post to public list.

It is a private test setup. It will be migrated to real as son as
all works as expected. --- Passwords will be changed then :-)


-- 
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Tool to test a Fileset what passes?

2010-01-31 Thread Thomas Schweikle
Hi!

Is there a tool available to test a given file-set for backup which
files from a system pass and which are ignore?

I'd like to test file-sets before I apply them to the server maybe
not backing up files that should have been backed up ...!


-- 
Thanks in advance
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Anyone successfully set up bacula server on Windows?

2010-01-26 Thread Thomas Schweikle
Hi!

I have set up bacula server on windows. But: there is an error reported
constantly:

26-Jan 05:19 bacula-dir ERROR TERMINATION
Please correct configuration file: C:\Bacula\bacula-dir.conf
26-Jan 05:31 bacula-dir JobId 0: Fatal error: Could not open Catalog
MyCatalog, database baculabd.
26-Jan 05:31 bacula-dir JobId 0: Fatal error:
/home/kern/bacula/k/bacula/src/cats/mysql.c:195 Unable to connect to
MySQL
server.
Database=baculabd User=bacula
MySQL connect failed either server not running or your authorization is
incorrect.
26-Jan 05:31 bacula-dir ERROR TERMINATION
Please correct configuration file: C:\Bacula\bacula-dir.conf


in bacula-dir.conf I have:

Catalog {
Name = MySQL
dbname = baculabd
user = bacula
password = 
DB Address = localhost
DB Port = 3306
DB Socket = C:/MySQL/mysql.soc
}


MySQL is configured to allow connections on port 3306. It is no
problem to
access the bacula-db from a command line:

C:\mysql -u bacula -h localhost -P 3306 -p baculadb
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.41-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.

mysql show tables;
++
| Tables_in_baculadb |
++
| basefiles  |
| cdimages   |
| client |
| counters   |
| device |
| file   |
| filename   |
| fileset|
| job|
| jobhisto   |
| jobmedia   |
| location   |
| locationlog|
| log|
| media  |
| mediatype  |
| path   |
| pool   |
| status |
| storage|
| unsavedfiles   |
| version|
++
22 rows in set (0.19 sec)

mysql show grants;
+
| Grants for bac...@localhost
+
| GRANT USAGE ON *.* TO 'bacula'@'localhost'\
IDENTIFIED BY PASSWORD '***'
| GRANT ALL PRIVILEGES ON `baculadb`.* TO 'bacula'@'localhost'
+
2 rows in set (0.01 sec)


bacula-dir immediately bails out after being started. Any idea what's
going wrong here?


-- 
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Anyone successfully set up bacula server on Windows?

2010-01-26 Thread Thomas Schweikle
On 26.01.2010 17:05, Piotr Gbyliczek wrote:
 Hi
 
 First thing I would check, is if it wouldn't run correctly if you will 
 correct 
 wrong database name in bacula config : you have there baculabd instead 
 baculadb. 
 

OK. Thanks! I've overlooked this detail ... :-(
I've corrected it, now it works!

-- 
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Anyone successfully set up bacula server on Windows?

2010-01-26 Thread Thomas Schweikle
On 26.01.2010 20:11, Bruno Friedmann wrote:
 Dear Thomas,
 It's quite simple to resolve as all is in the log.
 The default scripts and configs which reference the catalog database
 look for a resource in config called MyCatalog
 yours is call MySQL so you have two choice. Renaming your catalog resource or 
 adjust the different configuration
 inside your bacula-dir.conf to point to MySQL name.

I hab all @catalog@ changed to MySQL, but not all database
references where defined as @catalog@. I've corrected them all and
now the error message has changed. bacula-dir can connect to the
database.

Gona play around further, hopefully getting it to work this night!


-- 
Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users