Re: [Bacula-users] Understanding Priority

2005-10-04 Thread Phil Stracchino
Ross Boylan wrote:
> The description of the priority option for Job says that
> "If by chance Bacula treats a lower priority first, then it will run
> before your high priority jobs.  To avoid this, start any higher
> priority a few seconds before the lower ones."
> 
> I don't understand what good priorities do then.  If I schedule the
> jobs in the sequence I want them to run, that alone should determine
> their sequence (at least if I follow the recommendation for one job at
> a time).  The  discussion seems to imply that priority is relevant
> both with and without concurrent jobs.

I believe the answer is that the prioritizing code doesn't actually work
as well as it is intended to.

A suggestion here, Kern:  Since the Director already "preschedules"
upcoming jobs, could it not sort and queue them in order of priority at
that time?


> Second, is there any easy way to vary the scheduling of jobs by a few
> seconds, other than writing a completely new schedule?  This seems a
> maintanence headache.

Not really, no.  I simply stagger job starts by a minute or more in
their Schedules.  (Actually, all my jobs but one run at the same
priority; the remaining job is my Catalog backup, which starts both at a
lower priority AND an hour later to let the other jobs finish first.)


> Finally, the language is a bit unclear, though I think I know what's
> intended.  For "treats" I read "processes," and I insert "jobs" after
> "start any higher priority".

I believe that's a good read.  I'd never spotted that myself; it's good
to have fresh eyes on the documentation at times.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bconsole questions

2005-10-04 Thread Phil Stracchino
John wrote:
> When you run list jobs, what does the JobStatus mean?  I've seen C, f,
> T, and R.
> 
> *list jobs
> +---+---+-+--+---+--++---+
> | JobId | Name  | StartTime   | Type | Level | JobFiles
> | JobBytes   | JobStatus |
> +---+---+-+--+---+--++---+
> |14 | Dora  | -00-00 00:00:00 | B| I |0
> |  0 | C |
> |41 | Bugs  | 2005-10-02 01:22:06 | B| F |0
> |  0 | f |
> |56 | Dora  | 2005-10-03 11:02:57 | B| I |  169
> |  1,292,401,241 | T |
> |68 | Bugs  | 2005-10-03 11:36:42 | B| F |0
> |  0 | R |
> +---+---+-+--+---+--++---+

It means how the job ended, basically.  At ome time I wrote a crude
skeleton of a patch to report these in plain English, but the way my
patch was done didn't lend itself well to internationalization, and the
patch also got mislaid at some point and didn't make it into a release.
 I'll look at it again at some point, hopefully fairly soon, and redo it.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bconsole questions

2005-10-04 Thread Phil Stracchino
Arno Lehmann wrote:
> The list is the following:
> 
> +---+-+
> | JobStatus | JobStatusLong   |
> +---+-+
> | C | Created, not yet running|
> | R | Running |
> | B | Blocked |
> | T | Completed successfully  |
> | E | Terminated with errors  |
> | e | Non-fatal error |
> | f | Fatal error |
> | D | Verify found differences|
> | A | Canceled by user|
> | F | Waiting for Client  |
> | S | Waiting for Storage daemon  |
> | m | Waiting for new media   |
> | M | Waiting for media mount |
> | s | Waiting for storage resource|
> | j | Waiting for job resource|
> | c | Waiting for client resource |
> | d | Waiting on maximum jobs |
> | t | Waiting on start time   |
> | p | Waiting on higher priority jobs |
> +---+-+
> 
> 
> this is from the table Status in baculas catalog, by the way.

OK, so THAT part made it in   (The table needs internationalization
though.)



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bconsole questions

2005-10-04 Thread Phil Stracchino
Arno Lehmann wrote:
> I guessed that was part of your patch, but wasn't sure.
> 
> Concerning internationalization - I don't think that results codes are
> the most important thing, but it's probably the easiest part to change...

Yes, we can just load the table from a language-specific file during
installation.

-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Understanding Priority

2005-10-04 Thread Phil Stracchino
Ross Boylan wrote:
> Given jobs scheduled at different times, does priority add anything to
> when they are run?
> 
> Or is it more that if they are at the same time, priority will
> "usually" affect execution order, but you can't count on it 100%?

If they're scheduled to run at different times, the first job scheduled
starts first, period.

If they're scheduled to run at the same time, the higher-priority job is
SUPPOSED to always start first.  It doesn't always happen this way.  We
need to find out why.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Maximum Storage Jobs Question

2005-10-04 Thread Phil Stracchino
Brad Pinkston wrote:
> I have set the Maximum Concurrent Jobs on my director and storage daemons, but
> still keep getting this error...
> 
> mail1.2005-10-04_20.15.37 is waiting on max Storage jobs
> 
> Is more info needed?  I'm using backup to disk.  If it gets more complicated 
> I'd
> like to post config files and my requirements to see if anyone has any
> reccomendations for optimization.

This means you aren't allowing enough job concurrency on your Storage
device, and some jobs are waiting for others to complete before they can
run.

When backing up to tape, there are reasons why in some configurations
you want to limit Bacula to one job at a time per tape storage device.
When backing up to disk, this is not effectively much of an issue.

To fix your problem, edit your bacula-sd.conf file to set concurrency to
the maximum number of jobs you ever expect to want to have running at
one time.  Then edit the bacula-dir.conf file and set the Director's
concurrency to the number you just put in bacula-sd.conf, PLUS the
maximum number of consoles you expect to have open at one time.  Then
restart Bacula.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore to a different client

2005-10-05 Thread Phil Stracchino
[EMAIL PROTECTED] wrote:
> I want to do a restore from a backup of one server to another.
> More specific:
> 
> I backup server "a" and want to restore the files of server "a" 
> to server "b" in path /tmp/restore (for example).
> 
> If tried it with wx-console and looked into the docu, but I didn't find
> a way to do this.
> 
> Is it possible to do such a restore ?

Certainly it is.  Just run a Restore job, from the bconsole or
gnome-console rather than the wx-console, and modify the Job options,
select Client, and change it to the Client you want.  The new machine
must, of course, already be a defined Bacula client.

-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bconsole questions

2005-10-05 Thread Phil Stracchino
Russell Howe wrote:
> Phil Stracchino wrote:
> 
>>Arno Lehmann wrote:
>>
>>
>>>I guessed that was part of your patch, but wasn't sure.
>>>
>>>Concerning internationalization - I don't think that results codes are
>>>the most important thing, but it's probably the easiest part to change...
>>
>>Yes, we can just load the table from a language-specific file during
>>installation.
> 
> 
> Or just add an extra attribute to the tuple, say, "language" and include
> that when looking up the string. It would bloat the table somewhat, but
> it'd be insignificant compared to the size of the average catalog db, I
> expect.
> 
> select statuslong from statustext where code = 'C' and lang = 'en';
> 
> or something..

Indeed, that would work too.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bconsole questions

2005-10-05 Thread Phil Stracchino
John wrote:
> I built bacula 1.36.3 from source, and that table was not created when I
> installed it.  What version are you using?

Then probably Arno applied the patch when I first sent it out, but it
never made it into mainstream.  I'll regenerate the patch in a better
way once I get my development machine updated.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] pool confusion

2005-10-05 Thread Phil Stracchino
Michael Koppelman wrote:
>> First I tried this:
>>
>> Schedule {
>>   Name = "CWAnnualCycle1"
>>   Run = Level=Full Pool=Full on jan 1 at 1:05
>>   Run = Level=Full Pool=Full on jul 1 at 1:05a
>>   Run = Level=Differential Pool=Diff monthly on 1 at 1:05
>>   Run = Level=Incremental Pool=Inc daily at 1:05
>> }
>>
>> But when the job ran it went to Pool=Default, the last thing I  would
>> have expected.
>>
>> Then I tried this:
>>
>> JobDefs {
>>   Name = "CWJob"
>>   Type = Backup
>>   Level = Incremental
>>   Client = neutron-fd
>>   FileSet = "www"
>>   Storage = File
>>   Messages = Standard
>>   Pool = Full
>>   Full Backup Pool = Full
>>   Incremental Backup Pool = Inc
>>   Differential Backup Pool = Diff
>>   Priority = 10
>> }


What is the actual Job definition?  JobDefs sets defaults for jobs that
include that particular JobDefs record, and would normally not include
Client or Level, especially if you're setting those from the Schedule.
Did you remember to actually reference your JobDefs AND Schedule in the
Job definition?



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Multiple storage locations

2005-10-06 Thread Phil Stracchino
Mr. Bush wrote:
> Is it possible to have a single director and multiple storage devices in
> various locations?  We have two locations that we are currently backing
> up and our remote office only has a T1 -- backing up 6GB of data takes a
> lengthy period of time at night.  What I was wondering is if we have a
> diretor in our corporate office and a storage device/server configured
> in our remote office I can have the backups go local rather than being
> pushed over the T1 at night.  Is it possible to have multiple storage
> devices and you define your pools, storage volumes in the director and
> backups take place in this fashion?

I see no reason why that would not work, if properly configured.  The
only thing is to make certain all machines involved have routable IP
addresses to each other and the correct ports open.  (If in doubt, just
open 9101-9103 between all machines running Bacula daemons.)


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Multiple storage locations

2005-10-06 Thread Phil Stracchino
Mr. Bush wrote:
> Phil,
> 
> Thank you for the reply.  Just another quick question
> 
> On the remote storage server that I configure, do I have to also enable
> the director on this server or do I configure the server with the
> default settings, but never enable the director on the second server? 
> My main director was configured with the following:
> 
> : ./configure --enable-largefile --with-mysql
> 
> Would I run the same on the second server and then point the director,
> etc. to the master server mysql database?

You do not need to run a second Director on the second server if you
don't want to.  A single Director can control multiple SDs.  However, I
don't know if anyone has tried having a Director control a remote
storage daemon across the public Internet.  If you do it that way, you
should probably use stunnel.

On the other hand, there's also nothing to stop you from running a whole
second Director and Catalog over there.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Can Bacula Read Tapes Created With BackupExec?

2005-10-06 Thread Phil Stracchino
Drew Tomlinson wrote:
> I suspect the answer to my questions is "no" but wanted to ask before I
> give up on a batch of tapes created by BackupExec 8.x.  Apparently,
> BackupExec is so "stupid" that if it encounters an error on any tape of
> a multiple tape volume set, it can't restore anything past the error. 
> For example I had used BackupExec to backup about 40 GB of data to 2 GB
> DDS tapes.  When I attempted to restore after a drive failure, BE
> encountered an error on tape 5 and refused to continue.  I called their
> help(less) desk and was told that that's just the way it is and
> hopefully I learned my lesson to not create backup jobs that span
> multiple volumes in the future.  This is when I switched to Bacula for
> future backups.
> 
> So anyway, Bacula has been running great and meeting my needs (a big
> THANK YOU to all the contributors!).  But before I throw out that old
> box of tapes I was just wondering if Bacula could help me recover any
> data from them.

Bacula does not, to the best of my knowledge, read tapes in other
formats than its own.  A "foreign" tape will not have a Bacula label,
and bacula will be unable to mount it.

-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] back up to remote drive

