Re: [Bacula-users] Admin Job with console command crashing director

2013-04-19 Thread ganiuszka
W dniu 19.04.2013 11:17, Radosław Korzeniewski pisze:
 Hello,

 2013/4/19 Marcin Haba ganius...@gmail.com mailto:ganius...@gmail.com


 For your solution I think that better will be to put your bconsole
 requests in a shell script.


 I have a question about it. I can't run an Admin Job which call an OS
 script instead of console commands. It is expected behavior?

Hi Radoslaw,

Could you past your Job configuration with Runscript?

Regards.
Marcin Haba (gani)




--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Strange issue with backup size

2013-04-06 Thread ganiuszka
2013/4/6 Alberto Caporro a.capo...@consulthink.it

 Hi everybody,

 I have an update on this; last night the backup job ran again, this time
 as an incremental one. The job terminated successfully, but backup size
 again doesn't make sense, being roughly 88G (see log at the end of the
 mail).


 Hi,

That is because you are using data encryption. Sparse files FileSet option
does not work with data encryption. It seem that it is due to this code
from src/filed/backup.c from your Bacula 5.2.6 version:

  if (ff_pkt-flags  FO_ENCRYPT) {
  if ((ff_pkt-flags  FO_SPARSE) || (ff_pkt-flags  FO_OFFSETS)) {
 Jmsg0(jcr, M_FATAL, 0, _(Encrypting sparse or offset data not
supported.\n));
 goto err;
  }

If you disable data encryption for this one then your backup will be have
proper data size.

I see that you have at least two options:

1. Send message to mailing list about lacking text in documentation about
sparse files in software encryption chapter and vice versa.
2. Ask Bacula developers if it is possible to improve encryption
functionality for sparse files.

Regards.
Marcin gani Haba
--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula update slots and list volumes don't match

2013-03-30 Thread ganiuszka
Hi,

I am not sure what do you mean about invisible tapes, so could you write a
bit more information about your issue?

How many tapes have you labeled, and how many tapes is showing when you
call list volumes command?

Could you give an output from update slots and list media commands?

Do you use barcode labels on your tapes?

Regards
gani


2013/3/29 unix1988 bacula-fo...@backupcentral.com

 Hello everyone. I am running Bacula version 5.0.3-1. The hardware
 configuration is a HP DL380 attached to a HP MSL4048. The issue I am
 running in to is that the tape library inventory and updates slots match
 but when I run list volumes from the bconsole prompt there are about 6
 tapes that are inside the library that do not show up in the output. These
 are tapes that were part of a brand new batch so they were not known to the
 catalog previously.

 I've tried the following with no luck:
 update slots scan
 labeling the tapes (responds with an error stating the tapes are already
 labeled)
 shutting down the library and restarting bacula

 Thanks.

 +--
 |This was sent by unixad...@yahoo.com via Backup Central.
 |Forward SPAM to ab...@backupcentral.com.
 +--




 --
 Own the Future-Intel(R) Level Up Game Demo Contest 2013
 Rise to greatness in Intel's independent game demo contest. Compete
 for recognition, cash, and the chance to get your game on Steam.
 $5K grand prize plus 10 genre and skill prizes. Submit your demo
 by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users




-- 
Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
przyjaciół swoich. Jezus Chrystus
--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to configure schedule for run full the first weekend of the month??

2012-09-06 Thread ganiuszka
2012/9/6 Ana Romero ana.rom...@cpxextremadura.com:
 Hello list,

 I don't know how to configure a schedules for run full the first weekend of
 the month ... you help me?

 Thank very much
 Regards

Hi,

Maybe that for 1st Sunday of the month:

Schedule {
  Name = SomeSchedule
  Run = Level=Full 1st sun at 9:00
}

or that for Saturday and Sunday on the month:

Schedule {
  Name = SomeSchedule
  Run = Level=Full 1st sat-sun at 9:00
}

Here is more info about that:

http://bacula.org/5.2.x-manuals/en/main/main/Configuring_Director.html#SECTION00235

Regards.
gani

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to configure schedule for run full the first weekend of the month??

2012-09-06 Thread ganiuszka
W dniu 06.09.2012 17:18, Ana Romero pisze:
 Hello Jeremy,

 I'm trying to do is run during the first weekend ( fri, sat and sun )
 all my full backups with the following schedule :

 Set backup1:
 Run=Level=Full 1st fri at 18:00
 Set backup2:
 Run=Level=Full 1st sat at 18:00
 Set backup3
 Run=Level=Full 1st sun at 18:00

 e.g. full backup for the month of September 2012 the execution would be:

 Backup1 - 7 September
 Backup2 - 1 September
 Backup3 - 3 September

 but I want this schedule:

 Backup1 - 7 September
 Backup2 - 8 September
 Backup3 - 9 September


I do not understand. See below my descriptions for your text from 
previous mail.

Backup1 - 7  September == it is Friday (tomorrow)
Backup2 - 1  September == it is Saturday (past)
Backup3 - 3  September == it is Monday (past)

So could you explain us your need?

Maybe you are thinking about that this month has been started a week 
ago. In this case, you can adjust your schedules for this month eg. by:

Schedule {
   Name = SomeSchedule1
   Run = Level=Full 2nd fri at 18:00
}

Schedule {
   Name = SomeSchedule2
   Run = Level=Full 2nd sat at 18:00
}

Schedule {
   Name = SomeSchedule3
   Run = Level=Full 2nd sun at 18:00
}

And in after this backups you can to set back your schedule on 1st days 
of the month.

What do you think about that?

Regards.
gani

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] newbie - problem labeling / adding tapes to pool

2012-09-05 Thread ganiuszka
W dniu 06.09.2012 00:37, Simon Tyler pisze:
 Hello,

 I'm having some issues with bacula.

 This is a new install, I have not used bacula before. So far I've
 successfully backed up from a client to a file on the bacula server, now
 I'm trying to get autoloader working so I can backup to tape. I want to
 make it so all tapes or Volumes are a member of Default Pool.

 I'm trying to label tapes and set them up so they're available in a Pool
 for backups. It appears that two slots are not recognized as containing
 bacula tapes and I'm not sure how to fix that. I think almost all of the
 tapes were used in our previous backup solution, so I don't know why
 these two slots are misbehaving. If I try the label barcodes command,
 it offers to label slots 1-6, and 8, but not the tapes in mystery slots
 6 and 7.

 Please let me know if I can supply more information, or if I should be
 posting somewhere else.

Hi,

It means that probably there is problem with reading tape labels in 
slots 6 and 7. Are you sure that tapes in slots 6 and 7 have sticked 
correct labels?

Could you show us output from below commands?

mtx -f /dev/sgX status

(/dev/sgX is special file of changer device)

and from mtx-changer Bacula script:

mtx-changer /dev/sgX list

(/dev/sgX is special file of changer device).

Regards.
gani


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Running complex commands or scripts remotely on a client

2012-09-05 Thread ganiuszka
W dniu 06.09.2012 03:23, Alex Lucas pisze:
 On 05/09/12 19:24, Christian Manal wrote:
 On 05.09.2012 12:43, Alex Lucas wrote:
 Dears,

 Is there a way to run a complex command or even a script on a client?

 So far I have tried two ways and failed:
 1) when a command (e.g. in ClientRunBeforeJob) has something like
 echo test  /tmp/test.out bacula runs it on the client as echo as
 command and the rest as the argument. i.e. there is no /tmp/test.out on
 the client
 2) when I run test.sh which is in the PATH on the bacula director it
 fails, I guess because there is no identical script on the client.

 Any suggestions?
 Hi,

 all the Run-statements execute what is defined directly, without a
 shell. So output redirection and stuff won't work unless you do
 something like this:

 ClientRunBeforeJob = /bin/bash -c 'echo foo /tmp/foo.out'
 Thank you, this does it. One related question: is because I have a few
 commands to run, is there a way to make the commands split across
 several lines (for readability) ?

 e.g.

 ClientRunBeforeJob = /bin/bash -c 'command one
command two'

 doesn't seem to work.

Hi,

It works for me. Did you try to use semicolon character for separate 
elementary commands?

Example:

ClientRunBeforeJob = /bin/bash -c 'echo aaa /tmp/foo1.out; echo bbb  
/tmp/foo2.out'

Regards.
gani

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] devel old backup in diff poll

2012-05-04 Thread ganiuszka
W dniu 04.05.2012 14:45, Anton Gorlov pisze:
 in my conf for pool with diff's

 Volume Retention   = 10 day
 Recycle Current Volume = Yes
 UseVolumeOnce  = Yes

 after 10 days bacula remove old backup's in this pool?

Hi,

After 10 days from marked volume as Used of Full, volume will be ready 
to recycle process. If Bacula will request this volume then volume will 
be recycled, all backups on this volume will be lost and volume will be 
writing as new volume.

In your configuration of Pool resource volumes status rather will be 
Used (because of Use Volume Once = yes). 'Recycle Current Volume' 
directive will be try to run recycle process on current using volume. 
So, you should guarantee that current volume is ready to recycle (older 
than 10 days after marked volume as Used) eg. by using fixed volumes 
numer in pool.

Number of volumes in pool you can calculate by using below schema:

   Vol. Retention time
volumes number = --   1
  number of backups per volume * backup interval time

In your case that may be:

10
volumes number =    1
   1 * 1

so number of volumes on pool should be at least 11.

Please note that 'Use Volume Once' directive is deprecated and its 
actual equivalent is:

Maximum Volume Jobs = 1

Answering on your question:

after 10 days bacula remove old backup's in this pool?

No. Volume Retention is connected with volumes so I suggest to treating 
this on volumes level.

Regards.
gani

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] devel old backup in diff poll

2012-05-04 Thread ganiuszka
W dniu 04.05.2012 18:34, ganiuszka pisze:
 Number of volumes in pool you can calculate by using below schema:

 Vol. Retention time
 volumes number = -- 1
 number of backups per volume * backup interval time

 In your case that may be:

 10
 volumes number =  1
 1 * 1


I do not know why there truncated 'plus' character.
So I am sending this part again:

Number of volumes in pool you can calculate by using below schema:

 Vol. Retention time
volumes number = --  + 1
  number of backups per volume * backup interval time

In your case that may be:

10
volumes number =  + 1
   1 * 1

Regards and sorry.
gani

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bcopy help

2012-04-30 Thread ganiuszka
W dniu 30.04.2012 17:23, Jack Cobb pisze:
 John,

 I have tried using the device names (i.e. /dev/nst2 and /dev/nst3) instead
 and receive the same error.

 Jack


 On Mon, Apr 30, 2012 at 11:11 AM, Jack Cobbjc...@skylinecorp.com  wrote:
 Hello everyone,

 I am wanting to copy data from one tape to a second tape so I have one
 offsite and the other onsite.  I am using the bcopy utility but when I
 enter the following command I receive an error message:

 bcopy -c /etc/bacula/bacula-sd.conf -i LTO-4-0 -o LTO-4-1 -v
 bcopy: bcopy.c:163 Wrong number of arguments:
 Copyright (C) 2002-2010 Free Software Foundation Europe e.V.

 Version: 5.0.1 (24 February 2010)

 Usage: bcopy [-d debug_level]input-archive  output-archive
-b bootstrap  specify a bootstrap file
-cfile   specify a Storage configuration file
-dnn set debug level tonn
-dt   print timestamp in debug output
-ispecify input Volume names (separated by |)
-ospecify output Volume names (separated by |)
-pproceed inspite of errors
-vverbose
-wdirspecify working directory (default /tmp)
-?print this message

 I have the bacula services turned off and am referencing the device
 names in bacula-sd.conf.  The storage devices are tape drives in a
 Dell TL-2000 tape library and I have tapes mounted in their respective
 drives.  If anyone could offer some assistance I would appreciate it.
   Thanks.


 It looks from that you are missing the input-archive and output-archive.
 Although I am not at the moment sure what is expected for these (device
 names? /dev/nst0 ...)

 John


Hi,

Could you try something like this:

bcopy -c /etc/bacula/bacula-sd.conf -i LTO-4-0 -o LTO-4-1 /dev/nst2 
/dev/nst3

I have never used bcopy with two tape drives. In the bcopy documentation 
is a note about that this compliance with two tape drives has been never 
tested.

In addition I suggest to add debug to your bcopy command, eg.
bcopy  -d 400 -c /etc/bacula/bacula-sd.conf -i LTO-4-0 -o LTO-4-1 
/dev/nst2 /dev/nst3

Good luck! :)
gani

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tandberg LTO-3 only writing ~200GB