2005-10-07 Thread Phil Stracchino
Steven Meres wrote:
> New to bacula and need some help.  We need to have regular daily backups
> of all of our cad job files and our office files mirrored to an off-site
> computer that stores the information on its local hard drive.  Currently
> both our file server and the off site computer are windows machines.  We
> are moving the server to a dual opteron linux box (debian sarge).  On
> the linux machine I have set up two partitions /job_files and
> /office_files where current files are stored.  Can I use bacula to make
> back-ups of these partitions to the off-site windows machine?

I had to read this a couple of times before I figured out the real
question.  The short answer to your question is that Windows is
supported by Bacula only as a client, so you cannot use either a local
or remote Windows machine to run a Bacula storage daemon.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Tape Handling questions

2005-10-07 Thread Phil Stracchino
Daniel Holtkamp wrote:
> Hi !
> 
> Firstoff: My company is still willing to support a developer that
> implements data migration into bacula.
> 
> I have a few questions considering tape handling.
> 
> Let`s say i have a Tape that gets changed every day. Three servers
> backup to it (spooling of course) and i have set Maximum Volume Jobs to
> 3 for that pool.
> 
> Is there a way to automatically eject the tape after the last server
> finished spooling his data ? Maybe with the Run After Job directive ? I
> could do it by hand with the console but thats not what i want.
> 
> What happens if one backup fails and i remove the tape so that maximum
> volume jobs is not fulfilled ... will it ask for the old tape on the
> next backup or will it happily use the new tape that has been inserted ?


You know, it occurs to me that this is one of possibly several good
reasons for implementing (as a future enhancement) a ConsoleCommand or
ConsoleScript directive in Admin jobs, to allow embedding console
commands in an admin job without having to use a Run... directive to
start a console with input piped from a script to send commands back to
the Director.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] back up to remote drive

2005-10-07 Thread Phil Stracchino
Steven Meres wrote:
> This is our current set-up:  small engineering firm with 12 windows xp
> clients accessing a windows xpfile server.  The file server has a large
> repository of autocad files that needs to be backed up regulary.  We
> currently have the files backed up nightly to an off-site computer (windows
> 98) that is connected via our lan.
> 
> Our goal is to replace the windows xp file server with a linux file server
> running samba.  We still want the files to be backed up nightly to the
> offsite computer.
> 
> I have the linux file server running currently and have samba configured and
> running.  All the windows clients can 'see' the linux machine, and the linux
> machine can 'see' the windows machine.
> 
> My question is how do I get bacula to 'see' the off-site machine.  Would it
> be easier if I were to turn the off-site machine into a linux machine as
> well?

That would make it very much easier.  You would be able to simply put a
remote file daemon on the outside Linux machine and connect to it via
stunnel.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] auth error

2005-10-08 Thread Phil Stracchino
RYAN vAN GINNEKEN wrote:
> I am having problems with bacula I read the FAQ section about auth and
> triple check my names and passwords but still cannot get past this error
> at the end of this mail please help here are my conf files

Here's the relevant parts:

> bacula-dir.conf

> Storage {
>  Name = File
> # Do not use "localhost" here
>  Address = tokyo.computerking.ca# N.B. Use a fully
> qualified name here
>  SDPort = 9103
>  Password = "fbGObw8iBkTbXdjVEgP/iKuSUt8eVS5MnuGl+W/ffZGg"
>  Device = FileStorage
>  Media Type = File
> }


> bacula-sd.conf

> Storage { # definition of myself
>  Name = tokyo-sd
>  SDPort = 9103  # Director's port
>  WorkingDirectory = "/var/db/bacula"
>  Pid Directory = "/var/run"
>  Maximum Concurrent Jobs = 20
> }
> 
> #
> # List Directors who are permitted to contact Storage daemon
> #
> Director {
>  Name = tokyo-dir
> #  Password = "GJ5/XaOg03IaRS8NqeC0qUXC4nKE9/zElTkf/8+KkT+/"
> Password = "22vu22"
> }

You have two problems here.  The first is that your Director and your SD
have different ideas about what the SD is called.  The SD thinks it's
called tokyo-sd, but the Director thinks it's called File.  The second
problem is that your Director thinks it should be contacting that SD
using the password "fbGObw8iBkTbXdjVEgP/iKuSUt8eVS5MnuGl+W/ffZGg", but
the SD expects the Director to use "22vu22".


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with installing client

2005-10-10 Thread Phil Stracchino
Viktorija Almazova wrote:
> Hello,
> 
> am trying to install bacula 1.36.3, but without success. Before i didn't have 
> such
> problems. When i am typing make or 
> gmake i get following:
> 
> g++   -L../lib -L../findlib -o bacula-fd filed.o authenticate.o backup.o 
> estimate.o
> filed_conf.o heartbeat.o job.o restore.o 
> status.o verify.o verify_vol.o \
>-lacl -lz   -lfind -lbac -lm -lpthread  
> /usr/bin/ld: cannot find -lgcc_s
> collect2: ld returned 1 exit status
> gmake[1]: *** [bacula-fd] Error 1
> gmake[1]: Leaving directory 
> `/export/storage0/usr/dist/bacula-1.36.3/src/filed'


This looks like a gcc configuration problem.  Have you been able to
successfully compile other C++ executables on this machine?



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore Problems

2005-10-11 Thread Phil Stracchino
Danie Theron wrote:
> Hi , sorry for the long post :)
> 
> Wanted to do a test restore , and it seems either my catalog is doing
> funny things , or I messed up in the Pool defs :
> 
> Now , correct me if I'm wrong , but shouldn't it use the latest full ,
> diff , as well as ALL the incr vols?

No.  A Restore should use the latest Full, the latest Differential, and
Incrementals written since that Differential, and ONLY those -- and only
as many of those Incrementals as is necessary to get the latest version
of each changed file.  That's the entire point of Differentials:  that
you DON'T have to restore every Incremental in the catalog.

-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] BartPE for WinNT/Win2K

2005-10-12 Thread Phil Stracchino
MaxxAtWork wrote:
> Hello,
> 
> I'm already using bacula to keep backup of some Unix servers.
> Now I was thinking about extending its usage to create
> bare metal recovery procedures for some Windows workstations.
> 
> I read on the bacula documentation about the solution with BartPE kit,
> and I understood that I'd need a Win 2003/XP to create the .iso file.
> However what is not clear to me is whether is possible to use it (together
> with bacula) to backup & restore old Win NT/2K.
> Did anybody try that?

The BartPE method supports only XP.  As far as I know, the only way to
do a bare-metal recovery on an NT/2K system is to boot the system from a
Linux CD such as Knoppix, mount the disk, and perform a raw backup of
the Windows partition, then restore the same way when it needs restoring.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Need some hints

2005-10-12 Thread Phil Stracchino
Christian Reiss wrote:
> Problem 1:
> *NO* client is online 24/7 or even at foreseeable times. Thus, my
> question: I made a small ping-script that pings the host in question.
> Because it is "ping", it exits with !=0 on unreachable, thus, the
> backup will never commence. I also added "Rerun Failed Levels" and
> "Reschedule On Error" as well as "Reschedule Interval = 15m". My
> understanding is this: On a backup job, the server pings the client.
> If the client is down, the ping fails and so does the job, which,
> because it failed (Reschedule On Error) it is to be rescheduled in
> 15 minutes from now, for an unlimited retries until the host comes
> up again. Thus, a (not-so-elegant but) working solution for my
> problem?


You can also approach this problem by providing a script by which
clients can initiate their own backups using a restricted Console.

I think Kern covered the other questions.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Question regarding the Catalog

2005-10-12 Thread Phil Stracchino
Yu Safin wrote:
> is it appropriate to backup the catalog after I run my weekly (full
> data) for each client or do I do it just once at the end?
> My intuition is telling me run it once after all the clients are
> backed up.  I am just curious to see what other people are doing.

I would do it just once after completion.  To do it after each client is
just wasteful of time and space.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Job w/ multiple clients?

2005-10-12 Thread Phil Stracchino
Bob Kryger wrote:
> Job w/ multiple clients?
> Can it be done in bacula?

No.  One Job, one Client.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] LTO1 and Bacula?

2005-10-12 Thread Phil Stracchino

I'm just curious to know whether anyone already has a HP Ultrium-1 LTO1
drive working with Bacula.  If you do, I'd be curious to see your
configuration for it.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] write error

2005-10-13 Thread Phil Stracchino
Julien Cigar wrote:
> Hello,
> 
> sometimes I have "write error" messages during my full backup (on tapes) :
> 
> 12-Oct 18:44 phoenix-sd: BebifFullBackup.2005-10-12_06.00.00 Error:
> block.c:552 Write error at 15:111 on device /dev/st0. ERR=Input/output
> error.
> 12-Oct 18:44 phoenix-sd: BebifFullBackup.2005-10-12_06.00.00 Error:
> Error writing final EOF to tape. This tape may not be readable.
> dev.c:1213 ioctl MTWEOF error on /dev/st0. ERR=Input/output error.
> 
> any idea what could be the reason to this ? I'm quite sure the problem
> is not the tapes ...

You don't mention what type of tape device.  Did you run btape test?


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] write error

2005-10-13 Thread Phil Stracchino
Julien Cigar wrote:
> Thanks for replying
> 
> The tape is:
> 
> phoenix:/var/backups# cat /proc/scsi/scsi
> Attached devices:
> Host: scsi0 Channel: 00 Id: 01 Lun: 00
>  Vendor: SONY Model: SDX-500C Rev: 010f
>  Type:   Sequential-AccessANSI SCSI revision: 02
> 
> and the controller is:
> 
> phoenix:/var/backups# cat /proc/scsi/aic7xxx/0
> Adaptec AIC7xxx driver version: 6.2.36
> Adaptec 2940 Ultra SCSI adapter
> aic7880: Ultra Wide Channel A, SCSI Id=0, 16/253 SCBs
> Allocated SCBs: 5, SG List Length: 102
> 
> I runned the btape test and it was successfull
> 
> What is strange is that I get this message for about one backup on ten
> and not with the same tape ... (I thought first that it was a defect
> tape ... but no)

Did you use the cap command to list tape capabilities?  Did you run a
fill test to ensure that Bacula can fill up a tape and write on to the
next?  There are several capabilities that are crucial for Bacula.

Do all backups fill a tape, or does this occur only when you completely
fill a tape?


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] write error

2005-10-13 Thread Phil Stracchino
Julien Cigar wrote:
>> Did you use the cap command to list tape capabilities?  Did you run a
>> fill test to ensure that Bacula can fill up a tape and write on to the
>> next?  There are several capabilities that are crucial for Bacula.
> 
> 
> I runned all the tests which are in the documentation and they completed
> successfully.
> What is the 'cap' command you are talking about ... ?

Run btape, and type 'help'.  It'll show you all the commands, including
this one:

  caplist device capabilities

>> Do all backups fill a tape, or does this occur only when you completely
>> fill a tape?
> 
> it occurs randomly, sometimes after 10go, sometimes at the end, ...

I think it's going to require more information to isolate it.  Have you
used the drive with other software and verified that it works properly?


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Job w/ multiple clients?

2005-10-13 Thread Phil Stracchino
Dean Waldow wrote:
> This discussion relates to a question or an idea for bacula use with
> many clients.  For some linux programs, config files are sometimes being
> organized as nested folders.   The current method of a single
> configuration file for each (dir, sd, and fd) seems very reasonable.The
> dir.conf file may get pretty big when one would be trying to use bacula
> with 25-50+ clients.   However, when the number of clients grows up to
> numbers like suggested above I start to wonder about a folder based
> alternative or an 'include /etc/bacula/dir/jobs/*' idea.  Each client
> could have a separate file for it client specific info (job etc...).  
> Bacula-dir would read in the standard dir.conf and then append any text
> data in a file in a given or specified folder. Perhaps it is just a
> preference to deal with one big text file or many small text files...
> 
> I hate to suggest something I don't have the skills to implement but it
> was something I have been wondering about. Our science dept is thinking
> of using bacula for 40+ faculty computers and that got me wondering. 

There is already a facility to include individual per-job files into the
configuration using the @filename syntax, if you want to do it this way.
 This ought to meet most inclusion needs.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Job w/ multiple clients?

2005-10-13 Thread Phil Stracchino
Bob Kryger wrote:
> Hmm. Bummer.  So what you're telling me is that for the 50 boxes I have
> I'll need to set up 50 different jobs? And then I'll have to kick off
> each one separately, sequentially? Or is there some additional mechanism
> that I'm missing, that handles the scheduling the jobs?

If you have 50 clients, you define 50 jobs, yes.  You can use JobDefs
records to set up all the common data for the jobs, then each client's
Job just needs to reference that JobDefs record and set any specific
options it needs.

You CAN run all the jobs manually, but the settings for each job include
a reference to a Schedule resource that tells when that job should be
run and at what level.  Once it's all set up, the Director handles
everything for you except switching tapes (and you may never need to
manually do even that, if you have an autochanger and a robotic tape
library).



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] help about bacula

2005-10-13 Thread Phil Stracchino
[EMAIL PROTECTED] wrote:
> hi, my name is luis from Ecuador i need you help, i want to know who can i
> encripter password bacula director and bacula client, in the file
> configuration.
> 
> please help...

If I understand your question correctly, the answer is that you don't
need to.  The random passwords generated at install time are just that:
randomly generated passwords, and nothing more.  However, you can use
whatever you want as Bacula passwords.

1 is a valid (though possibly inadvisable) password.
bandersnatch is a valid password.
"This is a valid password", including the quotes, is a valid password.
For that matter, so is "This is not my password."

The thing to remember is that these passwords are never sent across the
network in clear.  So, while the initial passwords generated when you
install Bacula LOOK encrypted, they are not in fact encrypted, and don't
have to be encrypted; they're just random strings.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: help about bacula

2005-10-14 Thread Phil Stracchino
Timo Neuvonen wrote:
>>need to.  The random passwords generated at install time are just that:
>>randomly generated passwords, and nothing more.  However, you can use
>>whatever you want as Bacula passwords.
>>
> 
> A further question: are passwords set by random only installations made from
> tarball and compiled by myself, or does an install from a pre-compiled rpm
> binary package (or some other package) also provide unique passwords? Or are
> they by default all the same for all the installations from the same
> package? All the documentation is very much based on source tarball install.

Actually, having never installed from a binary package, I don't know.

The safe procedure, and what you should always do, is assign your own
passwords.  The random generation procedure is there simply so that even
people who don't understand that part have SOMETHING, and with some
expectation that it's not the same as everyone else's.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] hey guy's whats this..

2005-10-14 Thread Phil Stracchino
Paul Burton wrote:
> Does anyone know what this is ???
> 
> 4-Oct 13:00 orinoco-dir: ERROR in authenticate.c:187 UA Hello from
> client:10.10.1.18:36131 is invalid. Len=-720899

Looks like you're trying to connect from a machine behind one firewall,
to a machine with an RFC1918 non-routable address behind another
firewall, without any kind of tunnel between them, right?

You cannot connect to an RFC1918 addfress at a remote site.  You need to
establish a tunnel between the two machines using stunnel, ssh, OpenVPN
etc, or forward the correct ports on the firewall.

-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backupstrategies with Bacula

2005-10-14 Thread Phil Stracchino
Achim Schmidt [Bacula] wrote:
> Hi all,
> 
> I've a question relating backupstrategies and the posibilities to build
> those with bacula.
> 
> in general i like to do the following:
> 
> - all backup's will be written to diskspaces (or lets say storage A)
> - all data, older than a given time will be moved from storage A to
> storage B)
> - after an other given time those data will be moved from storage B to
> storage C (ie. Tape)
> 
> 
> After looking to the doc's at this time I dont see how I could do this
> with bacula. Do you know any solutions ?

This is what Bacula calls migration.  It's planned, but not yet
implemented.  Scheduled to be done soon, I think.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem ERROR Backing UP

2005-10-14 Thread Phil Stracchino
Michael Reith wrote:
> Any idea how I fix this:
> 
> 14-Oct 03:21 archie-dir: gibson.gfed.net.2005-10-14_01.05.02 Fatal
> error: sql_ge
> t.c:282 sql_get.c:282 query SELECT
> VolSessionId,VolSessionTime,PoolId,StartTime,
> EndTime,JobFiles,JobBytes,JobTDate,Job,JobStatus,Type,Level,ClientId
> FROM Job WH
> ERE JobId=4 failed:
> database disk image is malformed

I believe it's trying to tell you your catalog database has become
corrupted.  Assuming you've been backing up your catalog, I suggest
dropping the database, recreating it, and restoring it from your most
recent backup using bscan and bextract.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Some issues while trying to setup bacula environment

2005-10-14 Thread Phil Stracchino
Bart Verwilst wrote:
> Greetings!
>  
> I'm trying to setup a Bacula to back up a remote server. I'm going to try and 
> explain my current setup and ultimate goal ;)


> Now, how do i proceed to automate the tape naming and such? When i created a 
> volume on bconsole with the add command, then tried to run a backup, it 
> nagged that the tape had the wrong label, and to insert a tape with another 
> name.. But it should just automatically overwrite the existing ones.. :$
>  
> I don't fully get the naming.. Should i manually give all 8 tapes a name, and 
> then add them through bconsole with the same names? But the naming i want 
> them to have is dynamic ( Label Format = "Test-$Day$Month$Year" ), so it'll 
> nag again that i don't have the correct named tape present, and to insert 
> it... :$


There is no mechanism for automatically deleting and relabelling tapes.
 I suggest just naming all your tapes once, numerically, and using them
in rotation.  If you need to restore something, Bacula will tell you
which tape it needs anyway; the whole point of an automated backup
system with a catalog database is that it keeps track of things like
this for you.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] WEB Interface to Bacula

2005-10-14 Thread Phil Stracchino
Yu Safin wrote:
> is there any WEB Interface to Bacula that would do some or all of what
> you can do with ./bconsole for restores?
> Our servers don't have any "X" but they run Apache.

There is not at this time any Bacula web administration GUI.  I believe
several people are working on creating one.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Some issues while trying to setup bacula environment

2005-10-14 Thread Phil Stracchino
Bart Verwilst wrote:
> Op vrijdag 14 oktober 2005 20:18, schreef Phil Stracchino:
> 
>>>I don't fully get the naming.. Should i manually give all 8 tapes a name,
>>>and then add them through bconsole with the same names? But the naming i
>>>want them to have is dynamic ( Label Format = "Test-$Day$Month$Year" ),
>>>so it'll nag again that i don't have the correct named tape present, and
>>>to insert it... :$
>>
>>There is no mechanism for automatically deleting and relabelling tapes.
>> I suggest just naming all your tapes once, numerically, and using them
>>in rotation.  If you need to restore something, Bacula will tell you
>>which tape it needs anyway; the whole point of an automated backup
>>system with a catalog database is that it keeps track of things like
>>this for you.
> 
> 
> Oh, that explains a lot of my worries :d Is there a way to script this? Like 
> when somebody inserts a tape, and then starts a shellscript that asks for the 
> name, and labels it for him?

Um, no, you're still thinking in terms or relabelling your tapes every
time you use them.  You CAN do this, but there's no point and it's wasteful.

> Secondly, is it better to have 1 big pool of 7 tapes, each with a 
> "Test-$Day$Month$Year" kind of label?, or per dag 1 tape, with correct label 
> ofcourse?

Uh, there isn't really a difference in what you've said.  All your tapes
need to be in a Pool.

However, rather than trying to keep them labelled with the date you
intend to use them on, try just labelling them in order and let Bacula
cycle through them.  Otherwise you'll be relabelling tapes every day for
basically no reason.


> Will bacula automatically unload the current tape if it has a different 
> label, 
> and load the correct one if it's in the same pool? I mean, will it know like 
> "ah, tape 2 is currently loaded, but it has a label of "Test-12102005", but i 
> need "Test-14102005", which is in slot 5, let's load this one instead to do 
> the backup. ? :d

With an autochanger, yes, it will automatically unload the loaded tape
if necessary, and load the first appendable tape in the correct pool for
that job.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DLT 40/80GB never reaches 40GB

2005-10-17 Thread Phil Stracchino
Anwar Ahmad wrote:
> Hi All,
> 
> I have this problem where I've got a mix of 20/40GB and 40/80GB DLT
> tapes that are in 1 pool configured to backup using 1 tape drive. The
> problem is, all of them seem to be acting like 20/40GB tapes including
> the higher capacity ones. I've not been able to get the 40/80GB tape to
> store even remotely near 40GB let alone the compressed capacity of 80GB.
> I was wondering whether anyone had similar problems before...
> 
> The funny thing is, I've got a another pool that uses another tape drive
> that all backup correctly. Most backup are close to around 68-72GB,
> which I believe is fine. I've configured both pools & devices similarly
> but don't know why 1 only backs up to around 34GB (acting like a 20/40).
> Both tape drives were bough at the same time and are identical models.
> Is the mix of tapes causing the problem?
> 
> They are currently listed as /dev/nst0 and /dev/nst1 respectively. Is
> there any configuration files in outside of bacula-dir that I need to
> configure or perhaps in Linux system files perhaps, although I don't
> recall any configuration files other than the bacula conf files where
> done back during the initial setup.

This may be a silly question, but ..

You've stated you have a mixture of DLT1 (20/40GB nominal) and DLT2
(40/80GB nominal) tapes.  Are your drives DLT1 or DLT2?  A DLT1 drive
will only get 20/40GB capacity from a DLT2, DLT3 or even DLT4 tape.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] LTO drive - End Of Volume error

2005-10-18 Thread Phil Stracchino
David Raine wrote:
> Hi list,
> 
> Am totally new to bacula and have installed v1.37.41 from CVS. When I
> use the btape command and try to run "test" I get this message
> immediately and no other tests are performed. :
> 
> then write 1000 records and an EOF, then rewind,
> and re-read the data to verify that it is correct.
> 
> This is an *essential* feature ...
> 
> 18-Oct 14:58 btape: btape Fatal error: End of Volume "" at 0:0 on device
> "LTO-A (/dev/st0)
>   (part_size=0,free_space=0, free_space_errno=0, errmsg=).
> btape: btape.c:791 Error writing block to device.
> 
> The bacula-sd.conf device entry is shown below:
> 
>  Device {
> Name = LTO-A
> Media Type = LTO
> Archive Device = /dev/st0
> LabelMedia = yes;
> Random Access = no;
> AutomaticMount = yes;
> RemovableMedia=yes;
> AlwaysOpen = no;
> }
> 
> The device is a Seagate LTO-1 drive. /proc/scsi/scsi lists it as:
> 
> Host: scsi6 Channel: 00 Id: 00 Lun: 01
>Vendor: SEAGATE  Model: ULTRIUM06242-XXX Rev: 1536
>Type:   Sequential-AccessANSI SCSI revision: 03