2012-04-18 Thread ganiuszka
2012/4/18 Andre Rossouw an...@arnet.co.za:
 Hello.

 I have a system running Ubuntu 10.04 with Bacula 5.0.1. and a SCSI
 Tandberg LTO-3 HH drive. It has been running without problems since
 2010. Last week it started writing ~200GB data to the media, and
 reporting that the media is full.

 18-Apr 16:13 ubuntu-dir JobId 237: Bacula ubuntu-dir 5.0.1 (24Feb10):
 18-Apr-2012 16:13:47
  Build OS:               x86_64-pc-linux-gnu ubuntu 10.04
  JobId:                  237
  Job:                    Archive.2012-04-18_10.51.47_06
  Backup Level:           Full
  Client:                 ubuntu-fd 5.0.1 (24Feb10)
 x86_64-pc-linux-gnu,ubuntu,10.04
  FileSet:                FileSet1 2011-05-23 14:23:25
  Pool:                   Pool1 (From Job resource)
  Catalog:                MyCatalog (From Client resource)
  Storage:                LTO-3 (From Job resource)
  Scheduled time:         18-Apr-2012 10:51:40
  Start time:             18-Apr-2012 10:51:50
  End time:               18-Apr-2012 16:13:47
  Elapsed time:           5 hours 21 mins 57 secs
  Priority:               10
  FD Files Written:       9,201
  SD Files Written:       0
  FD Bytes Written:       235,602,974,800 (235.6 GB)
  SD Bytes Written:       0 (0 B)
  Rate:                   12196.7 KB/s
  Software Compression:   None
  VSS:                    no
  Encryption:             no
  Accurate:               no
  Volume name(s):         test2
  Volume Session Id:      2
  Volume Session Time:    1334732079
  Last Volume Bytes:      407,329,219,584 (407.3 GB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  Canceled
  SD termination status:  Canceled
  Termination:            Backup Canceled

 I have started going through the problem resolutions at
 http://bacula.org/5.0.x-manuals/en/problems/problems/ and so far the
 drive seems ok. Drive speed tests report normal, and other operations
 seem normal.

 Can anybody share some information that will help me write more than
 ~200GB data to media?
 --

Hi,

It looks like on the tape is ~400GB data. Backup from above output has
~200GB data written. It looks well for me. Looking on 'Volume Session
Id' it seems there also is some another backup. You can see jobs
placed on this volume eg. by using bconsole.

Regards
gani

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Virtual Full - Set NextPool for the virtual job only

2012-02-05 Thread ganiuszka
2012/2/5 Jan Lentfer jan.lent...@web.de:
 Am 05.02.2012 11:26, schrieb Jan Lentfer:
 Currently I have a setup where I use 3 file pools for Incr, Diff and
 Full. I use copy jobs to copy the incr jobs to one tape drive (DLT) and
 the full and diff jobs to another tape drive (LTO-1).

 Now I thought about doing Virtual Full Backups from the file pools to a
 3rd drive every 2nd month or so with a retention of 5 years to establish
 a long term archive.

 Of course the NextPool is already configured in the File Pool
 Definitions for the Copy jobs.

 Is there a possibility to run Virtual Fulls from the File Pools to
 another Pool? E.g. is it possible to set the NextPool in the Virtual
 Full's job definition or on the schedule definition?

 I think I have solved/worked around this using a Dummy Pool like this:

 Pool {
   Name = ArchivePool
   Pool Type = Backup
   Storage = DLT-Tape II
   Recycle = yes                       # Bacula can automatically
 recycle Volumes
   AutoPrune = yes                     # Prune expired volumes
   Recycle Oldest Volume = yes         # Use oldest Volume
   Volume Retention = 5 Years          #
   Label Format = Archive-
 #  Maximum Volumes = 15                # 10 Volumes
 }
 Pool {
   Name = ArchiveDummyPool
   Pool Type = Backup
   Storage = FileStorageDev7
   Recycle = yes                       # Bacula can automatically
 recycle Volumes
   AutoPrune = yes                     # Prune expired volumes
   Recycle Oldest Volume = yes         # Use oldest Volume
   Volume Retention = 1 week
   NextPool= ArchivePool
   Label Format = Dummy-
 #  Maximum Volumes = 15                # 10 Volumes
 }

 The Dummy pool has a File Storage device that points to the same
 directory the file volumes are stored in.

 And then I use this archive job:
 Job {
         Name = Archive_epia
         Enabled = Yes
         JobDefs = DefaultJob
         Level=VirtualFull
         Pool=ArchiveDummyPool
         Client = epia-fd
         FileSet = epia-fs
         Write Bootstrap = /home/bacula/file-dev/epia.bsr
 }

 Now I just have to figure out how to prevent restore from taking the
 ArchivePool into account for standard restores (because that would be
 slow)

 Jan

Hi,

What do you think about to use one more file device for full backup?
It will resolve problem with slow restore and it enable to use
schedule Virtual Full backup. I prepared two screens which show
proposed solution. That solution will give you possibility fast backup
to file devices (and fast restore) and schedule that kind of backup.

Example configuration:

Pool {
  Name = Pool 1
  ...
  Storage = File device 1
  Next Pool = Pool 2
}
Pool {
  Name = Pool 2
  ...
  Storage = File device 2
  Next Pool = Pool 1
}
Pool {
  Name = Pool 3
  ...
  Storage = File device 3
}
Job {
  Name = Docs
  Type = Backup
  Level = Incremental
  Pool = Pool 3
  Client = darkstar-fd
  FileSet = Docs FileSet
  Messages = Some messages
}

run job=Docs level=Full pool=Pool 1 storage=File device 1

run job=Docs level=Incremental pool=Pool 3 storage=File device 3
...
run job=Docs level=Incremental pool=Pool 3 storage=File device 3

run job=Docs level=VirtualFull pool=Pool 1 storage=File device 1

run job=Docs level=Incremental pool=Pool 3 storage=File device 3
...
run job=Docs level=Incremental pool=Pool 3 storage=File device 3

run job=Docs level=VirtualFull pool=Pool 2 storage=File device 2

etc.

I hope I helped.

Best regards.
gani

-- 
Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich. Jezus Chrystus
attachment: virtual-full-1.pngattachment: virtual-full-2.png--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Catalog Backup failing

2011-11-08 Thread ganiuszka
2011/11/8 Kenney, William P. (Information Technology Services)
kenn...@easternct.edu:
 Hello All,



 Have been running Bacula 5.0.3 without any major problems, but the
 BackupCatalog job is failing.

 Bacula-director is running.

 MySql is up and I can log in from the console with no problem.


Hi,

Did you look into /etc/bacula/scripts/make_catalog_backup.pl script?
Could you confirm that variable $dir_conf at the begining of the
script contains a correct localization dbcheck script?

For example:
my $dir_conf='/usr/local/bacula/sbin/dbcheck -B -c
/usr/local/bacula/etc/bacula-dir.conf';

If it does not point to correct localization then you can correct it.
You can also run command included in the $dir_conf variable with -C
'MyCatalog' option at the end of command.

Regards,
gani



 The error message follows:

 ***

 08-Nov 16:40 ecsu-bk3-dir JobId 970: shell command: run BeforeJob
 /etc/bacula/scripts/make_catalog_backup.pl MyCatalog

 08-Nov 16:40 ecsu-bk3-dir JobId 970: BeforeJob: Can't find your catalog
 (MyCatalog) in director configuration

 08-Nov 16:40 ecsu-bk3-dir JobId 970: Error: Runscript: BeforeJob returned
 non-zero status=1. ERR=Child exited with code 1

 08-Nov 16:40 ecsu-bk3-dir JobId 970: Error: Bacula ecsu-bk3-dir 5.0.2
 (28Apr10): 08-Nov-2011 16:40:39

   Build OS:   x86_64-pc-linux-gnu ubuntu 10.10

   JobId:  970

   Job:    BackupCatalog.2011-11-08_16.40.37_03

   Backup Level:   Full

   Client: ecsu-bk3-fd 5.0.2 (28Apr10)
 x86_64-pc-linux-gnu,ubuntu,10.10

   FileSet:    Catalog 2011-05-06 23:10:00

   Pool:   File (From Job resource)

   Catalog:    MyCatalog (From Client resource)

   Storage:    File1 (From Job resource)

   Scheduled time: 08-Nov-2011 16:40:34

   Start time: 08-Nov-2011 16:40:39

   End time:   08-Nov-2011 16:40:39

   Elapsed time:   0 secs

   Priority:   11

   FD Files Written:   0

   SD Files Written:   0

   FD Bytes Written:   0 (0 B)

   SD Bytes Written:   0 (0 B)

   Rate:   0.0 KB/s

   Software Compression:   None

   VSS:    no

   Encryption: no

   Accurate:   no

   Volume name(s):

   Volume Session Id:  0

   Volume Session Time:    0

   Last Volume Bytes:  0 (0 B)

   Non-fatal FD errors:    1

   SD Errors:  0

   FD termination status:

   SD termination status:

   Termination:    *** Backup Error ***

 *

 Any help will be appreciated.



 Bill



 William P. Kenney

 Unix Systems Administrator

 (860) 465-4688



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





-- 
Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich. Jezus Chrystus

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


Re: [Bacula-users] Problem backing up

2011-11-08 Thread ganiuszka
2011/11/8 Luca Bertoncello bertonce...@netzing.de:
 Hi, list!

 This night the full backup did not work.
 I'm trying to find the problem, but I can understand it...

 I think, the problem is somewhere in the changer...
 If I give an update slots I get:

 Connecting to Director hal9000.netzing.intra:9101
 1000 OK: hal9000-dir Version: 5.0.1 (24 February 2010)
 Enter a period to cancel a command.
 update slots
 Automatically selected Catalog: Netzing
 Using Catalog Netzing
 Automatically selected Storage: changer1
 Connecting to Storage daemon changer1 at hal9000.netzing.intra:9103 ...
 3306 Issuing autochanger slots command.
 Device sata-changer has 0 slots.
 No slots in changer to scan.
 You have messages.
 quit
 Date is not a known vacation day.

 I use an autochanger for SATA
 (http://sourceforge.net/projects/vchanger/) which normally runs without
 problem...

 Can you help me?

Hi,

Could you tell what returns command:

/some/localization/bin/vchanger -u root -g root
/some/localization/etc/vchanger.conf LISTMAGS

Could you put also output from below command?

/some/localization/bin/vchanger -u root -g root
/some/localization/etc/vchanger.conf list

(it needs complete vchanger files localization instead of
/some/localization/...)

If your vchanger is working on another user than root you should
actualize above commands with correct username and group for vchanger
(-u option for username and -g option for group).

Regards,
gani



 Thanks a lot!
 --
 ___
 Luca Bertoncello
 Entwicklung                               Mail:  bertonce...@netzing.de


 NETZING Solutions AG                      Tel.:  0351/41381 - 23
 Fröbelstr. 57, 01159 Dresden              Fax:   0351/41381 - 12
 ___

 Impressum:
 NETZING Solutions AG  -  Fröbelstraße 57   -   01159 Dresden
 Sitz der Gesellschaft Amtsgericht Dresden HRB 18926
 Vorstand  Dieter Schneider  -  Aufsichtsratsvorsitzender Volker Kanitz
 USt.Id DE211326547  Mail:  netzing...@netzing.de

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





-- 
Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich. Jezus Chrystus

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


Re: [Bacula-users] Incremental Pruning Full Backup?

2011-10-15 Thread ganiuszka
2011/10/14 Henrique Machado henri@gmail.com:

 I've migrated from bacula 3.0.3 to 5.0.3, and my bacula-dir.conf stay the
 same. But now, on this new version my Incremental backup looks like is
 pruning the Full Backup for this client:

 http://pastebin.ca/2090064
 Somebody have an idea?
 Thanks

Hi,

I read that the new version of Bacula (current 5.2.0 RC1) has a new
algorithm for pruning jobs records. It aims to protect against such a
situation, which you described.

Here you can read more about this:
http://bacula.org/5.1.x-manuals/en/main/main/Community_Bacula_New_Featur.html#SECTION0045

Regards
gani



 Att,

 Henrique Machado
 ITIL V3 Certified


-- 
Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich. Jezus Chrystus

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] query for file sizes in a job

2011-10-10 Thread ganiuszka
2011/10/7 Jeff Shanholtz jeffs...@shanholtz.com:
 Thanks guys. I'm pretty sure I'm using sqlite (having a hard time
 determining that definitively, but I don't think I did anything from an
 installation point of view beyond just installing bacula). I assume this
 script is postgresql specific. Looks like the fastest option for me is going
 to be to simply search the drives of my 3 client systems for large files and
 then check to see if any of those files are being backed up when they don't
 need to be.


Hi,

I wrote a PHP script for getting files sizes and path of backup files
by JobId value. It has also possibility setting sorting method files
sizes and setting unit for sizes (bytes, kilobytes, megabytes etc.).

I think that in your case this script may be useful.

I know that there is possibility to write functions in SQLite, and
maybe it is a good way to realize all algorithms from my script. In
spite of it I used PHP script method.

Yes,  I remember thread about decoding LStat value on this mailing
list. In that time I wrote PHP implementation of Bacula LStat decoder
in PHP. Now, I used this for decoding the LStat value in below script.

I hope that it will be useful. Any suggestions and bugs are welcome.

I did not test this script too hard. I did the only basic tests.

Before using script you need to edit constat named 'DB_FILE' which
contains string with localization of SQLite database file.

Regards.
gani

?php

/**
 * Script for listing sizes and paths files for selected JobId from
SQLite Bacula database.
 *
 * @author gani redak...@bacula.pl
 *
 * Requirements
 * PHP with modules:
 *   - BC Math
 *   - PDO for SQLite
 *
 * Example of use for jobid: 23, sort: asc, unit: megabytes:
 *
 * php bacula-size-and-path-by-jobid.php 23 asc m
 *
 * Examle output:
 * 12 | /etc/aaa.conf
 * 14 | /etc/bbb.conf
 * 21 | /etc/ccc.conf
 */

// NOTE! Before run this script please update SQLite database file localization.
const DB_FILE = '/tmp/bacula/var/bacula/working/bacula.db';

class BaculaJobDetails {

private $joibid;
private $order;
private $unit;

private $order_size_values = array('asc', 'desc');

private $units = array('b' = 1, 'k' = 1024, 'm' = 1048576, 'g' =
1073741824, 't' = 1099511627776);

public function __construct($jobid, $order, $unit) {
$this-jobid = intval($jobid);
$this-order = $this-validate_order($order);
$this-unit = $this-validate_unit($unit);
}

private function validate_order($order) {
$order = strtolower($order);
if(!in_array($order, $this-order_size_values)) {
die('You entered wrong sort order. Available sort 
orders are: asc or desc');
}
return $order;
}

private function validate_unit($unit) {
$unit = strtolower($unit);
if(!array_key_exists($unit, $this-units)) {
die('You entered wrong unit. Available units are: b, k, 
m, g, t');
}
return $unit;
}

private function decode_bacula_lstat($lstat) {
$base64 = 
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
$lstat = trim($lstat);
$lstat_fields = explode(' ', $lstat);

if(count($lstat_fields) !== 16) {
die('Error! Invalid LStat values count for ' . $lstat);
}

list($dev, $inode, $mode, $nlink, $uid, $gid, $rdev, $size,
$blocksize, $blocks, $atime, $mtime, $ctime, $linkfi, $flags, $data) =
$lstat_fields;
$encoded_values = array('dev' = $dev, 'inode' = $inode, 
'mode' =
$mode, 'nlink' = $nlink, 'uid' = $uid, 'gid' = $gid, 'rdev' =
$rdev, 'size' = $size, 'blocksize' = $blocksize, 'blocks' =
$blocks, 'atime' = $atime, 'mtime' = $mtime, 'ctime' = $ctime,
'linkfi' = $linkfi, 'flags' = $flags, 'data' = $data);

$ret = array();
foreach($encoded_values as $key = $val) {
$result = 0;
$is_minus = false;
$start = 0;

if(substr($val, 0, 1) === '-') {
$is_minus = true;
$start++;
}

for($i = $start; $i  strlen($val); $i++) {
$result = bcmul($result, bcpow(2,6));
$result +=  strpos($base64, substr($val, $i , 
1));
}
$ret[$key] = ($is_minus === true) ? -$result : $result;
}
return $ret;
}

private function get_db() {
$dsn = 'sqlite:' . DB_FILE;
try {
$db = new PDO($dsn);
} catch (PDOException $e) {

Re: [Bacula-users] VXA-2 Tape not filling

2011-06-21 Thread ganiuszka
2011/6/21 Christian Tardif christian.tar...@servinfo.ca:
 Hi,

 I have a VXA-2 tape  used with X23 tapes (replacement for V23 tapes)
 that should backup 80GB Uncompressed. Bacula stops after an average of
 27GB, stating that the media is full.  It seems that tapeinfo thinks
 that it has 80GB available (see below).

 How can I fix this in Bacula in order to get the full capacity of my VXA-2?

Hi,

You can use vxaTool to diagnostic purpose for your tape drive. There
is option (from vxaTool readme file):

-t [W/R/F] (optional)
   Test write/read functionality of the device.

   Optional [R]ead-only, [W]rite-only and [F]ull-tape flags
   *** WARNING *** Any data on tape will be overwritten!
   Use a SCRATCH tape when testing the tape drive.

which may be useful in your case (especially -t F params).

In my opinion the vxaTool can respond for query about extremly low
capacity for your tapes.

If all your test by using vxaTool finished well, then you can use
other programs to writing on tapes (for example: tar) and you can
check if other programs causes low capacity behaviour also.

Here is link for vxaTool (there click Downloads link from left):

http://tandbergdata.com/us/index.cfm/products/tape-drives/vxa-drives/vxa-2/

Regards.
gani



 Christian...

 Here's what tapeinfo has to say about the device:

 Product Type: Tape Drive
 Vendor ID: 'EXABYTE '
 Product ID: 'VXA-2           '
 Revision: '2153'
 Attached Changer API: No
 SerialNumber: '0085130777'
 MinBlock: 1
 MaxBlock: 245760
 SCSI ID: 0
 SCSI LUN: 0
 Ready: yes
 BufferedMode: yes
 Medium Type: 0x82
 Density Code: 0x81
 BlockSize: 0
 DataCompEnabled: yes
 DataCompCapable: yes
 DataDeCompEnabled: yes
 CompType: 0x3
 DeCompType: 0x3
 BOP: yes
 Block Position: 0
 Partition 0 Remaining Kbytes: 76791808
 Partition 0 Size in Kbytes: 76791808
 ActivePartition: 0
 EarlyWarningSize: 0
 NumPartitions: 0
 MaxPartitions: 1

 --
 EditLive Enterprise is the world's most technically advanced content
 authoring tool. Experience the power of Track Changes, Inline Image
 Editing and ensure content is compliant with Accessibility Checking.
 http://p.sf.net/sfu/ephox-dev2dev
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users




-- 
Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich. Jezus Chrystus

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Label use in the pool

2011-06-06 Thread ganiuszka
2011/6/6 John Drescher dresche...@gmail.com:
 2011/6/6 Cleuson Alves cleuso...@gmail.com:
 Hello everybody, I still can not understand what the advantage of using the
 label inside the pool instead of creating the volume at hand.
 Here's an example:

 Pool {
  Name = Full_Server-01
  Pool Type = Backup
  Storage = FullStorage
  Maximum Volume Jobs = 1
  Maximum Volume Bytes = 6g
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 2 weeks
  Maximum Volumes = 5
  LabelFormat = F_server 01_-$ {Year} - $ {MONTH} - $ {Day} _ $ {hour}.
 $ {Minute}. $ {Second} - - what is the advantage of using this way, it
 recycles a new date?


 No, it will not recycle to a new date.

Hi,

Yes, I agree but this might be a nice idea for new functionality. What
do you think about it?

Sometime I use a directive of automatic labeling with connecting the
Counter resource. For example:

Counter {
Name = SomeCounter

}
Label Format = Home-${Level}-${SomeCounter+:p/2/0/r}

and those volumes can be recycled without mistakes of names in the future.

Using something like that (example from previous mail):

LabelFormat = F_server 01_-$ {Year} - $ {MONTH} - $ {Day} _ $
{hour}.$ {Minute}. $ {Second}

after recycle the volumes names will not be up to date. Because of
that I think this type of label format should not be recycled
(mistakes of names in the future) and used there where there is not
planned those volumes recycling (used only once).

Second thing that the Counter resource will be deprecated in the near
future. Harm because that is simple and useful functionality but
appropriate using Python scripting may be replaced that function.

Regards.
gani


 John

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] timestamp in volume label

2011-03-27 Thread ganiuszka
2011/3/27 Lawrence Strydom lawre...@itcallcentre.co.za:
 Hi list,

 I am trying to get bacula to add a timestamp to the label. The manual
 talks about using variable expansion but states that it is deprecated
 and the new python scripting functionality that replaces it is not yet
 documented.
 I have defined my pool resource like this:

 Pool {
 Name = Arc-pool
 Storage = Archive
 Pool Type = Backup
 Recycle = no
 AutoPrune = no
 Label Format = Arc-

 }


 and it works fine, but now I want the label to read Arc-date

 I tried:

 Pool {
 Name = Arc-pool
 Storage = Archive
 Pool Type = Backup
 Recycle = no
 AutoPrune = no
 Label Format = Arc-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}

 }

 but predictably that terminated in error as I am using bacula 5.0.3.

Hi,

Try to add quotes between Label Format value. For example:

Label Format = Arc-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}

Regards.
gani


 I am not recycling these volumes, they are being archived to an external
 hard drive that will bereplaced when it is full.

 Thanks

 Lawrence

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula Twitter channel

2011-03-27 Thread ganiuszka
Hi,

Does anyone have any information about the Bacula Twitter channel?
Since almost two years there is no news. It would be nice if someone
will write some messages from Bacula world from time to time.

Regards.
gani

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] file listing?

2011-03-13 Thread ganiuszka
Hi,

Thank you for feedback again.

Yes, the BCMath module is not in default configuration if you will
compile PHP. In case compilation from sources need to add
--enable-bcmath to configuration parameters.

On some GNU/Linux distributions the BCMath is as default in PHP
(Debian, Slackware) and on some distributions the BCMath need to
install as a module from package apart from the PHP package (for
example Fedora).

Regards.
gani

W dniu 13 marca 2011 21:07 użytkownik Dan Langille d...@langille.org napisał:
 On 3/12/2011 9:33 PM, ganiuszka wrote:

 W dniu 13 marca 2011 01:01 użytkownik Dan Langilled...@langille.org
  napisał:

 On 3/12/2011 9:29 AM, ganiuszka wrote:

 W dniu 11 marca 2011 21:45 użytkownik ganiuszkaganius...@gmail.com
  napisał:

 Hi,
 In my example jobid is putting in:
 ... File.JobId=8...
 but this eight:

 base64_decode_lstat(8,File.LStat)

 is exactly eight field (encoded filesize field). I seem that you used
 standard base64 decoder to decode eighth field. Am I right?

 Bacula lstat is encoded by using non-standard base64 algorithm. Your
 decoded lstat shows like this:

 [dev] =    89
 [inodes] =    1366434
 [mode] =    33200
 [links] =    1
 [uid] =    80
 [gid] =    91
 [rdev] =    5481898
 [size] =    315
 [blksize] =    16384
 [blocks] =    4
 [atime] =    1299770037
 [mtime] =    1299770037
 [ctime] =    1299770066
 [LinkFl] =    0
 [flags] =    0
 [data] =    2

 I do not understand every field, but most fields is clear. Now, I
 wrote implementation of Bacula base64_decoder in PHP. I need finish it
 and make WebGUI for this and I will share this decoder here. For this
 I am using source code of base64 implementation in Bacula and this:

 http://old.nabble.com/The-File.LStat-field-td940366.html

 Regards.
 gani

 2011/3/11 Dan Langilled...@langille.org:

 On 3/9/2011 5:36 PM, ganiuszka wrote:

 2011/3/9 Mike Egglestonmikee...@mac.com:

 Afternoon,

 I just noticed one of my clients had a huge incremental (level 2)
 backup. I want to see what file caused the huge increase. I tried
 'list
 files jobid=20097' and though I'm shown the files, I'm not shown the
 size of each file. Is there a command or query that shows me the
 size
 of the file?

 Mike

 Hi,
 Here you have SQL function for PostgreSQL (I took it from bweb):

 CREATE PROCEDURAL LANGUAGE plpgsql;
 BEGIN;

 CREATE OR REPLACE FUNCTION base64_decode_lstat(int4, varchar) RETURNS
 int8
 AS $$
 DECLARE
 val int8;
 b64 varchar(64);
 size varchar(64);
 i int;
 BEGIN
 size := split_part($2, ' ', $1);
 b64 :=
 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
 val := 0;
 FOR i IN 1..length(size) LOOP
 val := val + (strpos(b64, substr(size, i, 1))-1) *
 (64^(length(size)-i));
 END LOOP;
 RETURN val;
 END;
 $$ language 'plpgsql';

 COMMIT;

 and this is a query which lists file path, filename and size in Bytes
 (in this example for jobid=8):

 SELECT Path.Path, Filename.Name, base64_decode_lstat(8,File.LStat) AS
 size FROM Filename, File, Path WHERE File.JobId=8 AND
 File.PathId=Path.PathId AND Filename.FilenameId=File.FilenameId ORDER
 BY size ASC;

 I tested it. It works.

 For the record:

 In this query, I see base64_decode_lstat(8,File.LStat)

 What is 8?  It is not jobid.  It is a field id.  This lstat value:

 BZ FNmi IGw B BQ Bb U6Wq E7 EAA E BNeOq1 BNeOq1 BNeOrS A A C

 The eight field, as defined by ' ', is E7.

 --
 Dan Langille - http://langille.org/






 Hi,

 I wrote the Bacula LStat decoder implementation in PHP. I made WebGUI
 for this also. Now online LStat decoder (beta version) is available on
 my page Bacula.pl:

 http://www.bacula.pl/bacula-lstat-decoder/

 In the near future I need to make description of fields.

 Here is Bacula LStat decoder function in PHP:

 function decode_bacula_lstat($lstat) {
        $base64 =
 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
        $lstat = trim($lstat);
        $lstat_fields = explode(' ', $lstat);

        if(count($lstat_fields) !== 16) {
                die('Error! Number of lstat fields is invalid. Please
 make
 sure that
 it is valid lstat string.');
        }

        list($dev, $inode, $mode, $links, $uid, $gid, $rdev, $size,
 $blksize,
 $blocks, $atime, $mtime, $ctime, $linkfi, $flags, $data) =
 $lstat_fields;
        $encoded_values = array('dev' =  $dev, 'inode' =  $inode,
 'mode' =
 $mode, 'links' =  $links, 'uid' =  $uid, 'gid' =  $gid, 'rdev' =
 $rdev, 'size' =  $size, 'blksize' =  $blksize, 'blocks' =  $blocks,
 'atime' =  $atime, 'mtime' =  $mtime, 'ctime' =  $ctime, 'linkfi' =
 $linkfi, 'flags' =  $flags, 'data' =  $data);

        $ret = array();
        foreach($encoded_values as $key =  $val) {
                $result = 0;
                $is_minus = false;
                $start = 0;

                if(substr($val, 0, 1) === '-') {
                        $is_minus = true;
                        $start++;
                }

                for($i = $start; $i  strlen($val); $i

Re: [Bacula-users] file listing?

2011-03-12 Thread ganiuszka
Hi,

I wrote the Bacula LStat decoder implementation in PHP. I made WebGUI
for this also. Now online LStat decoder (beta version) is available on
my page Bacula.pl:

http://www.bacula.pl/bacula-lstat-decoder/

In the near future I need to make description of fields.

Here is Bacula LStat decoder function in PHP:

function decode_bacula_lstat($lstat) {
$base64 = 
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
$lstat = trim($lstat);
$lstat_fields = explode(' ', $lstat);

if(count($lstat_fields) !== 16) {
die('Error! Number of lstat fields is invalid. Please make sure 
that
it is valid lstat string.');
}

list($dev, $inode, $mode, $links, $uid, $gid, $rdev, $size, $blksize,
$blocks, $atime, $mtime, $ctime, $linkfi, $flags, $data) =
$lstat_fields;
$encoded_values = array('dev' = $dev, 'inode' = $inode, 'mode' =
$mode, 'links' = $links, 'uid' = $uid, 'gid' = $gid, 'rdev' =
$rdev, 'size' = $size, 'blksize' = $blksize, 'blocks' = $blocks,
'atime' = $atime, 'mtime' = $mtime, 'ctime' = $ctime, 'linkfi' =
$linkfi, 'flags' = $flags, 'data' = $data);

$ret = array();
foreach($encoded_values as $key = $val) {
$result = 0;
$is_minus = false;
$start = 0;

if(substr($val, 0, 1) === '-') {
$is_minus = true;
$start++;
}

for($i = $start; $i  strlen($val); $i++) {
$result = 6;
$result +=  strpos($base64, substr($val, $i , 1));
}
$ret[$key] = ($is_minus === true) ? -$result : $result;
}
return $ret;
}

and here is usage for this:

$lstat = 'gB DL+b IGg B A y A D5dZR BAA fN4 BNeR+z BNeR+7 BNeR+7 A A C';
$decoded_lstat = decode_bacula_lstat($lstat);
print_r($decoded_lstat);

Any suggestions and modifications are welcome.
Regards
gani


W dniu 11 marca 2011 21:45 użytkownik ganiuszka ganius...@gmail.com napisał:
 Hi,
 In my example jobid is putting in:
 ... File.JobId=8...
 but this eight:

 base64_decode_lstat(8,File.LStat)

 is exactly eight field (encoded filesize field). I seem that you used
 standard base64 decoder to decode eighth field. Am I right?

 Bacula lstat is encoded by using non-standard base64 algorithm. Your
 decoded lstat shows like this:

 [dev] = 89
 [inodes] = 1366434
 [mode] = 33200
 [links] = 1
 [uid] = 80
 [gid] = 91
 [rdev] = 5481898
 [size] = 315
 [blksize] = 16384
 [blocks] = 4
 [atime] = 1299770037
 [mtime] = 1299770037
 [ctime] = 1299770066
 [LinkFl] = 0
 [flags] = 0
 [data] = 2

 I do not understand every field, but most fields is clear. Now, I
 wrote implementation of Bacula base64_decoder in PHP. I need finish it
 and make WebGUI for this and I will share this decoder here. For this
 I am using source code of base64 implementation in Bacula and this:

 http://old.nabble.com/The-File.LStat-field-td940366.html

 Regards.
 gani

 2011/3/11 Dan Langille d...@langille.org:
 On 3/9/2011 5:36 PM, ganiuszka wrote:

 2011/3/9 Mike Egglestonmikee...@mac.com:

 Afternoon,

 I just noticed one of my clients had a huge incremental (level 2)
 backup. I want to see what file caused the huge increase. I tried 'list
 files jobid=20097' and though I'm shown the files, I'm not shown the
 size of each file. Is there a command or query that shows me the size
 of the file?

 Mike

 Hi,
 Here you have SQL function for PostgreSQL (I took it from bweb):

 CREATE PROCEDURAL LANGUAGE plpgsql;
 BEGIN;

 CREATE OR REPLACE FUNCTION base64_decode_lstat(int4, varchar) RETURNS int8
 AS $$
 DECLARE
 val int8;
 b64 varchar(64);
 size varchar(64);
 i int;
 BEGIN
 size := split_part($2, ' ', $1);
 b64 := 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
 val := 0;
 FOR i IN 1..length(size) LOOP
 val := val + (strpos(b64, substr(size, i, 1))-1) * (64^(length(size)-i));
 END LOOP;
 RETURN val;
 END;
 $$ language 'plpgsql';

 COMMIT;

 and this is a query which lists file path, filename and size in Bytes
 (in this example for jobid=8):

 SELECT Path.Path, Filename.Name, base64_decode_lstat(8,File.LStat) AS
 size FROM Filename, File, Path WHERE File.JobId=8 AND
 File.PathId=Path.PathId AND Filename.FilenameId=File.FilenameId ORDER
 BY size ASC;

 I tested it. It works.

 For the record:

 In this query, I see base64_decode_lstat(8,File.LStat)

 What is 8?  It is not jobid.  It is a field id.  This lstat value:

 BZ FNmi IGw B BQ Bb U6Wq E7 EAA E BNeOq1 BNeOq1 BNeOrS A A C

 The eight field, as defined by ' ', is E7.

 --
 Dan Langille - http://langille.org/




-- 
Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich. Jezus Chrystus

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today

Re: [Bacula-users] file listing?

2011-03-12 Thread ganiuszka
Hi,

First, many thanks for your feedback.

I researched that behaviour with filesize of your lstat field (
-1443891641). Yes, I made mistake with using shift bitwise operator.
From PHP documentation:

Warning!
Don't right shift for more than 32 bits on 32 bits systems. Don't left
shift in case it results to number longer than 32 bits.
(source: http://php.net/manual/en/language.operators.bitwise.php)

Repairing this bug is replacing the line:

$result = 6;

to this line:

$result = bcmul($result, bcpow(2,6));

It should work properly.

Thanks.
gani


W dniu 13 marca 2011 01:01 użytkownik Dan Langille d...@langille.org napisał:
 On 3/12/2011 9:29 AM, ganiuszka wrote:

 W dniu 11 marca 2011 21:45 użytkownik ganiuszkaganius...@gmail.com
  napisał:

 Hi,
 In my example jobid is putting in:
 ... File.JobId=8...
 but this eight:

 base64_decode_lstat(8,File.LStat)

 is exactly eight field (encoded filesize field). I seem that you used
 standard base64 decoder to decode eighth field. Am I right?

 Bacula lstat is encoded by using non-standard base64 algorithm. Your
 decoded lstat shows like this:

 [dev] =  89
 [inodes] =  1366434
 [mode] =  33200
 [links] =  1
 [uid] =  80
 [gid] =  91
 [rdev] =  5481898
 [size] =  315
 [blksize] =  16384
 [blocks] =  4
 [atime] =  1299770037
 [mtime] =  1299770037
 [ctime] =  1299770066
 [LinkFl] =  0
 [flags] =  0
 [data] =  2

 I do not understand every field, but most fields is clear. Now, I
 wrote implementation of Bacula base64_decoder in PHP. I need finish it
 and make WebGUI for this and I will share this decoder here. For this
 I am using source code of base64 implementation in Bacula and this:

 http://old.nabble.com/The-File.LStat-field-td940366.html

 Regards.
 gani

 2011/3/11 Dan Langilled...@langille.org:

 On 3/9/2011 5:36 PM, ganiuszka wrote:

 2011/3/9 Mike Egglestonmikee...@mac.com:

 Afternoon,

 I just noticed one of my clients had a huge incremental (level 2)
 backup. I want to see what file caused the huge increase. I tried
 'list
 files jobid=20097' and though I'm shown the files, I'm not shown the
 size of each file. Is there a command or query that shows me the size
 of the file?

 Mike

 Hi,
 Here you have SQL function for PostgreSQL (I took it from bweb):

 CREATE PROCEDURAL LANGUAGE plpgsql;
 BEGIN;

 CREATE OR REPLACE FUNCTION base64_decode_lstat(int4, varchar) RETURNS
 int8
 AS $$
 DECLARE
 val int8;
 b64 varchar(64);
 size varchar(64);
 i int;
 BEGIN
 size := split_part($2, ' ', $1);
 b64 :=
 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
 val := 0;
 FOR i IN 1..length(size) LOOP
 val := val + (strpos(b64, substr(size, i, 1))-1) *
 (64^(length(size)-i));
 END LOOP;
 RETURN val;
 END;
 $$ language 'plpgsql';

 COMMIT;

 and this is a query which lists file path, filename and size in Bytes
 (in this example for jobid=8):

 SELECT Path.Path, Filename.Name, base64_decode_lstat(8,File.LStat) AS
 size FROM Filename, File, Path WHERE File.JobId=8 AND
 File.PathId=Path.PathId AND Filename.FilenameId=File.FilenameId ORDER
 BY size ASC;

 I tested it. It works.

 For the record:

 In this query, I see base64_decode_lstat(8,File.LStat)

 What is 8?  It is not jobid.  It is a field id.  This lstat value:

 BZ FNmi IGw B BQ Bb U6Wq E7 EAA E BNeOq1 BNeOq1 BNeOrS A A C

 The eight field, as defined by ' ', is E7.

 --
 Dan Langille - http://langille.org/






 Hi,

 I wrote the Bacula LStat decoder implementation in PHP. I made WebGUI
 for this also. Now online LStat decoder (beta version) is available on
 my page Bacula.pl:

 http://www.bacula.pl/bacula-lstat-decoder/

 In the near future I need to make description of fields.

 Here is Bacula LStat decoder function in PHP:

 function decode_bacula_lstat($lstat) {
        $base64 =
 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
        $lstat = trim($lstat);
        $lstat_fields = explode(' ', $lstat);

        if(count($lstat_fields) !== 16) {
                die('Error! Number of lstat fields is invalid. Please make
 sure that
 it is valid lstat string.');
        }

        list($dev, $inode, $mode, $links, $uid, $gid, $rdev, $size,
 $blksize,
 $blocks, $atime, $mtime, $ctime, $linkfi, $flags, $data) =
 $lstat_fields;
        $encoded_values = array('dev' = $dev, 'inode' = $inode, 'mode' =
 $mode, 'links' = $links, 'uid' = $uid, 'gid' = $gid, 'rdev' =
 $rdev, 'size' = $size, 'blksize' = $blksize, 'blocks' = $blocks,
 'atime' = $atime, 'mtime' = $mtime, 'ctime' = $ctime, 'linkfi' =
 $linkfi, 'flags' = $flags, 'data' = $data);

        $ret = array();
        foreach($encoded_values as $key = $val) {
                $result = 0;
                $is_minus = false;
                $start = 0;

                if(substr($val, 0, 1) === '-') {
                        $is_minus = true;
                        $start++;
                }

                for($i = $start; $i  strlen($val); $i++) {
                        $result = 6;
                        $result

Re: [Bacula-users] file listing?

2011-03-11 Thread ganiuszka
Hi,
In my example jobid is putting in:
... File.JobId=8...
but this eight:

base64_decode_lstat(8,File.LStat)

is exactly eight field (encoded filesize field). I seem that you used
standard base64 decoder to decode eighth field. Am I right?

Bacula lstat is encoded by using non-standard base64 algorithm. Your
decoded lstat shows like this:

[dev] = 89
[inodes] = 1366434
[mode] = 33200
[links] = 1
[uid] = 80
[gid] = 91
[rdev] = 5481898
[size] = 315
[blksize] = 16384
[blocks] = 4
[atime] = 1299770037
[mtime] = 1299770037
[ctime] = 1299770066
[LinkFl] = 0
[flags] = 0
[data] = 2

I do not understand every field, but most fields is clear. Now, I
wrote implementation of Bacula base64_decoder in PHP. I need finish it
and make WebGUI for this and I will share this decoder here. For this
I am using source code of base64 implementation in Bacula and this:

http://old.nabble.com/The-File.LStat-field-td940366.html

Regards.
gani

2011/3/11 Dan Langille d...@langille.org:
 On 3/9/2011 5:36 PM, ganiuszka wrote:

 2011/3/9 Mike Egglestonmikee...@mac.com:

 Afternoon,

 I just noticed one of my clients had a huge incremental (level 2)
 backup. I want to see what file caused the huge increase. I tried 'list
 files jobid=20097' and though I'm shown the files, I'm not shown the
 size of each file. Is there a command or query that shows me the size
 of the file?

 Mike

 Hi,
 Here you have SQL function for PostgreSQL (I took it from bweb):

 CREATE PROCEDURAL LANGUAGE plpgsql;
 BEGIN;

 CREATE OR REPLACE FUNCTION base64_decode_lstat(int4, varchar) RETURNS int8
 AS $$
 DECLARE
 val int8;
 b64 varchar(64);
 size varchar(64);
 i int;
 BEGIN
 size := split_part($2, ' ', $1);
 b64 := 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
 val := 0;
 FOR i IN 1..length(size) LOOP
 val := val + (strpos(b64, substr(size, i, 1))-1) * (64^(length(size)-i));
 END LOOP;
 RETURN val;
 END;
 $$ language 'plpgsql';

 COMMIT;

 and this is a query which lists file path, filename and size in Bytes
 (in this example for jobid=8):

 SELECT Path.Path, Filename.Name, base64_decode_lstat(8,File.LStat) AS
 size FROM Filename, File, Path WHERE File.JobId=8 AND
 File.PathId=Path.PathId AND Filename.FilenameId=File.FilenameId ORDER
 BY size ASC;

 I tested it. It works.

 For the record:

 In this query, I see base64_decode_lstat(8,File.LStat)

 What is 8?  It is not jobid.  It is a field id.  This lstat value:

 BZ FNmi IGw B BQ Bb U6Wq E7 EAA E BNeOq1 BNeOq1 BNeOrS A A C

 The eight field, as defined by ' ', is E7.

 --
 Dan Langille - http://langille.org/




-- 
Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich. Jezus Chrystus

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] file listing?

2011-03-09 Thread ganiuszka
Hi,
Here you have SQL function for PostgreSQL (I took it from bweb):

CREATE PROCEDURAL LANGUAGE plpgsql;
BEGIN;

CREATE OR REPLACE FUNCTION base64_decode_lstat(int4, varchar) RETURNS int8 AS $$
DECLARE
val int8;
b64 varchar(64);
size varchar(64);
i int;
BEGIN
size := split_part($2, ' ', $1);
b64 := 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
val := 0;
FOR i IN 1..length(size) LOOP
val := val + (strpos(b64, substr(size, i, 1))-1) * (64^(length(size)-i));
END LOOP;
RETURN val;
END;
$$ language 'plpgsql';

COMMIT;

and this is a query which lists file path, filename and size in Bytes
(in this example for jobid=8):

SELECT Path.Path, Filename.Name, base64_decode_lstat(8,File.LStat) AS
size FROM Filename, File, Path WHERE File.JobId=8 AND
File.PathId=Path.PathId AND Filename.FilenameId=File.FilenameId ORDER
BY size ASC;

I tested it. It works.

Regards
gani

2011/3/9 Mike Eggleston mikee...@mac.com:
 Afternoon,

 I just noticed one of my clients had a huge incremental (level 2)
 backup. I want to see what file caused the huge increase. I tried 'list
 files jobid=20097' and though I'm shown the files, I'm not shown the
 size of each file. Is there a command or query that shows me the size
 of the file?

 Mike

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Warning to DVD users

2011-02-21 Thread ganiuszka
2011/2/21 Jari Fredriksson ja...@iki.fi:
 On 21.2.2011 0:57, ganiuszka wrote:
 Hi,

 The free command is running before every WRITE. If free command
 does not work properly then WRITE will not work. dvd-handler script
 uses the popen2 Python module which in new Python version throws
 warning because this module is deprecated in new Python. That may be
 your issue after the system upgrade to Squeeze.

 If your free command shows something like below output, that is this 
 problem.:

 # /usr/local/bacula/etc/scripts/dvd-handler /dev/sr0 free
 /usr/local/bacula/etc/scripts/dvd-handler:41: DeprecationWarning: The
 popen2 module is deprecated.  Use the subprocess module.
   import popen2
 1616412672
 No Error reported.

 When you put hash (#) in python module on that warning then DVD
 backup will be work. Another solution is rewrite dvd-handler script
 using subprocess Python  module instead popen2.


 I know knothing about python. Which module is that python module that
 I need to comment the warning out?

Hi,

This module is in localization /usr/lib/python2.6/popen2.py. There are
those two lines:

warnings.warn(The popen2 module is deprecated.  Use the subprocess module.,
  DeprecationWarning, stacklevel=2)

When you put hash (#) at the begining those lines, warning should
not occur in the free command. For example:

#warnings.warn(The popen2 module is deprecated.  Use the subprocess module.,
#  DeprecationWarning, stacklevel=2)

 For example the following fails with the newer kernels, but not with older..

 --- /etc/bacula/blank_dvd 

 dd if=/dev/zero bs=1024 count=512 | growisofs -Z /dev/sr0=/dev/fd/0

Did you try with other discs? Are there any errors in dmesg log?
What error is reported after running this command?

Regards
gani

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Warning to DVD users

2011-02-21 Thread ganiuszka
2011/2/21 Jari Fredriksson ja...@iki.fi:
 On 21.2.2011 0:57, ganiuszka wrote:
 Hi,

 The free command is running before every WRITE. If free command
 does not work properly then WRITE will not work. dvd-handler script
 uses the popen2 Python module which in new Python version throws
 warning because this module is deprecated in new Python. That may be
 your issue after the system upgrade to Squeeze.

 If your free command shows something like below output, that is this 
 problem.:

 # /usr/local/bacula/etc/scripts/dvd-handler /dev/sr0 free
 /usr/local/bacula/etc/scripts/dvd-handler:41: DeprecationWarning: The
 popen2 module is deprecated.  Use the subprocess module.
   import popen2
 1616412672
 No Error reported.

 When you put hash (#) in python module on that warning then DVD
 backup will be work. Another solution is rewrite dvd-handler script
 using subprocess Python  module instead popen2.


 I know knothing about python. Which module is that python module that
 I need to comment the warning out?

 It indeed has has that warning...

 But python is used to write to DVD with growisofs always.

Yes, but when Bacula is running the free command then it reads the
standard output. When Bacula is writing to the DVD disc then it reads
a exitcode from dvd-handler.

Regards
gani

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Warning to DVD users

2011-02-20 Thread ganiuszka
Hi,
At home I use DVD with Bacula from a long time and I have not had
problems with this functionality. I use the Debian Squeeze also (but
with kernel 2.6.36) and the DVD backup works properly. My Bacula is
compiled from Branch-5.0 (git repository) but in the past I used older
Bacula versions with DVD.

What does not work exactly (label new volumes, backup, etc.)? Can you
put some output from DVD backup?

That may be Python upgrade issue. You can check what is a output from
this command:

/path/to/dvd/handler/script/dvd-handler DVD device free

for example:

/usr/local/bacula/scripts/dvd-hanlder /dev/sr0 free

Regards
gani

2011/2/20 Jari Fredriksson ja...@iki.fi:

 If there are any any more ;)

 I use ancient Bacula 2.0.2 on Debian Linux, as it seems to work pretty
 nicely with DVD burner.

 However, I found out that when upgrading to Kernel to 2.6.32 the
 dvd+rw-tools package and growisofs does not work any more.

 The issue comes when you upgrade Debian to Squeeze, there 2.6.32 is
 stock Kernel. It is also available to Lenny via Backports. All the same,
 that new kernel breaks Bacula with the growisofs.

 --

 FORTUNE PROVIDES QUESTIONS FOR THE GREAT ANSWERS: #19
 A:      To be or not to be.
 Q:      What is the square root of 4b^2?

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Warning to DVD users

2011-02-20 Thread ganiuszka
Hi,

The free command is running before every WRITE. If free command
does not work properly then WRITE will not work. dvd-handler script
uses the popen2 Python module which in new Python version throws
warning because this module is deprecated in new Python. That may be
your issue after the system upgrade to Squeeze.

If your free command shows something like below output, that is this problem.:

# /usr/local/bacula/etc/scripts/dvd-handler /dev/sr0 free
/usr/local/bacula/etc/scripts/dvd-handler:41: DeprecationWarning: The
popen2 module is deprecated.  Use the subprocess module.
  import popen2
1616412672
No Error reported.

When you put hash (#) in python module on that warning then DVD
backup will be work. Another solution is rewrite dvd-handler script
using subprocess Python  module instead popen2.

In addition, DVD backup does not work in Bacula version 5.0.2 and
5.0.3. I reported the bug and it is fixed in Branch-5.0.

http://bugs.bacula.org/view.php?id=1624

In Branch-5.1 DVD backup functionality is not supported and fully disabled.

Regards.
gani

2011/2/20 Jari Fredriksson ja...@iki.fi:
 That free command probably works, as the dvdhandler is totally cabable
 to READ, but not WRITE to the media. I restored data from my Lenny
 backup into new Squeeze without problems. But any try to write to the
 media failed, including a try to blank a dvd using growisofs.

 I'm amazed to see that you have Squeeze with Bacula 5.. and it works!

 Maybe I have to go back and re-evaluate Bacula with latest version. It
 was 1 or 2 years ago that I checked and could not make any version but
 2.0.* to work. I don't remember the problems then, as the bug reports
 were put out and forgotten. Bacula just messed up with its database,
 volumes and all. When I went to 2.0.2 everything worked fine.


 On 20.2.2011 20:28, ganiuszka wrote:
 Hi,
 At home I use DVD with Bacula from a long time and I have not had
 problems with this functionality. I use the Debian Squeeze also (but
 with kernel 2.6.36) and the DVD backup works properly. My Bacula is
 compiled from Branch-5.0 (git repository) but in the past I used older
 Bacula versions with DVD.

 What does not work exactly (label new volumes, backup, etc.)? Can you
 put some output from DVD backup?

 That may be Python upgrade issue. You can check what is a output from
 this command:

 /path/to/dvd/handler/script/dvd-handler DVD device free

 for example:

 /usr/local/bacula/scripts/dvd-hanlder /dev/sr0 free

 Regards
 gani

 2011/2/20 Jari Fredriksson ja...@iki.fi:

 If there are any any more ;)

 I use ancient Bacula 2.0.2 on Debian Linux, as it seems to work pretty
 nicely with DVD burner.

 However, I found out that when upgrading to Kernel to 2.6.32 the
 dvd+rw-tools package and growisofs does not work any more.

 The issue comes when you upgrade Debian to Squeeze, there 2.6.32 is
 stock Kernel. It is also available to Lenny via Backports. All the same,
 that new kernel breaks Bacula with the growisofs.

 --

 FORTUNE PROVIDES QUESTIONS FOR THE GREAT ANSWERS: #19
 A:      To be or not to be.
 Q:      What is the square root of 4b^2?

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Warning to DVD users

2011-02-20 Thread ganiuszka
2011/2/20 Jari Fredriksson ja...@iki.fi:
 That free command probably works, as the dvdhandler is totally cabable
 to READ, but not WRITE to the media. I restored data from my Lenny
 backup into new Squeeze without problems. But any try to write to the
 media failed, including a try to blank a dvd using growisofs.

Hi,

If growisofs program, as you writing, does not work in the Squeeze
so all other programs using growisofs does not work also (k3b and
others) :-)
It is impossible.

Regards
gani

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] label formats

2010-11-19 Thread ganiuszka
W dniu 19.11.2010 12:49, Alan Brown pisze:

 Does anyone know if there's a way of only using 3 numeric digits?

 ie 001-999 instead of 0001-

Hi,

You can use the Counter Resource. For example:

Counter {
   Name = somename
   Maximum = 999
   Catalog = catalog resource name
}

Pool {


Label Format = File-${somename+:p/3/0/r}
}

Here you can find more information about the Counter Resource:

http://bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#SECTION001819

http://www.bacula.org/fr/dev-manual/Variable_Expansion.html#SECTION00335

Best regards
gani

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Nagios plugin for regression testing

2010-11-17 Thread ganiuszka
W dniu 16.11.2010 03:50, Dan Langille pisze:
 Here is my nagios script for verifying that my regression tests are
 showing up on the server.  Feel free to use it or modify it.  Keep the
 copyright notice please.

Hi,

Thanks for the script. I made a few changes. The following code should 
work on GNU/Linux and FreeBSD also (requires wget). There is extra file 
in which you can update the expected number of tests.

To configure a user name and file location of the expected number of tests.

Best regards.
gani


#!/bin/sh

# Copyright 2010 - Dan Langille d...@langille.org
# modify by gani

# Exit codes for Nagios:
# 0 - OK - tests match
# 1 - WARNING - tests count does not match
# 2 - CRITICAL - expected tests count file does not exists

# Expected tests for user
USER='langille'

# Expected tests count file. It content is number of tests expected 
today. (for example 15).
EXPECTED_TESTS_COUNT_FILE='/home/gani/tests/expected_tests_count'

WGET=`which wget`
GREP=`which grep`
HEAD=`which head`

# output returns to stdout, quiet mode
WGET_PARAMS='-O - -q'

TODAY=`date +%Y-%m-%d`
URL=http://regress.bacula.org/index.php?project=baculadate=${TODAY};

if [ -e ${EXPECTED_TESTS_COUNT_FILE} ]
then
EXPECTED_TESTS_COUNT=`${HEAD} -n 1 ${EXPECTED_TESTS_COUNT_FILE}`
TESTS_COUNT=`${WGET} ${WGET_PARAMS} ${URL} | ${GREP} -c ${USER}`

if [ ${TESTS_COUNT} -eq ${EXPECTED_TESTS_COUNT} ]
then
echo Regression OK for ${TODAY}: Actual count = 
${TESTS_COUNT}. 
Expected count = ${EXPECTED_TESTS_COUNT}
EXIT=0
else
echo Missing data for ${TODAY}: Actual count = ${TESTS_COUNT}. 
Expected count = ${EXPECTED_TESTS_COUNT}
EXIT=1
fi
else
echo Expected tests count file ${EXPECTED_TESTS_COUNT_FILE} does not 
exists!
EXIT=2
fi

exit ${EXIT}

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Help needed setting up DVD under Windows

2010-11-08 Thread ganiuszka
Phil Stracchino pisze:
 The DVD writing code in bacula proved to be both unreliable and
 unmaintainable, has been deprecated in the last several major releases,
 and is planned to be removed shortly.

Hi,

Where did you get this information? Is it proven message?

I use backup to DVD from long time and in my opinion as Bacula user this 
functionality works well. I think, it will be a big pity for users for 
which tape drives are too expensive and for which disk based backup is 
not enough (for example using at home or small office). DVD discs are 
cheap and backup to DVD is nice solution.

If it is true that the DVD code will soon be removed then remains for me 
respect this decision.

What do you think about it?

Best regards.
gani

--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Help needed setting up DVD under Windows

2010-11-08 Thread ganiuszka
Phil Stracchino pisze:
 On 11/08/10 18:32, Dan Langille wrote:
 On 11/8/2010 5:18 PM, ganiuszka wrote:
 Phil Stracchino pisze:
 The DVD writing code in bacula proved to be both unreliable and
 unmaintainable, has been deprecated in the last several major releases,
 and is planned to be removed shortly.
 Hi,

 Where did you get this information? Is it proven message?
 I just used this Google search: bacula dvd deprecated

 And found:

 http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg41173.html
 
 And at the time, I personally verified that with Kern before posting the
 reply.
 

I needed confirmation. Thanks for the info.
But I feel sorry for the loss of this functionality.
Best regards.
Gani

--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Help needed setting up DVD under Windows

2010-11-08 Thread ganiuszka
Ryan Novosielski pisze:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 11/08/2010 05:18 PM, ganiuszka wrote:
 Phil Stracchino pisze:
 The DVD writing code in bacula proved to be both unreliable and
 unmaintainable, has been deprecated in the last several major releases,
 and is planned to be removed shortly.
 Hi,

 Where did you get this information? Is it proven message?

 I use backup to DVD from long time and in my opinion as Bacula user this 
 functionality works well. I think, it will be a big pity for users for 
 which tape drives are too expensive and for which disk based backup is 
 not enough (for example using at home or small office). DVD discs are 
 cheap and backup to DVD is nice solution.

 If it is true that the DVD code will soon be removed then remains for me 
 respect this decision.

 What do you think about it?
 
 What version are you using? I was under the impression that it was
 already removed some time ago.

I use Bacula 5.0.3 with DVD patch (because in Bacula 5.0.2 and 5.0.3 
backup for DVD does not work correctly).

gani

--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Help needed setting up DVD under Windows

2010-11-08 Thread ganiuszka
Dan Langille pisze:
 On 11/8/2010 5:18 PM, ganiuszka wrote:
 Phil Stracchino pisze:
 The DVD writing code in bacula proved to be both unreliable and
 unmaintainable, has been deprecated in the last several major releases,
 and is planned to be removed shortly.

 Hi,

 Where did you get this information? Is it proven message?
 
 I just used this Google search: bacula dvd deprecated
 
 And found:
 
 http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg41173.html 
 

Thank you.
A few days ago I asked here about it to see if anything has changed in 
this case.

http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg44803.html

Best regards.
Gani

--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Question about DVD support in the future

2010-11-06 Thread ganiuszka
Hi,

When I reported a bug #1624 to the Bacula Bug Tracker I was getting word 
about disabling support for DVD in a next major Bacula release.

I would asking about that. Does anyone know more about that?

In the GIT repository I did not found any commit related with this 
subject yet.

Thanks for answers.
gani

--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Enabling hardware compression

2010-08-18 Thread ganiuszka
W dniu 2010.08.18 16:57, Romer Ventura pisze:
 Hello,

 I am running Bacula 5.0.2 with a Quantum SuperLoader 3 with DLTv4 tape
 drive. If i want to enable hardware compression so i can use 320GB from
 my VS1 tapes all i would need to do is run this command: mt -f
 /dev/nst0 defcompression 1, correct?

Hi,

Please note, mt program occur in two different versions: mt-gnu and mt-st.

mt-gnu can not switch the hardware compression but mt-st can switch it.

In addition, in mtx tools you will find program called tapeinfo. It can 
show the hardware compression state for a tape drive and much more.

good luck
gani

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bsmtp or another solution

2010-08-18 Thread ganiuszka
W dniu 2010.08.18 16:25, Daniel pisze:
 Hello,

 I'm trying to make bacula sending email through bsmtp but I can not. Has
 anyone managed to configure this application or have another solution to
 the bacula send email to the end of a job??


Hi,

For example simple mail command:

MailCommand = mail -u your_username -s \Bacula %n %t %e of %c %l\ %r

More information about bsmtp you can find here:

http://bacula.org/5.0.x-manuals/en/utility/utility/Volume_Utility_Tools.html#SECTION00211

Regards
gani

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula will not start but gives no error

2010-05-24 Thread ganiuszka
duxbuz pisze:
 Thanks.
 
 I ran the first of the debug commands
 
 u...@mypc:~/bacula/bin$ sudo ./bacula-dir -d 200 -c bacula-dir.conf 
 
 
  and had this output:
 
 bacula-dir: dird.c:184-0 Debug level = 200
 bacula-dir: runscript.c:296-0 runscript: debug
 bacula-dir: runscript.c:297-0  -- RunScript
 bacula-dir: runscript.c:298-0   -- 
 Command=/home/user/bacula/bin/make_catalog_backup.pl MyCatalog
 bacula-dir: runscript.c:299-0   -- Target=
 bacula-dir: runscript.c:300-0   -- RunOnSuccess=1
 bacula-dir: runscript.c:301-0   -- RunOnFailure=0
 bacula-dir: runscript.c:302-0   -- FailJobOnError=1
 bacula-dir: runscript.c:303-0   -- RunWhen=2
 bacula-dir: runscript.c:296-0 runscript: debug
 bacula-dir: runscript.c:297-0  -- RunScript
 bacula-dir: runscript.c:298-0   -- 
 Command=/home/user/bacula/bin/delete_catalog_backup
 bacula-dir: runscript.c:299-0   -- Target=
 bacula-dir: runscript.c:300-0   -- RunOnSuccess=1
 bacula-dir: runscript.c:301-0   -- RunOnFailure=0
 bacula-dir: runscript.c:302-0   -- FailJobOnError=1
 bacula-dir: runscript.c:303-0   -- RunWhen=1
 24-May 09:52 bacula-dir: ERROR TERMINATION at bsys.c:453
 Could not open pid file. /home/user/bacula/bin/working/bacula-dir.9101.pid 
 ERR=No such file or directory
 
 Permissions?

Hi

It seems that Bacula daemons cannot get access to directory 
/home/user/bacula/bin/working/.
Do you have this directory? If not you should make its. Without a 
directory for PID files Bacula will not run.

Best regards.
gani

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula will not start but gives no error

2010-05-21 Thread ganiuszka
duxbuz wrote:
 Hello, I am trying to get bacula up and running. Did all the installs, ran 
 scripts for the mysql setup... all looked good.
 
 But it seems that the daemons will not start
 

Hi

You can try run Bacula daemons with -d parameter. It runs Bacula daemons 
with the debug mode.

For example with a debug level 200:

$ sudo ./bacula-dir -d 200 -c bacula-dir.conf
$ sudo ./bacula-fd -d 200 -c bacula-fd.conf
$ sudo ./bacula-sd -d 200 -c bacula-sd.conf

This should show what is wrong.

Regards.
gani

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bcopy fails: No Volume name given

2010-04-24 Thread ganiuszka
Thomas Mueller pisze:
 hi gani
 
 thanks, tried it, but same error:
 
 # bcopy -v -c /etc/bacula/bacula-sd.conf -i35L4 -oCOPY35L4 /dev/nst0 
 /srv/FileStorage -p
 bcopy: butil.c:281 Using device: /dev/nst0 for reading.
 23-Apr 07:29 bcopy JobId 0: Invalid slot=0 defined in catalog for Volume 
 35L4 on SuperLoader3-LTO4 (/dev/nst0). Manual load may be required.
 23-Apr 07:29 bcopy JobId 0: 3301 Issuing autochanger loaded? drive 0 
 command.
 23-Apr 07:29 bcopy JobId 0: 3302 Autochanger loaded? drive 0, result is 
 Slot 6.
 23-Apr 07:29 bcopy JobId 0: Ready to read from volume 35L4 on device 
 SuperLoader3-LTO4 (/dev/nst0).
 bcopy: butil.c:284 Using device: /srv/FileStorage for writing.
 23-Apr 07:29 bcopy: Fatal Error at bcopy.c:204 because:
 dev open failed: Could not open file device FileStorage (/srv/FileStorage). 
 No Volume name given.
 
 
 if I try /srv/FileStorage/COPY35L4 as output device it tells me it
 could not find the device in bacula-sd.conf. 
 
 I'm going to think, that the utility is broken with file devices.

Hi,

You are right. Previously I used Bacula 5.0.0 and the bcopy works well. 
Today I checked the bcopy from Bacula 5.0.1. I have the same effect. I 
reported it as bug.

http://bugs.bacula.org/view.php?id=1560

Now it is fixed.

Regards.
gani

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula 5 copy job

2010-04-20 Thread ganiuszka
openit admin wrote:
 thanks for your help; ok I understand and I have changed the config. 
 When I run the job I get the following:
 
 Run Copy job
 JobName:   Full Backup Copy
 Bootstrap: *None*
 Client:kapital-backup-fd
 FileSet:   Full Linux Set
 Pool:  Full-Pool (From Job resource)
 Read Storage:  File (From Pool resource)
 Write Storage: LTO2Drive (From Storage from Pool's NextPool resource)
 JobId: *None*
 When:  2010-04-20 09:30:38
 Catalog:   MyCatalog
 Priority:  10
 OK to run? (yes/mod/no): yes
 Job queued. JobId=175
 
 I thin this looks correct. But nothing happens; the job is in state 
 running. with status storage=LTO2Ultrium I get
 
 Device status:
 Device FileStorage (/backup/bacula) is mounted with:
 Volume:  BackupFull-0001
 Pool:*unknown*
 Media type:  File
 Total Bytes Read=0 Blocks Read=0 Bytes/block=0
 Positioned at File=0 Block=0
 Device Ultrium-LTO2 (/dev/nst0) is not open.
 Device is BLOCKED waiting to create a volume for:
Pool:Tape-Pool
Media type:  LTO-2
 
 
 Used Volume status:
 BackupFull-0001 on device FileStorage (/backup/bacula)
 Reader=1 writers=0 devres=0 volinuse=1
 BackupFull-0001 read volume JobId=163
 BackupFull-0001 read volume JobId=175
 
 a tape is inserted; but nothing happens.

Hi,

Do you have any tapes labeled in pool Tape-Pool or tapes in Tape-Pool 
with 'Append' status? If not, you should label it.

Regards
gani

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula 5 copy job

2010-04-19 Thread ganiuszka
openit admin pisze:
 Hi,
 
 I have the followeing problem, with a copy job. I want do the following: 
 the monthly full backup (to a disk pool) should be copied to tape. I do 
 not know how to do this.
 
 # Full Backup Pool to disk
 Pool {
Name = Full-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 3 months
Maximum Volume Jobs = 1
Label Format = BackupFull-
Maximum Volumes = 50
Next Pool = Tape-Pool
 }
 # Inc Pool to disk
 Pool {
Name = Inc-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 35 days
Maximum Volume Jobs = 9
Label Format = BackupInc-
Maximum Volumes = 50
 }
 # Tape Pool
 Pool {
Name = Tape-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 3 months
Storage = LTO2Drive
 }
 
 
 
 # Copy Job
 Job {
Name = Full Backup Copy
Type = Copy
Level = Full
Client = kapital-backup-fd
FileSet = Full Linux Set
Schedule = WeeklyCopyToTape
Pool = Full-Pool
Selection Type = SQLQuery
Selection Pattern = select distinct on (name) jobid from job where 
 level='F' and name not like '%Copy%' and name='Backup clusternode1' 
 order by name, jobid desc;
Storage = LTO2Drive
Messages = Standard
 }
 
 When I start the Copy Job I ghet the following messages:
 
 Run Copy job
 JobName:   Full Backup Copy
 Bootstrap: *None*
 Client:kapital-backup-fd
 FileSet:   Full Linux Set
 Pool:  Full-Pool (From Job resource)
 Read Storage:  LTO2Drive (From Job resource)
  ^^
 Write Storage: LTO2Drive (From Storage from Pool's NextPool resource)
  ^^
Hi,

For Copy Jobs you can not define the same read and write storage 
because this copy does not make sense.

You can define a disk storage in the Pool resources Full-Pool and 
Inc-Pool (instead of in Job resource) then when you will run the copy 
job, the storage (read and write) will be choose automaticly.

Another way is that you can modify a read storage parameter after run 
command and before confirming it.

Regards
gani


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bconsole command for media info

2010-04-18 Thread ganiuszka
Lamp Zy pisze:
 Hi,
 
 In bacula-5.0.1 if I run the bconsole command:
llist media pool=FullTapes
 I'll get the extended information for all tapes in the pool.
 
 Is there a command that will give me the same information bit only for 
 tapes I specifically ask for (like mediaid=4 or volumelabel=...)

Hi,

For volume name you can use command:

llist media=medianame

where medianame is a volume name.

gani


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Character Substitution

2010-02-02 Thread ganiuszka
Richard Scobie pisze:
 I have a Client Run After Job which runs a bash script which ends up 
 writing a file on the client,  %i_%v.txt
 
 It all works except the substitution is not occuring and it is literally 
 writing the file %i_%v.txt.
 
 Is this expected?

How do you create this file?

In Client Run After Job directive %v will not be replaced because it 
can be replaced only on Director side.
So if you has:

Client Run After Job = /path/script.sh %i %v

than

%v will be empty.

Regards
gani

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


Re: [Bacula-users] max volume bytes

2010-02-02 Thread ganiuszka
Ismail OZATAY pisze:
 I want to use Maximum Volume Bytes option to create separate volumes but 
 although I use this option it is still growing in an only one volume. 
 What is wrong with my config ? Here is the latest state of the volume.
 
 [r...@mail bacula]# ll /mnt/yedek/
 total 8302597
 drwxrwxrwx 1 root root  0 Feb  1 17:37 bacula-restores
 -rwxrwSrwx 1 root root 8501858925 Feb  2 10:42 mail365-0001
 
 Here is my pool configuration.
 
 Pool {
   Name = Yillik
   Pool Type = Backup
   Recycle = yes
   AutoPrune = yes
   Volume Retention = 365 days
   Label Format = mail365-
   Maximum Volume Bytes = 512000
 }

Hi,

If you added Maximum Volume Bytes directive after creating a volume, 
you should to use update volume command for volumes created before a 
change some volumes limits in pool resource (if you wish to do, of 
course). Please see the Bacula documentation:

http://bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#SECTION001615

(exactly second paragraph)

Regards
gani

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


Re: [Bacula-users] Auto label frustration....

2010-02-01 Thread ganiuszka
Russell Sutherland pisze:
 My autolabels just stopped working. For no apparent reason. Here's the  
 error message:
 
 *messages
 01-Feb 12:49 tank-dir JobId 21689: Start Backup JobId 21689,  
 Job=madhaus-home.2010-02-01_12.49.16_07
 01-Feb 12:49 tank-dir JobId 21689: Using Device Tank-large-device
 01-Feb 12:49 tank-sd JobId 21689: Job madhaus-home. 
 2010-02-01_12.49.16_07 waiting. Cannot find any appendable volumes.
 Please use the label  command to create a new Volume for:
  Storage:  Tank-large-device (/opt/bacula)
  Pool: Inc-Pool
  Media type:   Tank-large-file
 
 I  believe my configuration is set to allow for auto labeling:
 
 Pool {
  Name = Inc-Pool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 20 days
  Maximum Volume Jobs = 216 # 6 times number of  
 total Jobs, One week of Incs
  Label Format = Inc-
  Maximum Volumes = 7
 }

Hi,

You have Maximum Volumes directive defined for Pool Inc-Pool and it 
is set to 7. This means that your limit volumes for this Pool is worn 
out because in Pool there are 7 labeled tapes.

Regards.
gani

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


Re: [Bacula-users] Client problem on Windows Server 2003 R2

2010-02-01 Thread ganiuszka
Heitor Medrado de Faria pisze:
 You should not write a ip as your client name.
 Is that a problem? All my clients (Linux until now) have IP address as 
 name and I haven't problems before. Also it's not a IP address because 
 the name is 10.128.50.10-fd this is a string to me (I don't know for 
 Bacula :( )
 Its not a problem But I just think its not practical and maybe 
 considered a security flaw.
 Your client name is not equal to the name on bacula-fd.conf. It must be
 exactly the same name.
 Again, I have this done with all my old clients the problem come up 
 right now while I'm trying to configure this Windows Client.
 But the names are not equal... I think it cannot work that way.

The Name of FileDaemon in bacula-fd.conf and the name of Client in 
bacula-dir.conf do not have to be the same.

http://bacula.org/5.0.x-manuals/en/main/main/Customizing_Configuration_F.html#SECTION00154

Regards.
gani

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


Re: [Bacula-users] Auto label frustration....

2010-02-01 Thread ganiuszka
Russell Sutherland pisze:
 
 On 1-Feb-10, at 1:54 PM, ganiuszka wrote:
 
 Russell Sutherland pisze:
 My autolabels just stopped working. For no apparent reason. Here's 
 the  error message:
 *messages
 01-Feb 12:49 tank-dir JobId 21689: Start Backup JobId 21689,  
 Job=madhaus-home.2010-02-01_12.49.16_07
 01-Feb 12:49 tank-dir JobId 21689: Using Device Tank-large-device
 01-Feb 12:49 tank-sd JobId 21689: Job madhaus-home. 
 2010-02-01_12.49.16_07 waiting. Cannot find any appendable volumes.
 Please use the label  command to create a new Volume for:
 Storage:  Tank-large-device (/opt/bacula)
 Pool: Inc-Pool
 Media type:   Tank-large-file
 I  believe my configuration is set to allow for auto labeling:
 Pool {
 Name = Inc-Pool
 Pool Type = Backup
 Recycle = yes
 AutoPrune = yes
 Volume Retention = 20 days
 Maximum Volume Jobs = 216 # 6 times number of  
 total Jobs, One week of Incs
 Label Format = Inc-
 Maximum Volumes = 7
 }

 Hi,

 You have Maximum Volumes directive defined for Pool Inc-Pool and 
 it is set to 7. This means that your limit volumes for this Pool is 
 worn out because in Pool there are 7 labeled tapes.


 Thanks. But should it not start to recycle the existing volumes?

Yes, if Volume Retention time expires.

Regards.
gani

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


Re: [Bacula-users] Client problem on Windows Server 2003 R2

2010-02-01 Thread ganiuszka
Heitor Medrado de Faria pisze:
 ganiuszka wrote:
 Heitor Medrado de Faria pisze:
 You should not write a ip as your client name.
 Is that a problem? All my clients (Linux until now) have IP address 
 as name and I haven't problems before. Also it's not a IP address 
 because the name is 10.128.50.10-fd this is a string to me (I 
 don't know for Bacula :( )
 Its not a problem But I just think its not practical and maybe 
 considered a security flaw.
 Your client name is not equal to the name on bacula-fd.conf. It 
 must be
 exactly the same name.
 Again, I have this done with all my old clients the problem come up 
 right now while I'm trying to configure this Windows Client.
 But the names are not equal... I think it cannot work that way.

 The Name of FileDaemon in bacula-fd.conf and the name of Client in 
 bacula-dir.conf do not have to be the same.

 http://bacula.org/5.0.x-manuals/en/main/main/Customizing_Configuration_F.html#SECTION00154
  


 Regards.
 gani
 Hã???
 In most cases, the password corresponds to a particular name, so both 
 the name and the password must match to be authorized.

In most cases...
Look at the diagram.
Did you try this configuration?

Regards
gani

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


Re: [Bacula-users] Allow Higher Duplicates directive

2010-01-31 Thread ganiuszka
Dan Langille pisze:
 Resending with additional information
 
 ganiuszka wrote:
 I used to this job next directives:

 Allow Duplicate Jobs = no
 Allow Higher Duplicates = yes

 I ran the job, and the moment I started a job of the same name but 
 with a higher priority. First job still worked, second job had a 
 status waiting for higher priority jobs to finish. Why the first job 
 does not abort and the second job starts out of hand?
 
 My guess: Because it was already running.  Bacula does not cancel
 running jobs.  The directives are applied to jobs as they are being
 added to the queue.
 
 Try running three jobs and then you'll see.

Thanks for reply.

Yes, I ran three jobs, and I have the same effect. All three has been 
finished OK.

I guess that  Allow Higher Duplicates does not work correctly. I saw 
the source code and I guess that if Allow Higher Duplicates is set yes 
than actions described in Bacula documentation for this directive do not 
work.

I created a Duplicate Job Control actions diagram. You can see it here:

http://www.image-share.com/image.php?img=159/63.jpg

Here are my steps with three jobs:

*run job=QemuImages storage=UP pool=Paktos priority=15
Run Backup job
JobName:  QemuImages
Level:Full
Client:   darkstar-fd
FileSet:  QemuImages_FileSet
Pool: Paktos (From User input)
Storage:  UP (From command line)
When: 2010-01-31 19:18:37
Priority: 15
OK to run? (yes/mod/no): yes
Job queued. JobId=276
*run job=QemuImages storage=UP pool=Paktos priority=10
Run Backup job
JobName:  QemuImages
Level:Full
Client:   darkstar-fd
FileSet:  QemuImages_FileSet
Pool: Paktos (From User input)
Storage:  UP (From command line)
When: 2010-01-31 19:18:42
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=277
You have messages.
*run job=QemuImages storage=UP pool=Paktos priority=5
Run Backup job
JobName:  QemuImages
Level:Full
Client:   darkstar-fd
FileSet:  QemuImages_FileSet
Pool: Paktos (From User input)
Storage:  UP (From command line)
When: 2010-01-31 19:18:50
Priority: 5
OK to run? (yes/mod/no): yes
Job queued. JobId=278
*status dir
.
.
Running Jobs:
Console connected at 31-sty-10 19:16
  JobId Level   Name   Status
==
276 FullQemuImages.2010-01-31_19.18.40_15 is running
277 FullQemuImages.2010-01-31_19.18.44_16 is waiting for higher 
priority jobs to finish
278 FullQemuImages.2010-01-31_19.18.51_17 is waiting for higher 
priority jobs to finish

.
.

Regards.
gani

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


Re: [Bacula-users] Allow Higher Duplicates directive

2010-01-31 Thread ganiuszka
Dan Langille pisze:
 ganiuszka wrote:
 Dan Langille pisze:
 Resending with additional information

 ganiuszka wrote:
 I used to this job next directives:

 Allow Duplicate Jobs = no
 Allow Higher Duplicates = yes

 I ran the job, and the moment I started a job of the same name but 
 with a higher priority. First job still worked, second job had a 
 status waiting for higher priority jobs to finish. Why the first 
 job does not abort and the second job starts out of hand?
 My guess: Because it was already running.  Bacula does not cancel
 running jobs.  The directives are applied to jobs as they are being
 added to the queue.

 Try running three jobs and then you'll see.

 Thanks for reply.

 Yes, I ran three jobs, and I have the same effect. All three has been 
 finished OK.

 I guess that  Allow Higher Duplicates does not work correctly. I saw 
 the source code and I guess that if Allow Higher Duplicates is set 
 yes than actions described in Bacula documentation for this 
 directive do not work.
 
 In my previous message I mentioned these items.  Did you try them?

Yes, I did. They did not work.

If Allow Higher Duplicates is set to yes then below directives are 
not taken into account.

Cancel Queued Duplicates
Cancel Running Duplicates

Regards
gani

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


[Bacula-users] Allow Higher Duplicates directive

2010-01-30 Thread ganiuszka
Hi,

I am testing Duplicate Job Control. I found a few strange behaviour. 
One of these is Allow Higher Duplicates.

I used to this job next directives:

Allow Duplicate Jobs = no
Allow Higher Duplicates = yes

I ran the job, and the moment I started a job of the same name but with 
a higher priority. First job still worked, second job had a status 
waiting for higher priority jobs to finish. Why the first job does not 
abort and the second job starts out of hand?

This is my configuration and steps for this situation:


Storage {
 Name = UrzadzeniePlikowe
 Address = darkstar
 SDPort = 9103
 Password = *
 Media Type = Plik
 Device = UrzadzeniePlikoweDev
 Maximum Concurrent Jobs = 10
}

Storage {
 Name = UP
 Address = darkstar
 SDPort = 9103
 Password = *
 Media Type = Plik
 Device = UPDev
 Maximum Concurrent Jobs = 10
}

Pool {
 Name = Tescik
 Pool Type = Backup
 Recycle = no
 Storage = UrzadzeniePlikowe
}

Pool {
 Name = Paktos
 Pool Type = Backup
 Recycle = no
 Storage = UP
}

Job {
 Name = QemuImages
 Type = Backup
 Level = Full
 Pool = Tescik
 Client = darkstar-fd
 Messages = DirMessages
 FileSet = QemuImages_FileSet
 Allow Duplicate Jobs = no
 Allow Higher Duplicates = yes
 Maximum Concurrent Jobs = 10
}

run job=QemuImages storage=UP pool=Paktos priority=15
run job=QemuImages storage=UrzadzeniePlikowe pool=Tescik priority=10

*run job=QemuImages storage=UP pool=Paktos priority=15
Run Backup job
JobName:  QemuImages
Level:Full
Client:   darkstar-fd
FileSet:  QemuImages_FileSet
Pool: Paktos (From User input)
Storage:  UP (From command line)
When: 2010-01-30 22:01:17
Priority: 15
OK to run? (yes/mod/no): yes
Job queued. JobId=246
*run job=QemuImages storage=UrzadzeniePlikowe pool=Tescik priority=10
Run Backup job
JobName:  QemuImages
Level:Full
Client:   darkstar-fd
FileSet:  QemuImages_FileSet
Pool: Tescik (From Job resource)
Storage:  UrzadzeniePlikowe (From command line)
When: 2010-01-30 22:01:58
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=247

* status dir

..
..
Running Jobs:
Console connected at 30-sty-10 22:00
  JobId Level   Name   Status
==
246 FullQemuImages.2010-01-30_22.01.48_28 is running
247 FullQemuImages.2010-01-30_22.02.00_29 is waiting for higher 
priority jobs to finish

.
.

Thanks.
gani

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


[Bacula-users] Cancel Running Duplicates and Fatal error

2010-01-30 Thread ganiuszka
Hi,

Now, I am testing Cancel Running Duplicates directive. I noticed a 
strange behaviour also.

My Job configuration included:

Allow Duplicate Jobs = no
Allow Higher Duplicates = no
Cancel Running Duplicates = yes

First backup has been canceled, and second backup has been finished OK. 
It is good for this duplicate configuration, but fatal error is 
worrisome. I tried several times and this situation occurs every time.

There are steps for this situation:

*run job=QemuImages storage=UP pool=Paktos
Run Backup job
JobName:  QemuImages
Level:Full
Client:   darkstar-fd
FileSet:  QemuImages_FileSet
Pool: Paktos (From User input)
Storage:  UP (From command line)
When: 2010-01-31 02:26:50
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=249
*run job=QemuImages storage=UrzadzeniePlikowe pool=Tescik
Run Backup job
JobName:  QemuImages
Level:Full
Client:   darkstar-fd
FileSet:  QemuImages_FileSet
Pool: Tescik (From Job resource)
Storage:  UrzadzeniePlikowe (From command line)
When: 2010-01-31 02:27:06
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=250
You have messages.
*messages
31-sty 02:26 darkstar-dir JobId 249: Start Backup JobId 249, 
Job=QemuImages.2010-01-31_02.26.57_33
31-sty 02:26 darkstar-dir JobId 249: Using Device UPDev
31-sty 02:26 darkstar-sd JobId 249: Volume  previously written, 
moving to end of data.
31-sty 02:26 darkstar-sd JobId 249: Ready to append to end of Volume 
 size=2179759754
31-sty 02:27 darkstar-dir JobId 250: Cancelling duplicate JobId=249.
31-sty 02:27 darkstar-sd JobId 249: JobId=249 
Job=QemuImages.2010-01-31_02.26.57_33 marked to be canceled.
31-sty 02:27 darkstar-sd JobId 249: Job write elapsed time = 00:00:54, 
Transfer rate = 29.30 M Bytes/second
31-sty 02:27 darkstar-sd JobId 249: JobId=249 
Job=QemuImages.2010-01-31_02.26.57_33 marked to be canceled.
31-sty 02:27 darkstar-dir JobId 249: Bacula darkstar-dir 5.0.0 
(26Jan10): 31-sty-2010 02:27:53
   Build OS:   x86_64-unknown-linux-gnu debian 5.0.3
   JobId:  249
   Job:QemuImages.2010-01-31_02.26.57_33
   Backup Level:   Full
   Client: darkstar-fd 5.0.0 (26Jan10) 
x86_64-unknown-linux-gnu,debian,5.0.3
   FileSet:QemuImages_FileSet 2009-12-02 19:55:06
   Pool:   Paktos (From User input)
   Catalog:MojaBazaBaculi (From Client resource)
   Storage:UP (From Pool resource)
   Scheduled time: 31-sty-2010 02:26:50
   Start time: 31-sty-2010 02:26:59
   End time:   31-sty-2010 02:27:53
   Elapsed time:   54 secs
   Priority:   10
   FD Files Written:   2
   SD Files Written:   2
   FD Bytes Written:   1,582,301,184 (1.582 GB)
   SD Bytes Written:   1,582,301,384 (1.582 GB)
   Rate:   29301.9 KB/s
   Software Compression:   None
   VSS:no
   Encryption: no
   Accurate:   no
   Volume name(s): 
   Volume Session Id:  10
   Volume Session Time:1264883012
   Last Volume Bytes:  3,763,206,791 (3.763 GB)
   Non-fatal FD errors:0
   SD Errors:  0
   FD termination status:  OK
   SD termination status:  Canceled
   Termination:Backup Canceled

31-sty 02:27 darkstar-dir JobId 249: Fatal error: Unable to authenticate 
with File daemon at darkstar:9102. Possible causes:
Passwords or names not the same or
Maximum Concurrent Jobs exceeded on the FD or
FD networking messed up (restart daemon).
Please see 
http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION00376
 
for help.
31-sty 02:27 darkstar-dir JobId 249: Failed to connect to File daemon.
31-sty 02:28 darkstar-dir JobId 250: Start Backup JobId 250, 
Job=QemuImages.2010-01-31_02.27.08_34
31-sty 02:28 darkstar-dir JobId 250: Using Device UrzadzeniePlikoweDev
31-sty 02:28 darkstar-sd JobId 250: Volume  previously written, 
moving to end of data.
31-sty 02:28 darkstar-sd JobId 250: Ready to append to end of Volume 
 size=1583475341
* status dir
.
.
Running Jobs:
Console connected at 30-sty-10 22:00
Console connected at 31-sty-10 02:22
  JobId Level   Name   Status
==
250 FullQemuImages.2010-01-31_02.27.08_34 is running





My configuration Maximum Concurrent Jobs is correct. Does somebody know, 
why I recieved Fatal error?

Very Thanks.
gani

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.

Re: [Bacula-users] RunAfterJob and Environment

2010-01-27 Thread ganiuszka
Dirk H. Schulz pisze:
 Does Bacula call a RunAfterJob script with certain environment 
 variables or arguments like e.g. jobid, jobname, success/failure, etc.?

Hi

Yes, there is able to define environment variables in Run After Job 
directive, e.g.

%c = Client's name
%d = Director's name
%e = Job Exit Status
%i = JobId
%j = Unique Job id
%l = Job Level
%n = Job name
%s = Since time
%t = Job type (Backup, ...)
%v = Volume name (Only on director side)

For example:

Run After Job = /path/script.sh %n %e

More details you can find in a documentation:

http://bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#SECTION00163

Regards
gani

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


Re: [Bacula-users] Re-assigning old volumes to Scratch pool

2010-01-21 Thread ganiuszka
Win Htin pisze:
 What is the proper and safe way to re-assign tapes/old volumes from a
 pool which is no longer in use to back the scratch pool?
 
 Below, the pool AllDifferentials is no longer in use and I would
 like to re-assign the volumes 420AAL and 421AAL which are
 currently at Volstatus Full back to the Scratch pool.

Hi,

If you are going to recycle those tapes, you can use RecyclePool 
directive for your pool, eg.

RecyclePool = Scratch

More details you can find here:

http://bacula.org/3.0.x-manuals/en/install/install/Configuring_Director.html#5321

Regards
gani

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Can't find the tape changer

2010-01-19 Thread ganiuszka

Here is a instruction about Dell PowerVault 124T and LUNs under Linux.

http://support.dell.com/support/edocs/stor-sys/124t/en/124tvs16/install.html#enabling_lun_linux

Subject Enabling LUN Support in Linux

Maybe this is the solution.

Regards.
Marcin
-- 
View this message in context: 
http://old.nabble.com/Can%27t-find-the-tape-changer-tp27216402p27228465.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re store using bconsole on Windows 2003

2009-08-21 Thread ganiuszka


Grzegorz Bystrzyński wrote:
 
 Sorry, the above error line incorrect, the one below is correct:
 Cannot open file jobfiles: ERR=No such file or directory
 I was working on a couple of files with diffrent filenames and cited a 
 wrong line.
 
Hi,

If you want to do restore this way, you should put the file called
jobfiles in machine where you have the Director daemon and then you try.

For example, you have file jobfiles in directory /tmp on machine with
FreeBSD. A command is looks like that:

restore client=puma-fd file=/tmp/jobfiles

Regards
gani
-- 
View this message in context: 
http://www.nabble.com/Restore-using-bconsole-on-Windows-2003-tp25082604p25083584.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


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


Re: [Bacula-users] Disk Backup / LabelMedia / UseVolumeOnce / VolumeRetention

2009-08-19 Thread ganiuszka


jaschu wrote:
 
 Now the question: Will old Volumes be deleted automatically, after
 VolumeRetention has passed, or will they remain on disk, in which case I
 would have to delete them manually? 
 
Hi,

From Bacula documentation about volume recycling:

...when Bacula recycles a Volume, the Volume becomes available for being
reused, and Bacula can at some later time overwrite the previous contents of
that Volume. Thus all previous data will be lost. If the Volume is a tape,
the tape will be rewritten from the beginning. If the Volume is a disk file,
the file will be truncated before being rewritten.

Here you can find more information:
http://bacula.org/manuals/en/concepts/concepts/Automatic_Volume_Recycling.html

gani
-- 
View this message in context: 
http://www.nabble.com/Disk-Backup---LabelMedia---UseVolumeOnce---VolumeRetention-tp25042878p25046457.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


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


[Bacula-users] Re store scheme

2009-08-17 Thread ganiuszka

Hi,

In Bacula documentation there is a backup scheme with explanation
communications between Bacula daemons. I understand that scheme but I can't
find a restore scheme. I created this scheme and I would ask you. Is it good
reasoning? If not, please correct me.

Restore scheme is here http://www.image-share.com/image.php?img=38/296.png

Thanks.
gani
-- 
View this message in context: 
http://www.nabble.com/Restore-scheme-tp25010836p25010836.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


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


Re: [Bacula-users] AutoChanger Problem

2009-08-10 Thread ganiuszka


Andy Watson-5 wrote:
 
 Before I got around to the btape, I was labeling barcodes and it would
 load
 and unload but not label I believe the tape/autochanger wasn't reponding
 that the tape was successfully loaded.  I went into the mtx_changer script
 and changed the wait to sleep 120 and the label barcodes completed with an
 error that I didn't write down.
 
Hi,
Do you have a dmesg log? Are there any SCSI errors after a btape test?
gani
-- 
View this message in context: 
http://www.nabble.com/AutoChanger-Problem-tp24736978p24906822.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


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


Re: [Bacula-users] Upgrade to version 3.0.1

2009-06-12 Thread ganiuszka


ganiuszka wrote:
 
 After these operations I started restoring. All were well. I started
 backup Jobs and I received a message:
 
 31-maj 12:14 thinstar-dir JobId 12: Start Backup JobId 12,
 Job=Logowa_Praca.2009-05-31_12.13.40_04
 31-maj 12:14 thinstar-dir JobId 12: Using Device FileStorage
 31-maj 12:14 thinstar-sd JobId 12: Volume wokandor previously written,
 moving to end of data.
 31-maj 12:14 thinstar-sd JobId 12: Error: Bacula cannot write on disk
 Volume wokandor because: The sizes do not match! Volume=13265860
 Catalog=13265657
 31-maj 12:14 thinstar-sd JobId 12: Marking Volume wokandor in Error in
 Catalog.
 31-maj 12:14 thinstar-sd JobId 12: Job Logowa_Praca.2009-05-31_12.13.40_04
 waiting. Cannot find any appendable volumes.
 Please use the label  command to create a new Volume for:
 Storage:  FileStorage (/var/UrzadzeniePlikowe)
 Pool: Kruszon Wielki
 Media type:   File
 

Hi!

I know why after an upgrade from version Bacula 1.38.11 to 3.0.1 and
starting a Job I am receiving the following message:

Error: Bacula cannot write on disk Volume wokandor because: The sizes do
not match! Volume=13265860 Catalog=13265657

When I label volume in Bacula 1.38.11 than the size in database is 1 byte
but the size on disk is different (example bellow):

*list media
Pool: Default
No results to list.
Pool: Karocany
+-+--+---+--+--+--+-+--+---+---+-+
| mediaid | volumename   | volstatus | volbytes | volfiles | volretention |
recycle | slot | inchanger | mediatype | lastwritten |
+-+--+---+--+--+--+-+--+---+---+-+
|   4 | aabbccddeeff | Append|1 |0 |4,752,000 | 
 
1 |0 | 1 | File  | |
+-+--+---+--+--+--+-+--+---+---+-+

thinstar:/usr/local/bacula/etc# ls -l /var/UrzadzeniePlikowe/aabbccddeeff 
-rw-r- 1 root root 202 cze 11 17:02 /var/UrzadzeniePlikowe/aabbccddeeff

The volume size in database is 1 but the volume size on disk is 202 bytes.

In Bacula 3.0.1 there is a different situation. In new volumes the volume
size on disk is equal with the size in database (example bellow):

*list media
Pool: Default
No results to list.
Pool: Karocany
+-+--+---+-+--+--+--+-+--+---+---+-+
| mediaid | volumename   | volstatus | enabled | volbytes | volfiles |
volretention | recycle | slot | inchanger | mediatype | lastwritten |
+-+--+---+-+--+--+--+-+--+---+---+-+
|   5 | gghhiijjkkll | Append|   1 |  201 |0 |   
4,752,000 |   1 |0 | 0 | File  | |
+-+--+---+-+--+--+--+-+--+---+---+-+

thinstar:/usr/local/bacula/etc# ls -l /var/UrzadzeniePlikowe/gghhiijjkkll 
-rw-r- 1 root root 201 cze 11 17:17 /var/UrzadzeniePlikowe/gghhiijjkkll

This difference begins with version Bacula 2.0.0 when the new volume size
between database and file is equal and when it is possible to run Job on old
volumes (labeled in version Bacula 1.38.11).

From Bacula version 2.2.0 backup on volumes labeled in Bacula 1.38.11 is
impossible. This change has been introduced in revision 4377.

Do I understand well? Could anyone confirm my reasoning?
Thanks for help.

gani
-- 
View this message in context: 
http://www.nabble.com/Upgrade-to-version-3.0.1-tp23840800p24000951.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Upgrade to version 3.0.1

2009-06-02 Thread ganiuszka

Hi!

I have some problem with upgrade Bacula from version 1.38.11 to 3.0.1. I did
steps below:

1. I ran a few backups (Full, Incremental, Differential) by Bacula 1.38.11.
They were ok.
2. I compiled Bacula 3.0.1 as the same options as Bacula 1.38.11.
3. I upgraded Bacula.
4. I ran database upgrade script (update database from version 9 to 10).
5. I ran database upgrade script (update database from version 10 to 11).


After these operations I started restoring. All were well. I started backup
Jobs and I received a message:

31-maj 12:14 thinstar-dir JobId 12: Start Backup JobId 12,
Job=Logowa_Praca.2009-05-31_12.13.40_04
31-maj 12:14 thinstar-dir JobId 12: Using Device FileStorage
31-maj 12:14 thinstar-sd JobId 12: Volume wokandor previously written,
moving to end of data.
31-maj 12:14 thinstar-sd JobId 12: Error: Bacula cannot write on disk Volume
wokandor because: The sizes do not match! Volume=13265860 Catalog=13265657
31-maj 12:14 thinstar-sd JobId 12: Marking Volume wokandor in Error in
Catalog.
31-maj 12:14 thinstar-sd JobId 12: Job Logowa_Praca.2009-05-31_12.13.40_04
waiting. Cannot find any appendable volumes.
Please use the label  command to create a new Volume for:
Storage:  FileStorage (/var/UrzadzeniePlikowe)
Pool: Kruszon Wielki
Media type:   File


I canceled the backup and started another backup. I had the same situation
and the same message:


*messages
31-maj 12:18 thinstar-dir JobId 13: Start Backup JobId 13,
Job=Dokumentacje.2009-05-31_12.18.33_07
31-maj 12:18 thinstar-dir JobId 13: Using Device FileStorage
31-maj 12:18 thinstar-sd JobId 13: Volume popierkan previously written,
moving to end of data.
31-maj 12:18 thinstar-sd JobId 13: Error: Bacula cannot write on disk Volume
popierkan because: The sizes do not match! Volume=552685397
Catalog=552685199
31-maj 12:18 thinstar-sd JobId 13: Marking Volume popierkan in Error in
Catalog.
31-maj 12:18 thinstar-sd JobId 13: Job Dokumentacje.2009-05-31_12.18.33_07
waiting. Cannot find any appendable volumes.
Please use the label  command to create a new Volume for:
Storage:  FileStorage (/var/UrzadzeniePlikowe)
Pool: Karocany
Media type:   File


In the database log I have the following message:

ERROR:  parameter standard_conforming_strings cannot be changed

My configuration:
Database Server: PostgreSQL 8.1.17
OS: GNU/Linux (Debian distribution)
Filesystem: EXT3

I configured all from the beginning but I had the same situation as above.
Does anyone know why volumes sizes do not match between volume and catalog?
Thanks for any help and sorry for my English.

gani
-- 
View this message in context: 
http://www.nabble.com/Upgrade-to-version-3.0.1-tp23840800p23840800.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Automatic Volume Recycling

2009-04-28 Thread ganiuszka

Hi!

I have some question about automatic volume recycling described in Bacula
documentation (Chapter 10).

I can't understand why a volume with VolStatus=Append may be pruned (and
later recycled) because I seems that the Volume Retention period don't begin
count down when the VolStatus is Append (below quotes from the
documentation).

Sorry for my English.
Thanks for the help.
gani

Note, that although the File and Job records may be pruned from the
catalog, a Volume will be marked Purged (and hence ready for recycling) if
the Volume status is Append, Full, Used, or Error.

As mentioned above, there are two key points for getting a Volume to be
recycled. First, the Volume must no longer be marked Append (there are a
number of directives to automatically make this change)

The Volume Retention period count down begins only when the Append status
has been changed to some othe status (Full, Used, Purged, ...)
-- 
View this message in context: 
http://www.nabble.com/Automatic-Volume-Recycling-tp23277076p23277076.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Automatic Volume Recycling

2009-04-28 Thread ganiuszka


John M. Drescher wrote:
 
 Volume retention does not start until a volume is marked Full or Used.
 Then the time of last written is used to compute the retention period.
 
I agree.
So I have one more question. In which volume states (VolStatus) a volume can
be prune in the automatic volume recycling? The Bacula documentation
provides the following status for this situation: Append, Full, Used, and
Error. Why Append can be prune and when?

gani
-- 
View this message in context: 
http://www.nabble.com/Automatic-Volume-Recycling-tp23277076p23283475.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Max Wait Time

2007-12-13 Thread ganiuszka
Hi All,

I have an issue with performing a backup with greater amount of data.
After a while after starting backup, the job is being stopped with
status A. I have seen that responsible for that is option Max wait
Time. After enlarging this option to 300s I was able to backup up to
10GB amount of data.  Otherwise if I do not use this option, the backups
work properly even with a big amount of data.  but in case of  finishing
a free space on  the tape, job is not being stopped and it is in status
R for infinity. Does someone know how to resolve it to:

1) Bacula wouldn't stop running backups with option Max Wait Time?
2) When a free space is running to the end and there is no another free
pool, the job would stop?

Additionally following issues have appeared after changing the version
from 1.38.11 to 2.2.6.

Thank you in advance for help.
gani


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Max Wait Time

2007-12-12 Thread ganiuszka
Hi All,

I have an issue with performing a backup with greater amount of data.
After a while after starting backup, the job is being stopped with
status A. I have seen that responsible for that is option Max wait
Time. After enlarging this option to 300s I was able to backup up to
10GB amount of data.  Otherwise if I do not use this option, the backups
work properly even with a big amount of data.  but in case of  finishing
a free space on  the tape, job is not being stopped and it is in status
R for infinity. Does someone know how to resolve it to:

1) Bacula wouldn't stop running backups with option Max Wait Time?
2) When a free space is running to the end and there is no another free
pool, the job would stop?

Additionally following issues have appeared after changing the version
from 1.38.11 to 2.2.6.

Thank you in advance for help.
gani


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Storage devices

2007-12-02 Thread ganiuszka
Hello,

I have the following problem. I set up two storage devices (Storage1 and
Storage2) and connected tapes with them, that are connected to one (the
same pool). I'd like to achieve such functionality that when the free
space is ending on tapes on storage1, bacula automatically  switches
from tape from storage1 to tape from storage2 during backup process. Is
it possible to do?

Thanks in advance.
Best Regards
gani


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users