My new LTO1,
Host: scsi1 Channel: 00 Id: 08 Lun: 00
  Vendor: HP   Model: Ultrium 1-SCSI   Rev: E0AV
  Type:   Sequential-AccessANSI SCSI revision: 03

is working fine with this config:


Device {
  Name = Ultrium-LTO1
  Media Type = LTO1
  Archive Device = /dev/nst1
  Removable Media = yes
  RandomAccess = no
  Autochanger = no
  Backward Space Record = yes
  Automatic Mount = yes
  Offline On Unmount = yes
  Always Open = yes
  Close on Poll = yes
  Volume Poll Interval = 1m
}

and the following mt tweaks:

/etc/rc.d/rc.M:/bin/mt -f /dev/nst1 stsetoptions can-bsr
/etc/rc.d/rc.M:/bin/mt -f /dev/nst1 defblksize 0



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] retention for each job?

2005-10-18 Thread Phil Stracchino
Andreas Jellinghaus wrote:
> Hi,
> 
> retention times are client specific, as far as I
> can see. however I have a client with two filesets
> and two backup jobs. the first runs nightly and
> needs to be kept for a month only, the other one
> runs monthly, but needs to be kept for months.
> 
> can I somehow set the retention time for each job?
> so far I get errors (1.36.2/debian) and can set
> the retention time only for the client in the config
> file. maybe any tricks or workarounds?
> 
> guess I can configure the longer retention time,
> and then use sql to find the jobs which can be
> expired early and use some console command to
> forefully purge those jobs and files so the tape
> can be recycled. would that work? is there a better
> way?

One assumes these jobs run to different Pools.  The correct way to do
this, certainly, is to use two divverent Pools with retention set
differently for each Pool.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Question about Bacula tape handling.

2005-10-18 Thread Phil Stracchino
Erik P. Olsen wrote:
> Replying to myself! I have now seen that this conclusion is wrong. I
> haven't been testing Bacula for quite some time and yet the tape error
> has again shown its ugly face. Perhaps it's a hardware problem? Anyway,
> I apologise for having accused Bacula for this problem and I shan't
> bother this mailing list with this tape problem anymore.

It does sound like a hardware problem, yes.  Hope you're able to find it.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] LTO drive - End Of Volume error

2005-10-18 Thread Phil Stracchino
David Raine wrote:
> Phil,
> 
> Thanks for the response and the useful info. Sadly, the error persists...

Is it consistent across multiple tapes?


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] how to change volume attributes

2005-10-18 Thread Phil Stracchino
Shawn Wilson wrote:
> Hi I need to change the "Max volume jobs" attribute on a volume but I
> can't figure out how other than changing the attributes of the pool and
> re-labelling the volume.  Is this the only way to do it

Change the Pool definition, reload, then execute the console command
Update Volumes From Pool


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] LTO drive - End Of Volume error

2005-10-18 Thread Phil Stracchino
David Raine wrote:
> Good thought...
> 
> OK - I have a new box of tapes and it gives the same error on three that
> I've tried from that box, too. Is there a way to get more info on the
> error? Am happy to compile with debug if that would help identify the
> cause...

Have you tried using tapeinfo -f /dev/tape to get error information?


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] retention for each job?

2005-10-18 Thread Phil Stracchino
Andreas Jellinghaus wrote:
> On Tuesday 18 October 2005 19:53, Phil Stracchino wrote:
> 
>>One assumes these jobs run to different Pools.  The correct way to do
>>this, certainly, is to use two divverent Pools with retention set
>>differently for each Pool.
> 
> 
> Hi Phil,
> 
> thanks for the idea. unfortunatly I'm not using serveral
> pools at the moment. Is there still a way to set retention
> times per Job?
> 
> or maybe is it possible to set it within a schedule?


No, this is not possible.  You need to set up multiple Pools, otherwise
you can end up with Jobs with vastly different retention times on the
same Volume.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Questions on Bacula Performance.

2005-10-19 Thread Phil Stracchino
Arno Lehmann wrote:
> On 19.10.2005 09:32, Mahesh Bhat wrote:
>> (2) I have read about Bacula's support for VSS, which allows to backup
>> files
>> that are currently being used by an application. Can i use this
>> feature with
>> Bacula version 1.36.3 ? I remember having read that version 1.37
>> supports it. i
>> need to use this feature. Is 1.37 stable enough to deploy in a live
>> production
>> environment ?
> 
> 
> Well, you need 1.37, and I think that 1.37.40 (or above) should be
> stable enough. True, I would still consider it a bug-hunting version,
> but basically it's working here and in other locations stable for quite
> some time now.
> 
> Note that, as far as I know, VSS snapshots are not supported by windows
> 2000.

VSS is not supported on Windows 2000 below Windows 2000 Server.  It -is-
supported on 2000 Server.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] no backups

2005-10-19 Thread Phil Stracchino
Paul Burton wrote:
> I'm getting really frustrated now.
> I've been trying unsuccessfully to get a backup done in bacula and am
> having trouble with an error i can't work out
> when i run the job everything connects ok, i have done tcpdump and seen
> traffic between client and server i have check iptables and ports are
> open and netstat -na has ports listening and open 9101-9103.
> but after a short amount of time i get this message ..
> 18-Oct 14:23 xx-dir: x.2005-10-18_14.08.55 Fatal error: Socket
> error from Filed on Storage command: ERR=No data available
> 
> If anyone can help i wold be extremely grateful i must add I'm a newbie
> to this for only about week !!!

We need to know a little more about your setup and configuration (what's
running on what where, etc), but I can tell you right off the bat it
sounds like a communication problem.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] authorization security

2005-10-21 Thread Phil Stracchino
Viktorija wrote:
> what about Windows type client? I don't need administrator rights for 
> stolling such file :)


But you're using restricted consoles on your Windows clients that allow
access only to jobs saved for that machine, right?  Or maybe you
don't even HAVE a console installed on the Windows client, in which case
our hypothetical thief can't get the director to give him any data
because the client has no permission to open a console session.

I'm fairly sure you'll find compromise of a client, unless the client
has a full, unrestricted console, does not get you access to any data
that wasn't already on the client you compromised in the first place.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Connection reset by peer

2005-10-21 Thread Phil Stracchino
Timo Neuvonen wrote:
> I just added into my system another file daemon to be baked up.
> 
> This new client is dilbert-fd, which is located in the dmz network segment
> of a SonicWall firewall, while the director and the storage daemon are on
> the lan network segment.
> 
> By default, all traffic from lan to dmz is allowed. I also made a firewall
> rule to open the port 9103 from dmz to the director. There are tcp and udp
> protocols to choose from in the rules (I chose tcp), which one would be the
> correct one to use in the rule that is expected to allow the file daemon to
> communicate with storage daemon?
> 
> Now, when I start a backup job, everything seems to be running nicely.
> Until...
> 
> 21-Oct 16:16 dogbert-dir: Nightly_Backup_-Dilbert.2005-10-21_16.01.35 Fatal
> error: Network error with FD during Backup: ERR=Connection reset by peer
> 21-Oct 16:17 dogbert-dir: Nightly_Backup_-Dilbert.2005-10-21_16.01.35 Fatal
> error: No Job status returned from FD.
> 
> I tried this several times.
> It kept taking appr. 15 minutes, until the backup job always terminates with
> this error:
> 
> After investigating the firewall rules, the default rule for traffic from
> lan to dmz had 15 minute "Inactivity Timeout". To be quite honest, I don't
> know what this exactly means. Anyway, I changed this to 5 minutes, and then
> the same error started appear in 5 minutes.
> 
> Of course, I need to find out what this timeout means, but now I'm wondering
> what kind of connection used by Bacula causes this? Is there a connection
> from director to file daemon that is opened at the beginning of the job, but
> there is no traffic anyway?
> 
> I wouldn't like to change this timeout permanently to any very long time,
> unless I really know it is necessary...


Timo, you are aware that just port 9103 isn't enough, right?  The
Director will tell the FD which SD to dsend data to, and the client will
send data directly to the SD.  So that port needs to be open too.  I'd
play safe and open 9101-9103, then try it again and see if it works like
that.  Also enable the heartbeat for that client.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Premature LTO tape fill, turns out tape label was erased or scrambled

2005-10-23 Thread Phil Stracchino
(1-2): 2
3001 Device "/dev/nst1" unmounted.
mount
The defined Storage resources are:
 1: VXA1
 2: LTO1
Select Storage resource (1-2): 2
3905 Device /dev/nst1 open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.
23-Oct 14:21 babylon5-sd: Catalog_Save.2005-10-23_03.45.00 Warning:
Requested Volume "LTO-0002" on /dev/nst1 is not a Bacula labeled Volume,
because: ERR=block.c:793 Read zero bytes at 0:0 on device /dev/nst1.
23-Oct 14:21 babylon5-sd: Please mount Volume "LTO-0002" on Storage
Device "Ultrium-LTO1" for Job Catalog_Save.2005-10-23_03.45.00

status storage=LTO1
Connecting to Storage daemon LTO1 at babylon5.babcom.com:9103

babylon5-sd Version: 1.36.3 (22 April 2005) i686-pc-linux-gnu slackware
7.0.0
Daemon started 18-Oct-05 14:55, 42 Jobs run since started.

Running Jobs:
Differential Backup job Catalog_Save JobId=54 Volume="LTO-0002"
device="/dev/nst1"
Files=1 Bytes=98,400 Bytes/sec=2
FDReadSeqNo=14 in_msg=13 out_msg=5 fd=9


Terminated Jobs:
 JobId  Level   Files  Bytes Status   FinishedName
==
44  Incr 31  1,139,298 OK   22-Oct-05 02:47 Yama_Save
45  Diff  1 29,866,378 OK   22-Oct-05 03:46 Catalog_Save
46  Incr183302,532,164 OK   22-Oct-05 21:13 Pond_Save
47  Incr193217,990,884 OK   23-Oct-05 02:22
Babylon5_Save
48  Incr 90104,102,331 OK   23-Oct-05 02:27
Llioness_Save
49  Incr159279,388,678 OK   23-Oct-05 02:31
Mabolgamp_Save
50  Incr 22  8,790,179 OK   23-Oct-05 02:32 Minbar_Save
51  Incr  6 77,972 OK   23-Oct-05 02:32 Nijo_Save
52  Incr192339,318,962 OK   23-Oct-05 02:48 Vorlon_Save
53  Incr 35  1,756,513 OK   23-Oct-05 02:48 Yama_Save


Device status:
Device "/dev/nst0" is mounted with Volume "VXA-0001"
Total Bytes=5,546,964,186 Blocks=86,002 Bytes/block=64,498
Positioned at File=38 Block=0
Device "/dev/nst1" open but no Bacula volume is mounted.
Device is BLOCKED waiting for appendable media.
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 Block=0


I don't know for certain yet whether this indicates some hardware
problem related to the drive, or whether we have a problem with LTO
drives.  I'm looking into it.  I've tried swapping the terminator,
rebooting the drive, unmounting and remounting, and no joy.  I was able
to mount a different tape (LTO-0001) with no problems, though, and after
eof'ing the tape I was able to relabel it and use it again without
problems.  All indications are that something is erasing or scrambling
the tape label.

I don't know whether this is Bacula doing it, or something else.  But
perhaps we need a new console command -- not a "relabel", but rather
"rewrite tape label from catalog".  I believe at least one person has
asked before for a way to non-destructively do this.




-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: Commented out job still being scheduled

2005-10-30 Thread Phil Stracchino
Ross Boylan wrote:
> I can explain the duplicate jobs, but not the primary problem of the
> commented out job being run.

Suggestion:  Rather than commenting out a job to disable it without
restarting, change its Schedule to a null schedule:

Schedule {
Name = NEVER
}

Job {
Name = foo
Schedule = NEVER
...
}


THEN, after reloading, you can comment it out if you want.  Either that,
or comment it out and *restart*, not reload, Bacula.  If you just
comment it out and reload, the existing job definition remains in memory
as scheduled, because you aren't overwriting the definition with
anything different.


> Last night the clocks jumped back because of daylight savings time.
> My jobs are scheduled for 1:05am, and that happened twice.  This is a
> known problem, though the solution is unclear.  See bacula bug 153.

This is why I stopped scheduling jobs between 0100 and 0200.  I just
moved them from 0115 to 0215.

-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Very slow backups

2005-10-30 Thread Phil Stracchino
Tracy R Reed wrote:
> Ok, so over the course of the last few days I think I have got just
> about everything figured out. I have a full backup of all three of my
> systems safely on DVD, I can restore, it does incrementals automatically
> every night, I am happy.
> 
> Except for one thing: The backups are VERY slow. Even the host local to
> the DVD burner is very slow so it cannot be the network even though I
> have tested that and it is very fast. It seems to run somewhere between
> 100k/s and 1M/s. I do not know why it varies. It seems like perhaps it
> gets faster as the backup progresses, I'm not sure. At first I thought
> maybe I was somehow running out of disk bandwidth or causing disk
> contention since I am backing up from and spooling DVD images to the
> same spindle. But I ran some disk benchmarks and watched iostat and
> while the backup is running I can get 50MB/s disk throughput. Plus it's
> slow when streaming from other hosts and spooling locally. Also, the cpu
> time is 95% idle during the backup so it isn't cpu contention. So it
> would seem that the delay must be coming from somewhere within bacula
> itself. A full backup of my system should take just a couple of hours,
> not 12!
> 
> I am running bacula from CVS as of three or four days ago on an AMD64
> running FC4.
> 
> Any ideas? Thanks!

Have you investigated a database bottleneck?  What SQL backend are you
using?  What's system CPU load during backup?


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: Fw: Re: [Bacula-users] mail notifications

2005-10-31 Thread Phil Stracchino
Viktorija wrote:
> He will be shocked and every day will ask email description. So if is there a 
> way to make these messages like this:
> 
> Hello, Dear user!
> 
> Your workstation backup failed tonight. Please check is bacula running, if 
> not start it.
> For more information contact you administrator by phone:
> 
> Your administrator
> 
> Is it possible?


You'd have to write it yourself.  But that shouldn't be hard.  A few
lines of Perl.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Running multiple backups on same volume

2005-11-03 Thread Phil Stracchino
Brandon Evans wrote:
> Another Issue I noticed, I have onefs = no in My FileSet, but I got this
> error when I started the backup:
> 
> Client-fd:  Filesystem change prohibited. Will not descend into /boot
> 
> Here is the start of my FileSet:
> 
> FileSet {
>   Name = "Ensim Virt"
>   Include {
>Options {
> signature   = SHA1
> compression = GZIP5
> onefs   = no
> hardlinks   = yes
>}
>   }
> 
> 
> 
> Any hints?

Well, that Fileset definition - as pasted - is incomplete


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] effect of database restart

2005-11-04 Thread Phil Stracchino
Ross Boylan wrote:
> On Fri, Nov 04, 2005 at 11:31:33AM -0500, Dan Langille wrote:
> 
>>On 4 Nov 2005 at 8:17, Ross Boylan wrote:
>>
>>
>>>If I restart the database bacula is using, do I need to restart any of
>>>the bacula daemons?  I'm using postgres, if it matters.
>>
>>I don't think so.  Try it. Find out.
> 
> Would it be obvious if there was a problem?  I'm worried I might not
> find out until a backup jobs runs.
> 
>>If jobs are running, you might have grief.
> 
> No jobs are running.
> 
>>Why would you restart PostgreSQL?
> 
> To upgrade it (minor upgrade, not a new major version).


Frankly, the safe method here is:

- wait until Bacula is idle
- shut down Bacula
- upgrade PostgreSQL
- restart Bacula

Surely this shouldn't be too difficult, unless Bacula is busy 24 hours a
day.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Security in password of the config file

2005-11-07 Thread Phil Stracchino
[EMAIL PROTECTED] wrote:
> hello
> hello it wanted that they help. I want me to know as I can encriptar the
> passwords in the configuration files
> 
> thanks.


You can use whatever you want for the passwords in the configuration
files.  The initial passwords in there are not encrypted -- they just
look encrypted because they're randomly generated.  All you have to do
is make sure that appropriate passwords in the config files match, and
remember to quote them if they contain spaces.

Whatever you use for passwords, the password strings in the config files
are never sent across the network in clear.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] cancel job request

2005-11-13 Thread Phil Stracchino
Maria McKinley wrote:
> Hi there,
> 
> I have the situation where a job is waiting for a tape so the status says:
> 
>  157 FullNightlySave.2005-11-12_01.05.01 is waiting for a mount request
> 
> I would like to just cancel this job, since I can't go in at the moment
> and put in the correct tape, but this is what happens:
> 
> *cancel job=157
> Job 157 is not running.
> 
> I looked through the archives, and it seems that I am not the only one
> who has had this problem, and there does not seem to be a solution.  Is
> there a plan to create a mechanism for canceling a job that is
> scheduled, but not technically running?


Some kind of an "unschedule" command...



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] cancel job request

2005-11-13 Thread Phil Stracchino
Phil Stracchino wrote:
> Some kind of an "unschedule" command...

Followup thought:  It alsways struck me as somewhat unsatisfactory that
cancelling a scheduled job marks it for cancellation, but it doesn't
actually get cancelled and removed until it comes due to run.  This can
be confusing.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] White Space in Directory Names

2005-11-14 Thread Phil Stracchino
alexander boden wrote:
> Hi all,
> Is there a way to include directories in a backup that are made up of
> several words i.e. have white spaces between the words in the directory
> name?

"Yes, of course."

(So to speak.)

This is in the manual.  Quote anything with whitespace in it, in any
configuration setting.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Incremental on 1 directory tree

2005-11-14 Thread Phil Stracchino
Harry Putnam wrote:
> I'm not yet a bacula user but have a question about its capabilities:
> 
> I'm wondering if bacula can be made to do this:
> 
> Generate incremetal backups of a working directory tree where active
> changes are going on while programming, image editing etc.  Be made to
> run thru every few minutes or even every minute and backup any changed
> files to numbered version or whatever.
> 
> I'm imagining bacula creating a sort of mirror but really more than a
> mirror in that the destination would also contain all changed versions
> of any file that went thru changes.  Or at least any changes occuring
> between bacula scans.

That sounds almost as though what you're trying to do is basically use
Bacula to implement a version-controlled filesystem.  While you could
configure Bacula to do what you describe, I'm not certain it's the best
way to achieve that end.

-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Newbie's Client Question

2005-11-21 Thread Phil Stracchino
Gabriel Millerd wrote:
> I recently starting using bacula on debian and I am a little perplexed
> on how to get my clients configured efficently. It seems like the
> large chunk of my configuration is duplicated for each client,
> excluding Director, Catalog, Messages, Console, and the Storage
> resources in bacula-dir.conf.
> 
> I know its not as simple as 'backup these eight identical clients one
> after another starting at midnight'. But following the 'Adding a
> Second Client' has me adding a Job, Client and a Pool/Schedule. So
> thats twenty-four Resources, plus if I want to create a distinct File
> Sets for Windows/Unix and what not.

You do not need to add new Pools and Schedules for additional clients,
unless you want a dedicated Pool per client or need to back up every
client on a unique schedule.  You do need a Client definition, and at
least one Job for that Client.  If most of your Jobs are close to
identical, put the parts that don't change in a JobDefs record and
reference that.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Re: [Bacula-devel] Feature Request

2005-11-22 Thread Phil Stracchino
Kern Sibbald wrote:
>   Notes:  By Kern: I would prefer to have a single new Resource called
>   RunScript, and within that resource an additional directive:
> 
> RunBeforeJob = Yes|No
> 
>   If no, it runs it after the job.

One could also make this:

RunsWhen: Before | After

(defaulting to Before)


It could also be further consolidated like this:


Job {
...
...
...
RunScripts {
Script {
Command = c:/bacula/systemstate.bat
RunsWhen = Before   # Before | After
RunsOnClient = yes  # yes | no
RunsAtJobLevels = All   # All | Full | Diff | Inc
AbortJobOnError = No# yes | no
RunsOnSuccess = Yes # yes | no
RunsOnFailure = Yes # yes | no
}
Script {
Command = 
}
}
}

The AbortJobOnError, RunsOnSuccess and RunsOnFailure directives could be
optional, and possibly RunsWhen as well.

If omitted, RunsWhen would default to Before.

AbortJobOnError would be ignored unless RunsWhen was set to Before (or
RunsBefore Job set to Yes), and would default to Yes if omitted.  If
AbortJobOnError was set to No, failure of the script would still
generate a warning.

RunsOnSuccess would be ignored unless RunsWhen was set to After (or
RunsBeforeJob set to No), and default to Yes.

RunsOnFailure would be ignored unless RunsWhen was set to After, and
default to No.

Failure of scripts run after the job should always produce a warning.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup Windows Open Files...?

2005-11-24 Thread Phil Stracchino
pedro moreno wrote:
>   Hi guys.
> 
> I want to try bacula on FreeBSD 5.4-p8, the OS that i want to backup
> are:
> 
> 1; Win 2k3 Standard Edition
> 2; Win NT  PDC+BDC
> 3; Linux + SAMBA (Red Hat 9)
> 
> The questions is this one, in the samba server we are running one
> database Pervasive that some times users let running aplicationes and
> some files are open went we backup those files. I read that Bacula
> cannot backup "OPEN FILES", this is correct or is no more a problem.
> 
> Them, if bacula cannot bakup open files, can someone  have a idea
> how to handle this problem with bacula...?

Backing up open files is a problem only on Windows.  They should be
backed up fine on your Samba server.  The latest Win32 client supports
VSS, and this should work on your Windows 2003 machines.  Open files on
your NT machine may present a problem.




-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore in the remote machine

2005-11-25 Thread Phil Stracchino
Everton Thomaz wrote:
> Is it posible to make a backup from a remote machine and after, make a 
> restore in the same place, remote machine? Or only in the server?

That depends what you mean by "make a restore in the same place".  If
you mean "restore files back to the same machine", yes, you can restore
files back to any machine, including the machine they were originally
backed up from or to the server.  The sole restriction here is that on
1.36.3 and earlier, Windows files backed up without using the portable
stream mode can be restored only to other Windows machines.  On an
growing number of platforms, Bacula even has the capacity (sometimes
with the aid of external tools) to restore to bare metal, i.e. an
unconfigured machine.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Re: [Bacula-devel] [Featue request] Multiple concurrent jobs from one fileset and job definition

2005-11-25 Thread Phil Stracchino
Ove Risberg wrote:
>   What:   I want to start multiple backup jobs on one client to get the
>   fastest possible backup of my server but I do not want a
>   complicated configuration or restore process.

>   Why:Multiple concurrent backups of a large fileserver with many
>   disks and controllers will be much faster.

I question this assumption.  My experience is that the disk subsystem of
any fast client is VERY rarely the performance bottleneck in Bacula.  I
doubt this will yield a performance increase unless your large server
also has a very fast network connection AND is being backed up to
multiple storage devices in parallel.  So unless you have multiple
servers doing concurrent backups of different filesystems on the same
client, I doubt you'll gain much.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] RFC: Deletion of disk-based volumes

2005-11-25 Thread Phil Stracchino
Ross Boylan wrote:
> Item x: Deletion of Disk-Based Volumes
> Date: Nov 25, 2005
> Original: Ross Boylan 
> Status: Proposal
> 
> What:  It would be useful to control how long the actual backups were
> kept for those backups that went to disk-based volumes.  A range of
> options similar to those currently available for retaining catalog
> information would be useful.  An additional option to permit deletion
> of the actual backup when the record of the associated job and/or
> files is purged from the catalog would also be useful.  However, it
> should be possible for the actual backups to be retained for more or
> less time than the associated catalog records.


I suggest this could be accomplished with the addition of a single
optional Pool directive valid only for disk volumes:

Delete Volume When Pruned = Yes


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with dividing backups over days

2005-11-25 Thread Phil Stracchino
Kern Sibbald wrote:
> On Wednesday 23 November 2005 17:32, PCextreme - Updates wrote:
>>So i wanted to devide in in 4 slides:
>>Day 1
>>/home/a*
>>/home/b*
>>/home/c*
>>
>>Day 2
>>/home/h*
>>/home/i*
>>
>>etc, etc, i guess you know what i mean.
>>
>>So i made 4 filesets that look all like this.
>>
>>FileSet {
>>  Name = "slashhome-day1"
>>  Include {
>>  Options {
>>  signature = MD5;
>>  compression=GZIP;
>>  wilddir = "/home/a*";
>>  wilddir = "/home/b*";
>>  wilddir = "/home/c*";
>>  wilddir = "/home/d*";
>>  wilddir = "/home/e*";
>>  wilddir = "/home/f*";
>>  wilddir = "/home/g*";
>>  }
>>  File = /home
>>  }
>>}
>>
>>Well this does NOT work at all, everything get's back-upped multiple
>>times by "day1", "day2", "day3", "day4".
> 
> 
> Well, after finally finding the time to look at this in more detail, I would 
> say, yes, the above setup is going to backup everything in /home -- assuming 
> that all the subdirectories are on the same filesystem.  If I am not 
> mistaken, the manual shows very clearly why this will not work, and I'll give 
> you a hint here: in the absence of any exclude Option, *everything* in the 
> File section is included.  The manual can explain this and tell you how to 
> fix it.  Off the top of my head (don't blame me if I am wrong), I think 
> adding something like:
> 
> Options {
> exclude = yes
> wilddir = "*"
> }

I'd do this:

Fileset {
Name = "Set 1"
Include {
Options {
Signature = MD5;
Compression = None;
}
    File = /home/[a-g]*;
}
}

Fileset {
Name = "Set 2"
Include {
Options {
Signature = MD5;
Compression = None;
}
File = /home/[h-m]*;
}
}

etc.


The other thing to do would be to use a single Fileset which gets its
File list from a script which automatically returns a list of the
correct set of home directories to be backed up that day.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bconsole delete should volume disappear

2005-11-26 Thread Phil Stracchino
Ryan Novosielski wrote:
> There appears to be some ongoing confusion with delete vs. purge. I have
> a feeling purge will do what you want. It's the difference between
> deleting on disk data and in catalog data. Am I correct here?

Either way, at present, Bacula will never delete the actual on-disk
volume file.  It treats disk volumes like tapes, and while it may purge
or recycle a tape, it will never intentionally destroy one.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] RFC: Deletion of disk-based volumes

2005-11-27 Thread Phil Stracchino
Ross Boylan wrote:
> On Fri, Nov 25, 2005 at 04:00:59PM -0500, Phil Stracchino wrote:
>>I suggest this could be accomplished with the addition of a single
>>optional Pool directive valid only for disk volumes:
>>
>>Delete Volume When Pruned = Yes
>>
> 
> If I understand the manual correctly, when a volume is pruned the
> associated catalog entries for jobs and files are deleted.  It seems
> to me there's some value in decoupling the lifetime of the volume and
> the lifetime of the catalog records.  Perhaps not enough value to be
> worth the extra complication, but some value.
> 
> Also, how would the proposed option and recycling interact?  If Delete
> Volume When Pruned and Recycle are both yes, who wins?

Well, it wouldn't make sense to have both options enabled, true.
Personally, I'd make that generate a load-time error -- "Warning:  Pool
resource 'Disk Pool' contains conflicting options 'Recycle Volumes' and
'Delete Volumes When Pruned'"


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: [Bacula-devel] About Scratch Pool

2005-11-28 Thread Phil Stracchino
Kern Sibbald wrote:
> Here is the algorithm that Bacula uses to get the next volume (as written in 
> the manual):
> 
> 1. Search the Pool for a Volume with VolStatus=Append (if there is more
>than one, the Volume with the oldest date last written is chosen.  If
>two have the same date then the one with the lowest MediaId is chosen).
> 2. Search the Pool for a Volume with VolStatus=Recycle and the InChanger
>flag is set true (if there is more than one, the Volume with the oldest
>date last written is chosen.  If two have the same date then the one
>with the lowest MediaId is chosen).
> 3. Try recycling any purged Volumes.
> 4. Prune volumes applying Volume retention period (Volumes with VolStatus 
>Full, Used, or Append are pruned). 
> 5. Search the Pool for a Volume with VolStatus=Purged 
> 6. If InChanger was set, go back to the first step above, but
>this second time, ignore the InChanger flag in step 2.
> 7. Attempt to create a new Volume if automatic labeling enabled 
>If Python is enabled, a Python NewVolume even is generated before
>the Label Format check is used.
> 8. If a Pool named "Scratch" exists, search for a Volume and if found
>move it to the current Pool for the Job and use it.
> 9. Prune the oldest Volume if RecycleOldestVolume=yes (the Volume  with the
>oldest LastWritten date and VolStatus equal to  Full, Recycle, Purged, 
> Used,
>or Append is chosen). This  record ensures that all retention periods are
>properly  respected. 
> 10. Purge the oldest Volume if PurgeOldestVolume=yes (the Volume  with the
>oldest LastWritten date and VolStatus equal to  Full, Recycle, Purged,
>Used,  or Append is chosen). We strongly  recommend against the use of 
>PurgeOldestVolume as it  can quite easily lead to loss of current backup
>data. 
> 
> Please look it over carefully, but it seems to me that if I move item 8 
> before 
> item 7 (i.e. exchange the two), Bacula will do what you want.  I agree this 
> would be much more logical ...

This looks like a logical change, yes.  If a scratch pool exists, I
would certainly expect it to be used before creating a new volume.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] which pool to use during a restore

2005-11-29 Thread Phil Stracchino
Rob Burris wrote:
> Hello all,
> 
> I was wondering what Pool you should you specify in a Job Restore when
> you have more than one. For example, I have two Pools, one for Full
> backups and for Incremental.
> 
> Pool {
>  Name = Full-Pool
>  Pool Type = Backup
>  AutoPrune = yes
>  Volume Retention = 6 months
>  Recycle = yes
>  Accept Any Volume = yes
>  Maximum Volume Jobs = 1
>  Label Format = Full-
>  Maximum Volumes = 6
> }
> 
> 
> Pool {
>  Name = Inc-Pool
>  Pool Type = Backup
>  AutoPrune = yes
>  Volume Retention = 60 days
>  Recycle = yes
>  Accept Any Volume = yes
>  Maximum Volume Jobs = 6
>  Label Format = Inc-
>  Maximum Volumes = 5
> }
> 
> 
> Job {
>  Name = Client-Restore
>  Type = Restore
>  Client = client-fd
>  FileSet = "Client Set"
>  Storage = DLT7000
>  Where = /tmp/client-restore
>  Messages = Standard
>  Pool = [What goes here?]
> }
> 
> 
> Perhaps, this needs to be configured in the console and depends entirely
> on what I am trying to restore.

Don't worry about it.  Bacula will pick the pool(s) containing the
volumes it needs to accomplish the restore.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Scheduling - "do x the day before y happens"

2005-11-29 Thread Phil Stracchino
[EMAIL PROTECTED] wrote:
> Hi all,
> 
> I've got a fairly simple single computer setup, it backs up about
> 7.5GB of data to a DDS-3 tape on the first Sunday of each month. For
> the rest of the month it does nothing but incrementals (plus full
> backup of the catalog) every night, amounting to less than 2GB a
> month. That leaves 2.5GB of blank space at the end of the tape, which
> I don't mind wasting, so rather than try to do a full backup on that
> nearly-full tape, waking up to find Bacula complaining to me about
> running out of room, and having to span the full backup over two
> tapes, I just remove that tape and mount the oldest volume from the
> pool so the full backup can start on a fresh tape. That's all well
> and good, but I'd really prefer it if Bacula would do the ejecting
> for me so that a) I don't have to load up the console to do it, and
> b) there's a tape hanging out of the front of the computer that
> reminds me I need to change tapes. So ideally on the Saturday before
> the first Sunday of a month (which could be the 1st, 4th or 5th
> Saturday of the month) the tape would be ejected as soon as the
> incremental and catalog backups were finished. So, to my question:
> 
> Is there any way to schedule something to happen at "sat before 1st
> sun at 1:15" or "1 days before 1st sun at 1:15" or "1st sun at 1:15
> minus 24 hours" etc.?

When I had to accomplish this, a job running on the last day of the
month, I wrote a Perl script that was run every month on the 28th-31st
and which used a few simple Perl Date::Calc functions to determine
whether it was in fact the last day of the month.  This wasn't for a
Bacula job, but you could use such a script as a RunBeforeJob script and
return 0 unless it really is the last of the month.

Or, of course, we could simply adjust the Earth's orbit and spin to have
12 months of exactly 30 days each.  ;)  (Or 13 months of exactly 28 days
, giving us exactly 4 weeks per month ... we wouldn't even have to
change the length of the week, and it'd be a smaller rotational change.
 We could call the new 13th month ANYTHING BUT Bushtober.)



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] What's the meaning of the name "Bacula" ?

2005-11-29 Thread Phil Stracchino
McCann, Brian wrote:
> It's a play on words...Dracula and Backup.  That's why the documentation
> starts with " It comes in the night and sucks the essence from your
> computers."

Also, a baculum is a rod or stick.  So Bacula, plural, is a set of big
sticks to hit your backup problem with.  :)


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] What's the meaning of the name "Bacula" ?

2005-11-29 Thread Phil Stracchino
Kern Sibbald wrote:
> On Tuesday 29 November 2005 20:51, Phil Stracchino wrote:
>>Also, a baculum is a rod or stick.  
> 
> Well, that is a slightly watered down meaning ... :-)

No, it's just that zoologists co-opted the word to mean a specific bone.
 :)  Just like the malleus in your middle ear isn't a real hammer.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-web 1.2

2005-11-30 Thread Phil Stracchino
Juan Luis Frances wrote:
> You are welcome. Your comments are a great birthday gift and, in a open 
> source 
> project as this, the incentive of the work. (yes, my birthday is today :) )

Happy birthday!

(I'll refrain from the Mongol Birthday Song.  Don't want to frighten
innocent users on the lists.)



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-web 1.2

2005-11-30 Thread Phil Stracchino
Ludovic Strappazon wrote:
> Would it be possible to have the famous Mongol Birthday Song in Private
>  :-D


http://www.whitetreeaz.com/vintage/bdaysong.htm

:)

-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Failed jobs still occupy the volumes

2005-12-05 Thread Phil Stracchino
Christoph Haas wrote:
> Evening...
> 
> before filing a bug report I wanted to be sure I'm not doing anything 
> wrongly. I have frequently failing backup jobs because my streamer can't 
> be found/opened (a bug of the 2.6 Linux kernel that Kern kindly pointed me 
> to). But then the volumes that have been used so far for the job are not 
> freed again.
> 
> Example:
> 
> - A new job starts.
> - It recycles and writes on tape 1.
> - It recycles and writes on tape 2.
> - The job fails mysteriously (not the issue here).
> - Tapes 1 and 2 are still "Used" although the job they stored data
>   for is no longer existing.
> 
> Wouldn't it make sense to remove the files on those volumes (in the 
> database)? Currently I "update" the status of those volumes manually.

If you delete the failed job, I believe the tapes will show "purged".


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] File daemon/director spinning at 100% cpu?

2005-12-05 Thread Phil Stracchino
Frank Sweetser wrote:
> On Mon, Dec 05, 2005 at 11:07:14PM +0100, Kern Sibbald wrote:
> 
>>Yes, as I mentioned in a previous email.  You are using encrypted comm.  The 
>>current way it is programmed, this is exactly what will happen because it 
>>runs in non-blocking read mode.  That is a point that I forgot to look into 
>>before the 1.38.0 release ...
> 
> 
> Ah, I see, I didn't realize you meant this was expected.  Any chance this will
> change in a future rev?

You're not using a select() on the socket...?


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] single instance storage?

2005-12-08 Thread Phil Stracchino
Mordechai T. Abzug wrote:
> Does bacula support storing only one instance of a file that is
> identical accross multiple machines?  Ie. if the contents of, say,
> /bin/ls are the same on a bunch of different hosts, is bacula smart
> enough to only store it once on the volume?

Not YET.  However, one of the planned future features is "base jobs",
which will enable Bacula to recognize when several hundred files are
identical across different machines (an OS image, say) and store those
files only once.

> Also, is bacula hard link aware?  Ie. if I have a whole bunch of large
> files with a bunch of hard links to them, and I restore, is the hard
> link structure preserved?

It is, and yes, it should be.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-devel] Re: [Bacula-users] Bacula BETA 1.38.3

2005-12-11 Thread Phil Stracchino
Kern Sibbald wrote:
> The bscan problem that I found caused it to generate a JobMedia record in the 
> database that had an end FileIndex one less than it should have been.  This 
> was the last record on a Volume, and the record was continued on the next 
> Volume.  When Bacula constructed a bsr, the "optimization" code had this one 
> off problem, so when the restore job ran, the last record (partial) record on 
> the first tape was ignored.  When the restore job got the second tape up, 
> after reading the first (partial) record, it realized that the first part of 
> the record from the first Volume was not there, so my insanity check code 
> aborted.
> 
> What surprises me is that this never triggered before in all the years I ran 
> it.  I wish I had more time to devote to regression testing as I would 
> develop a case that is 100% sure to exercise this problem ...

I recall finding (and fixing) a very similar bug in IBM's backup.exe
program that shipped with DOS 3.20.  I spent about five hours on the
phone with a frantic New York stockbroker figuring out the problem and
walking him through patching his backup disks so that the backup would
restore properly.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems with Bacula installation...

2005-12-12 Thread Phil Stracchino
[EMAIL PROTECTED] wrote:
> The biggest problem I have is the following error message;
> 
> Warning: Couldn't rewind device /dev/nst0 ERR=dev.c:406 Rewind error on
> /dev/nst0. ERR=Input/output error.
> 
> I get this error message all the time and of course my backups do not
> run due to this error.


I get this error periodically, using single drives (a VXA1 and an LTO1).
Usually, it means that a tape has been changed, but not unmounted first.
 If I execute an unmount and a mount on the drive in question, it
invariably goes away.  You might try this before you go relabelling tapes.


> The other problem I have is bacula dies on a regular basis (usually when
> the full backups run), exactly when the first backup is scheduled to run.
> 
> When I check the logs, I see;
> 
> 05-Dec 22:00 ganymede-dir: Start Backup JobId 1963,
> Job=Custweb2.2005-12-05_22.00.00
> 
> and nothing else…


Does it dump core?  Are you running with debugging enabled?  These will
probably be necessary to isolate this issue.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Solaris 10 client change root password

2005-12-12 Thread Phil Stracchino
Didier Herrera wrote:
> Hello all,
> I've been trying to install a Bacula client on a Sun ultra 10 with OS
> Solaris 2.8, I use the following to configure:
> CFLAGS="-g" ./configure \
>  --sbindir=/bacula/bin \
>  --sysconfdir=/bacula/bin \
>  --enable-client-only \
>  --enable-smartalloc \
>  --with-pid-dir=/bacula/bin/working \
>  --with-subsys-dir=/bacula/bin/working \
>  --with-working-dir=/bacula/working
> 
> And I get the message:
> .
> .
> .
> checking for cdrecord... cdrecord
> checking for pidof... pidof
> checking for gawk... no
> checking for mawk... no
> checking for nawk... nawk
> checking for nawk... /usr/bin/nawk
> checking build system type... sparc-sun-solaris2.8
> checking host system type... sparc-sun-solaris2.8
> passwd: Changing password for root
> New Password:
> 
> It continues asking me to change the password indefinetily, what's
> wrong? I'll apreciate suggestions.


Good question.  NOTHING, I repeat NOTHING, in the Bacula build process
should be asking you to change the root password.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Control Large bacula db

2005-12-13 Thread Phil Stracchino
Alexander Boden wrote:
> Hi all,
> I have set my volumes, file and job retention to a 6 day purge cycle.
> However, I find that my database has grown and is still growing at an
> alarming rate.
> if I do an sql dump the size of the file has reached 1.5GB!
> Are there other settigs I need to set that will purge other info in
> the db after 6 days?

How much are you backing up?  I'm backing up nine machines nightly, with
the full backup set across all nine approximately 140GB at present, and
my MySQL InnoDB database file (probably two thirds of which of which is
the Bacula catalog) is around 780MB.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] quantum px502

2005-12-14 Thread Phil Stracchino
Aditya Ivaturi wrote:
> 
> We are looking to purchase a Quantum PX502 tape library with LTO-3
> drives. Any idea if this will be compatible with Bacula?

I know of no reason it shouldn't be.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: Bacula web site "All Files" link broken

2005-12-16 Thread Phil Stracchino
Kern Sibbald wrote:
> Thanks. SourceForge has recently re-arranged their whole site.  I could not 
> even find a link to all the released files similar to what I had before, so I 
> got the next best one, which shows all the most recent files ...

Yes, the main object of the "facelift" seems to have been to tuck a lot
of useful information away out of sight in order to make room for more
advertising.  I am NOT happy with Sourceforge right now, and have given
serious thought to asking them to remove my ICBM project altogether.  I
do NOT wish to be advertising Microsoft products on my prject page.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FreeBSD 6.0 and DVDs -- can't mount?

2005-12-24 Thread Phil Stracchino
Hi Jeff!

Jeffrey J. Nonken wrote:
> This is my first real attempt to install Bacula. The basic tests work,
> it seems happy with MySQL (I was already using MySQL for another
> project else I'd have used PostgreSQL) and so on. 
> 
> But it can't seem to mount, label, or otherwise access my blank DVD-RW.
> I was able to format it externally. Here are some of my notes:


> *label
> The defined Storage resources are:
> 1: File
> 2: DVD
> Select Storage resource (1-2): 2
> Enter new Volume name: DVDTest001
> Automatically selected Pool: Default
> Connecting to Storage daemon DVD at 192.168.10.12:9103 ...
> Sending label command for Volume "DVDTest001" Slot 0 ...
> 3999 Device "DVD Writer" not found or could not be opened.
> Label command failed for Volume DVDTest001.
> Do not forget to mount the drive!!!
> *mount
> The defined Storage resources are:
> 1: File
> 2: DVD
> Select Storage resource (1-2): 2
> 3999 Device "DVD Writer" not found or could not be opened.

This is a key error message, both times that it occurs above.


> I don't know. It's almost like it's trying to mount the disc and,
> failing, assumes it can't access the disc. If it fails it should assume
> that it's a non-formatted disc, shouldn't it? Can you mount a blank
> disc under Linux?

No, you can't.  Remember that you mount filesystems, not devices.  You
cannot mount (from the shell) a blank disk that doesn't have a
filesystem on it, because there's no filesystem to mount.


> #
> # A DVD device
> #
> Device {
>   Name = "DVD-Writer"

And this is why that's a key error message above.  Look carefully at
this line and the error again, and you'll spot the problem.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Volume status error

2005-12-29 Thread Phil Stracchino
Simon Gao wrote:
> Hi,
> 
> Just started using Bacula and completed backup to the first volume. Now
> backup moved to second volume. However, the volume status for the first
> volume shows error.

> Also the size of data put on the volume seems larger
> than the spec (176G vs 160G).

This is quite reasonable.  I'm using LTO1 with 100GB tapes for Full
backups, and getting as much as 130GB of data on them with hardware
compression.  The errored state is a problem, though.  My experience is
that this does occasionally happen, though I can't nail down any single
cause for it.  It usually means that the number of files on the volume
and the number of files recorded in the catalog for that volume do not
match, but what causes the mismatch varies.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] volumes being purged in error!!!!! Help

2006-01-03 Thread Phil Stracchino
John Hayden wrote:
> Hope everyone had a god New Years!
> 
> In my continuing saga of a retrograde, any volume I label and add
> to  a pool almost immediately gets marked as purged with the following 
> message:
> 
> 03-Jan 15:46 rosalind-dir: There are no Jobs associated with Volume 
> "Mutation0020". Marking it purged.
> 03-Jan 15:46 rosalind-dir: There are no Jobs associated with Volume 
> "Mutation0021". Marking it purged.
> 
> Any ideas why this might be happening?

That does seem odd.  Newly labelled tapes should be marked Append.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Numbero fo Files Mismatch

2006-01-08 Thread Phil Stracchino
Gabriele Bulfon wrote:
> What is this error?!
> 
> 05-Jan 23:00 iserver-sd: Enterprise_Backup.2006-01-05_23.00.00 Error: I
> canot write on Volume "GIOVEDI" because:
> The number of files mismatch! Volume=14 Catalog=13

Short version:  Some error or failure (did the machine crash?  did
Bacula crash?) has caused the catalog to become out of sync with the
number of files actually on the volume.  We don't yet know all the
possible causes for this problem.  You might do a test to see whether
you can restore files from that volume and, if so, just keep it until it
is recycled, which will clear the issue.  Otherwise, you can purge the
volume immediately and re-use it if you prefer.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Full Backup

2006-01-09 Thread Phil Stracchino
Chester Philip O.Madiam aka tazman82 wrote:
> Hello!!!
> Can anyone help me on how i can configure bacula to do a full backup for 
> monthly and full backup for weekly...is it possible to do a weekly full 
> backup 
> and a monthly full backup? 

You can write a schedule to do full backups pretty much whenever you
want.  Just read through the manual section on the Schedule resource and
it should be pretty clear how to do it.  If you have specific questions
after reading that, ask, and we'll do our best to answer them.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Help about security in bacula configuration files

2006-01-09 Thread Phil Stracchino
Luis Cuenca wrote:
> Hi, i need to help about to enhance the security in the files of the
> configuration, since the passwords do not encrypted in the archives of
> configuration, there is some way to encrypted them.

To encrypt the passwords in the configuration files would be useless,
because you then have three choices:

(1) You have a hardcoded encryption key or key passphrase, which is
available for use by Bacula ... and therefore by anyone with access to
Bacula and its configuration files.  Result:  No net gain of security.

(2) You have a key passphrase stored on disk to enable Bacula to decode
the encrypted passwords.  Of course, to be secure, this password must
itself be encrypted, requiring an encryption key to be stored for Bacula
to decrypt it with, requiring a stored encryption key which must be
encrypted to protect it  well, you can see where this is going.

(3) You have encrypted passwords stored on disk, and every time a Bacula
daemon on any machine needs to use one, it must ask the operator on that
machine to enter an encryption key.  Result, say goodbye to all
unattended operation, because an operator must oversee almost any
operation, and all your operators have to know all the passwords anyway.
 Little to no net gain in security.


Really, the answer is simply to not make the configuration files
world-readable.  Follow the defaults and have them readable only by the
user Bacula runs as and by root, and restrict access to the Bacula user.
 Let's face it, if a hypothetical attacker has gained root on a system,
that system is completely compromised anyway, and all data on that
machine is vulnerable that is not encrypted using a key which is neither
stored on nor accessible from that machine.

The passwords are never sent across the network in clear anyway.  Secure
the machine, keep the config files readable only by authorized users,
and you really don't have a problem.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup on different tapes from library

2006-01-12 Thread Phil Stracchino
Christoph Jahn wrote:
> Hi, dear fellow bacula users,
> 
> I wondered if its possible to enable bacula to simply create the
> backup on the tape which is inserted in the streamer?
> 
> I have 6 tapes here and i'm not able to change them every day.
> The tapes are registered in bacula tape library.
> 
> Could to tell me how to realize this scenario? When it's backup
> time, bacula should simply take the tape which is inserted and replace
> the old one on the tape.

Use Any Volume = yes


That should be all you need.  Provided you haven't set a media use
duration or per-tape job limit, Bacula will -- by default -- continue to
append jobs to a tape until it is full.  The directive above tells it to
use any appendable volume that happens to be mounted instead of strictly
waiting for the one it thinks should be used next.

Note, however, that this will NOT cause Bacula to recycle and re-use a
tape it has just filled.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore to a different filedeamon

2006-01-12 Thread Phil Stracchino
Florian Kieling wrote:
> Hi folks,
> bacula is running in our network in a test-mode without problems.
> Also the restore run's without problems.
> But I've a question: How can I restore a backup to another filedeamon?

'restore', go through the options, and one of the last things it will
ask you is which client (i.e, file daemon) to restore to.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: LTO-3 vs. fixed block sizes

2006-01-17 Thread Phil Stracchino
Alan Brown wrote:
> As a really dumb (but non-obvious) question, have you tried swapping out
> the terminator?

Seconded.  I had initial erratic problems with my LTO1 that turned out
to be bad termination.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Running different Client Run Before Job scripts based on backup level

2006-01-24 Thread Phil Stracchino
Eric Langheinrich wrote:
> Is it possible to run different "Client Run Before Job" scripts based on the
> level of my backup? 
> 
> What I would like to do is have a schedule that indicates do a full on day 1
> and incremental backups on days 2-7 with the "Client Run Before Job" script
> being different for a full than for an incremental backup.
> 
> Is it possible?

No, but you can write a RunBefore script that does different things
depending on the runlevel you pass to it.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] include all dot-files from $HOME

2006-02-01 Thread Phil Stracchino
Stephan Holl wrote:
> Hello Phil,
> 
> On Tue, 31 Jan 2006 15:07:35 -0500 Phil Stracchino
> <[EMAIL PROTECTED]> wrote:
> 
> 
>>Stephan Holl wrote:
>>
>>>I am trying to implement all dot-files into a fileset. but cannot
>>>manage it correctly. Perhaps someone has done that successfully.
>>>
>>>
>>># TEST-fileset
>>>FileSet {
>>>  Name = "testfileset"
>>>
>>>  Include {
>>>   Options {
>>>wildfile = "*."
>>>   }
>>>   Options {
>>>Exclude = yes
>>>
>>>RegexFile = ".?*$"
>>>   }
>>> File="/home/user"
>>>  }
>>>
>>>}
>>>
>>>Perhaps anybody has done this kind of task successfully, because I
>>>do not have any luck using regex.
>>
>>I'm not sure why you'd want JUST the dotfiles, but the usual Unix
>>shell regex for selecting dotfiles and ONLY dotfiles is: .??*
> 
> 
> Thanks for that. I will give it a try asap. So only files, no
> dot-folders I guess.
> 
> As I am an apsolute RegEx-Dummy, I would kindly ask you to help out
> here.


Perhaps my choice of words was misleading.  In the Unix shell, the regex
.??* will select any file OR FOLDER whose name begins with a dot and
then contains at least two additional characters.  This regex is
typically ised to select all dotfiles (and folders) without also
selecting . and .. at the same time.

The same principle should be applicable to a Bacula file selection regex.

I am curious, though, why you want to back up the dotfiles, but not any
other contents of the directory.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] include all dot-files from $HOME

2006-02-01 Thread Phil Stracchino
Arno Lehmann wrote:
> By the way, the shell expansion does not use regular expressions...
> 
> To select only stuff starting with a dot, in a regular expression you
> should write '\.[^\.].+'. Unless I'm wrong, of course :-)
> 
> That RE would be spelled like "take everything which starts with a dot,
> and is followed by one character which is not a dot, and is followed by
> at least one character".

That's not a bad port of the intent of the "standard Unix shell glob
trick".  Of course, were someone to name a file simply ".a", both it and
the Unix globbing trick would fail.  And, unfprtunately, it is not
compliant with the rules of POSIX extended regexes.

To catch ALL dotfiles in Bacula, where . and .. are not concerns, one
could simply use the following regex:

'^\..*'

which would denote any filename beginning with a literal . followed by
zero or more additional characters.

In a more general environment where . and .. are concerns and we don't
want recursive selection of current and parent directories, the problem
is more complex.  We want to accept filenames beginning with a dot and
having at least one additional character, with the restriction that the
second character may not also be a dot.  That would look something like
this:

'^\.([^.]|\..).*$'

Note that there is NOT a \ escaping the . in the bracket expression.
This is because matching rules are different within POSIX bracket
expressions.  Quoting from regex.3:

   To  include  a  literal `]' in the list, make it the first
   character (following a possible `^').  To include  a  lit-
   eral `-', make it the first or last character, or the sec-
   ond endpoint of a range.  To use  a  literal  `-'  as  the
   first  endpoint of a range, enclose it in `[.' and `.]' to
   make it a collating element (see below).  With the  excep-
   tion  of  these  and some combinations using `[' (see next
   paragraphs), all other special characters, including  `\',
   lose  their  special significance within a bracket expres-
   sion.

The important part of that, for our purpose, is the last sentence,
because it means that within a [] pair, a \ is just a \, a . is just a
., a psi is just a psi[1].  So not only is it impossible to escape the
dot within a bracket expression but, fortunately, we don't need to.

So, the above expression can be read as thus:

^\.Match anything which begins with a literal .
(  followed by EITHER
[^.]   a character which is not a literal .
|\..   OR a second literal . followed by ANY character
)  (end of the EITHER-OR part)
.*     followed by ANY ZERO OR MORE additional characters
$  and then ends.


[1]  It'll all become clear, as time goes by.

-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] include all dot-files from $HOME

2006-02-02 Thread Phil Stracchino
Martin Simmons wrote:
>>>The important part of that, for our purpose, is the last sentence,
>>>because it means that within a [] pair, a \ is just a \, a . is just a
>>>., a psi is just a psi[1].  So not only is it impossible to escape the
>>>dot within a bracket expression but, fortunately, we don't need to.
>>>
>>>So, the above expression can be read as thus:
>>>
>>>^\.Match anything which begins with a literal .
>>>(  followed by EITHER
>>>[^.]   a character which is not a literal .
>>>|\..   OR a second literal . followed by ANY character
>>>)  (end of the EITHER-OR part)
>>>.* followed by ANY ZERO OR MORE additional characters
>>>$  and then ends.
>>
>>Great. And now, put that into the manual :-)
> 
> 
> With a warning that it won't match anything, because all filenames begin with
> a / or a drive letter :-)

..Right.  ;)  Forgot that.


And next time I'll have to make my references less subtle.  The world
will always welcome regexes, you know.  ;)


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Purged all jobs for a host

2006-02-02 Thread Phil Stracchino
Ludovic Strappazon wrote:
> Hi Eric,
> 
> I think you should restore your catalog
> 
> Ludovic Strappazon
> 
> Eric Peterson a écrit :
> 
> 
>>I was trying to recycle a volume following the directions on the
>>website.  I guess they are only for newer versions or I didn't do
>>things quite right.
>>
>>I selected 'purge', 'jobs', and then it asked for a file daemon so I
>>chose the file daemon that needed a volume.  I thought it would then
>>ask me what jobs to purge.  Instead it purged all the jobs for that
>>client.
>>
>>So now that I'm in a bit of trouble, how do I restore my jobs for that
>>client?
>>
>>Thanks.

Assuming you've been backing up your catalog regularly, stop Bacula,
bscan your most recent tape, bextract the catalog backup from it, use
that to reload your catalog, then restart Bacula.


-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Purged all jobs for a host

2006-02-02 Thread Phil Stracchino
Eric Peterson wrote:
> That's what I was trying to do, but then apparently as part of the
> catalog restore it started do a backup first and overwrote my last
> catalog backup with the now purged catalog.  So I'm out of luck.

"as part of the catalog restore"?!?

If any restore job is starting out by doing a backup, there is something
badly wrong in either the job definitions or how the restore is being
started.



-- 
 Phil Stracchino   [EMAIL PROTECTED]
Renaissance Man, Unix generalist, Perl hacker
 Mobile: 603-216-7037 Landline: 603-886-3518


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


  1   2   3   4   5   6   7   8   9   10   >