Re: [Bacula-users] losing directory permissions and ownership

2009-10-27 Thread Avi Rozen
Martin Simmons wrote:
> You need to match the parent directories themselves and then the contents of
> owned-by-bacula:
>
> FileSet {
>   Name = test-fileset
>   Include {
> Options {
> # Match all directories leading up to the cherry picked directory
> regexdir = "^/home$"
> regexdir = "^/home/avrozen$"
> regexdir = "^/home/avrozen/temp$"
> regexdir = "^/home/avrozen/temp/bacula-test$"
> regexdir = "^/home/avrozen/temp/bacula-test/owned-by-root$"
> regexdir = 
> "^/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen$"
> # Match the cherry picked directory itself
> regexdir = 
> "^/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen/owned-by-bacula$"
> # Match the contents of the cherry picked directory
> wild = 
> "/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen/owned-by-bacula/*"
> }
> Options {
> # Skip everything else
> wild = "*"
> Exclude = yes
> }
> File = /
>   }
> }
>
> Note the $ at the end of each regexdir to make it match only the directory and
> nothing else with that prefix.
>
> __Martin
>
>   
Works! Thanks!

It also works if I replace regexdir with wilddir (and remove the ^ and $).

I actually tried something like that, since this is what you described
verbally, but I must have missed something, because it didn't seem to
work then. Too tired...

Thanks,
Avi.



signature.asc
Description: OpenPGP digital signature
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] losing directory permissions and ownership

2009-10-27 Thread Martin Simmons
> On Tue, 27 Oct 2009 00:22:37 +0200, Avi Rozen said:
> 
> Martin Simmons wrote:
> >>
> >> I'd like to cherry pick directories to backup and have them restored
> >> with correct ownership and permissions...
> >>
> >> What am I doing wrong? Is this the expected behavior?
> >> 
> >
> > Yes, this is the expected behavior.
> >
> > During a backup, Bacula looks inside the directories you give in the 'File 
> > ='
> > lines and doesn't save any information about the parents.
> >
> >   
> 
> Would be nice if it did...
> 
> > It is difficult to get the cherry picking behaviour, but I think it is
> > possible.  You need to start higher up the tree and use two Options clauses 
> > to
> > select the files to include and exclude.  The first Options clause must 
> > match
> > only what you want to back up (the parent directories themselves plus the
> > cherry picked files/directories, but not other contents of the parent
> > directories).  The second Options clause should use wild = "*" and 
> > Exclude=yes
> > to remove everything else.
> >   
> 
> Thanks for the explanation and tips.
> 
> I tried it and a few other file set configurations, based on the
> examples in [1], specifically the following, which is supposed to
> include only home directories of users whose usernames start with either
> 'a' or 'b':
> 
> FileSet {
>   Name = "Full Set"
>   Include {
>  Options {
> wilddir = "/home/a*"
> wilddir = "/home/b*"
>  }
>  Options {
> RegexDir = ".*"
> exclude = yes
>  }
>  File = /home
>   }
> }
> 
> But I can't get bacula to do what I want. I tried  the following file
> set to backup files in my test directory, but it excludes everything
> except for files in the root directory:
> 
> FileSet {
>   Name = test-fileset
>   Include {
> Options {
> wilddir =
> "/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen/owned-by-bacula"
> }
> Options {
> regexdir = ".*"
> Exclude = yes
> }
> File = /
>   }
> }
> 
> Any ideas? What am I missing?

You need to match the parent directories themselves and then the contents of
owned-by-bacula:

FileSet {
  Name = test-fileset
  Include {
Options {
# Match all directories leading up to the cherry picked directory
regexdir = "^/home$"
regexdir = "^/home/avrozen$"
regexdir = "^/home/avrozen/temp$"
regexdir = "^/home/avrozen/temp/bacula-test$"
regexdir = "^/home/avrozen/temp/bacula-test/owned-by-root$"
regexdir = 
"^/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen$"
# Match the cherry picked directory itself
regexdir = 
"^/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen/owned-by-bacula$"
# Match the contents of the cherry picked directory
wild = 
"/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen/owned-by-bacula/*"
}
Options {
# Skip everything else
wild = "*"
Exclude = yes
}
File = /
  }
}

Note the $ at the end of each regexdir to make it match only the directory and
nothing else with that prefix.

__Martin

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Invitation to connect on LinkedIn

2009-10-27 Thread Jari Fredriksson


27.10.2009 6:15, Siju George kirjoitti:
> 
> 
> 
>   LinkedIn
> 
> I'd like to add you to my professional network on LinkedIn.
> 
> - Siju
> 

Spam, reported via SpamCop.

Please join the Bacula group in Linked In. This is just spam.

-- 
http://www.iki.fi/jarif/




signature.asc
Description: OpenPGP digital signature
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Does anyone enable the vxa_packetloader fix in mtx-changer.conf?

2009-10-27 Thread Brian Debelius
I have been using VXA Packetloader on Windows, and Linux, and I have not 
ever had to enable this to get the script to work.  I am just curious if 
anyone uses it.

(From mtx-changer.conf)
# If you have a VXA PacketLoader, it might display a different
#  Storage Element line, so try setting the following to 1
vxa_packetloader=0


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger problem

2009-10-27 Thread Thomas Bennett

I realize now you have mostly done all that.  If this is a Dell or IBM unit 
there should be an adminstrative program as descibed below which will let you 
move tapes to the I/O slot to remove them.  Also, there may be a WEB server 
built in as on the Dell and IBM that will let you administer the library 
through a browser to move tapes to the I/O slot to remove them individually.  
After removing tapes so that the library is not over full then you can run 
"update slots" and/or "read barcodes"

The ITDT program is java based and if you are running a RedHat based distro 
like Fedora then you will need to install a different JRE as described in the 
documentation with the ITDT program.

Thomas


On Tuesday 27 October 2009 12:42:20 Thomas Bennett wrote:
> I am making an assumption that this is the Dell backup library or actually
>  IBM who manufactured the dell product There is a program itdt-dcr or as
>  shown as the title to my icon ITDT - DELL Customer Release.  I think I
>  found this on the dell site and it is a desktop program for controlling
>  and administrating the backup library on a linux server. There may be a
>  Windows version   I use it on the Dell TL2000.  Your customer might find
>  this easier than the little LED on the tape library.
> 
> 
> 
> Also, helpful commands
> 
> Find the tape changer:  my system automatically set a changer link to the
> device.
> 
> 
> @localhost bacula]# dir /dev | grep sg
>  3341 drwxr-xr-x. 2 root root 240 2009-07-02 17:58 bsg/
>  4313 lrwxrwxrwx. 1 root root   3 2009-07-02 17:58 changer ->
>  sg4 4316 lrwxrwxrwx. 1 root root   3 2009-07-02 17:58 changer-sg4
>  -> sg4
>   556 crw-rw. 1 root root  1,  11 2009-07-02 17:58 kmsg
>   620 crw-rw+ 1 root cdrom21,   0 2009-07-02 17:58 sg0
>  3619 crw-rw. 1 root disk 21,   1 2009-07-02 17:58 sg1
>  3695 crw-rw. 1 root disk 21,   2 2009-07-02 17:58 sg2
>  4560 crw-rw. 1 root tape 21,   3 2009-07-02 17:58 sg3
>  4306 crw-rw. 1 root tape 21,   4 2009-07-02 17:58 sg4
> 
> 
> 
> 
> See what is in the changer, if you do not find which sg to use start with
>  sg0 through the sgx where x is the highest number shown.  This will tell
>  you if the drive is loaded and with which slot the tape was loaded from
>  and if any slots are empty.
> 
> Here, element 0 is the tape drive and is loaded with the tape from slot 19
>  and slot 19 is empty. IMPORT/EXPORT is for manually loading single tapes
>  from the IMPORT/EXPORT door on the front of the library and should
>  probably usually be empty..
> 
> 
> [x...@localhost bacula]# mtx -f /dev/sg4 status
>   Storage Changer /dev/sg4:1 Drives, 23 Slots ( 1 Import/Export )
> Data Transfer Element 0:Full (Storage Element 19 Loaded):VolumeTag =
>  19L4 Storage Element 1:Full :VolumeTag=01L4
>   Storage Element 2:Full :VolumeTag=02L4
>   Storage Element 3:Full :VolumeTag=03L4
>   Storage Element 4:Full :VolumeTag=04L4
>   Storage Element 5:Full :VolumeTag=05L4
>   Storage Element 6:Full :VolumeTag=06L4
>   Storage Element 7:Full :VolumeTag=07L4
>   Storage Element 8:Full :VolumeTag=08L4
>   Storage Element 9:Full :VolumeTag=09L4
>   Storage Element 10:Full :VolumeTag=10L4
>   Storage Element 11:Full :VolumeTag=11L4
>   Storage Element 12:Full :VolumeTag=12L4
>   Storage Element 13:Full :VolumeTag=13L4
>   Storage Element 14:Full :VolumeTag=14L4
>   Storage Element 15:Full :VolumeTag=15L4
>   Storage Element 16:Full :VolumeTag=16L4
>   Storage Element 17:Full :VolumeTag=17L4
>   Storage Element 18:Full :VolumeTag=18L4
>   Storage Element 19:Empty
>   Storage Element 20:Full :VolumeTag=20L4
>   Storage Element 21:Empty
>   Storage Element 22:Empty
>   Storage Element 23 IMPORT/EXPORT:Empty
> 
> 
> 
> You could probably move extra tapes to the  IMPORT/EXPORT door to remove
>  them. Then make sure the slots are filled and the drive, element 0, is
>  empty and then you can run "update slots" or "read barcodes" from the
>  console, my syntax might not be accurate on those commands but there is
>  always the help comman or ?  ;-)
> 
> Hope this helps.
> 
> 
> 
> 
> Thomas
> 
> On Tuesday 27 October 2009 11:09:42 Oddbjørn Sjøgren wrote:
> > Ok, I'll call and make them reset it. I take it this is something you
> > have to do physically to the box? And about the random mode, is this also
> > something you have to do physically? I only have access to the linux box
> > by ssh that it is connected to, everything else I have to call inn and
> > ask some IT people to do for me, so it's important that I tell them
> > everything they need to do, so I don't loose another day :)
> >
> > Again, thanks for your help.
> >
> > Bjorn
> >
> > On Tue, Oct 27, 2009 at 3:29 PM, Allan Black
> 
> wrote:
> > > Oddbjørn Sjøgren wrote:
> > > > READ ELEMENT ST

Re: [Bacula-users] Questions on Copy Jobs

2009-10-27 Thread Brian Debelius
The copy job copies all uncopied jobs one job at a time, one job at a 
time.  If you need to limit this, you need to use your own sql command.  
I pulled the SQL statement from the source that does the selection for 
the uncopied jobs, and modified it with a date range, and run this to do 
uncopied jobs in batches when the need arises.

Watch for typos

SELECT DISTINCTJob.JobId FROM Job,Pool WHERE Pool.Name = 
'MyPoolName' AND Pool.PoolId = Job.PoolId AND Job.Type = 'B' AND 
Job.JobStatus IN ('T','W') AND Job.jobBytes > 0 AND (Job.StartTime > 
'2009-09-01 00:00:00' AND Job.StartTime < '2009-10-27 00:00:00') AND 
Job.JobId NOT IN (SELECT PriorJobId FROM Job WHERE Type IN ('B','C') AND 
Job.JobStatus IN ('T','W') AND PrioJobId != 0) ORDER by Job.StartTime;

Mingus Dew wrote:
> In the documentation, there is an example for a Copy Job using the 
> Selection Type "PoolUncopiedJobs". I'd like to implement Copy Jobs 
> using this selection type. I currently have about 30 clients backed up 
> into the same Disk Pool. There are 28 days of backups on Disk for each 
> client.
>
> If I setup a Copy Job like the one below, will it Copy all the 
> previous Jobs in that Pool in one run? Is there a way to limit this?
> If I use a SQLquery selection to Copy the previous 14 days, will the 
> next Copy using PoolUncopiedJobs only copy the Jobs since then, or 
> will it go back beyond as well?
> For Pools like mine that contains many Jobs, will there only be 1 Copy 
> Job Id or does it create and ID for each Job being copied?
>
> #
> # Default template for a CopyDiskToTape Job
> #
> JobDefs {
>   Name = CopyDiskToTape
>
>   Type = Copy
>   Messages = StandardCopy
>   Client = None
>   FileSet = None
>   Selection Type = PoolUncopiedJobs
>   Maximum Concurrent Jobs = 10
>   SpoolData = No
>   Allow Duplicate Jobs = Yes
>   Allow Higher Duplicates = No
>
>   Cancel Queued Duplicates = No
>   Cancel Running Duplicates = No
>   Priority = 13
> }
>
> Schedule {
>Name = DaySchedule7:00
>Run = Level=Full daily at 7:00
> }
>
> Job {
>   Name = CopyDiskToTapeFullBackups
>
>   Enabled = Yes
>   Schedule = DaySchedule7:00
>   Pool = FullBackupsVirtualPool
>   JobDefs = CopyDiskToTape
> }
>   
>
> Thanks,
> Shon
> 
>
> --
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> 
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger problem

2009-10-27 Thread Thomas Bennett
I am making an assumption that this is the Dell backup library or actually IBM 
who manufactured the dell product There is a program itdt-dcr or as shown as 
the title to my icon ITDT - DELL Customer Release.  I think I found this on 
the dell site and it is a desktop program for controlling and administrating 
the backup library on a linux server. There may be a Windows version   I use 
it on the Dell TL2000.  Your customer might find this easier than the little 
LED on the tape library.



Also, helpful commands

Find the tape changer:  my system automatically set a changer link to the 
device.


@localhost bacula]# dir /dev | grep sg
 3341 drwxr-xr-x. 2 root root 240 2009-07-02 17:58 bsg/
 4313 lrwxrwxrwx. 1 root root   3 2009-07-02 17:58 changer -> sg4
 4316 lrwxrwxrwx. 1 root root   3 2009-07-02 17:58 changer-sg4 -> 
sg4
  556 crw-rw. 1 root root  1,  11 2009-07-02 17:58 kmsg
  620 crw-rw+ 1 root cdrom21,   0 2009-07-02 17:58 sg0
 3619 crw-rw. 1 root disk 21,   1 2009-07-02 17:58 sg1
 3695 crw-rw. 1 root disk 21,   2 2009-07-02 17:58 sg2
 4560 crw-rw. 1 root tape 21,   3 2009-07-02 17:58 sg3
 4306 crw-rw. 1 root tape 21,   4 2009-07-02 17:58 sg4




See what is in the changer, if you do not find which sg to use start with sg0 
through the sgx where x is the highest number shown.  This will tell you if 
the drive is loaded and with which slot the tape was loaded from and if any 
slots are empty.

Here, element 0 is the tape drive and is loaded with the tape from slot 19 and 
slot 19 is empty. IMPORT/EXPORT is for manually loading single tapes from the  
IMPORT/EXPORT door on the front of the library and should probably usually be 
empty..


[x...@localhost bacula]# mtx -f /dev/sg4 status
  Storage Changer /dev/sg4:1 Drives, 23 Slots ( 1 Import/Export )
Data Transfer Element 0:Full (Storage Element 19 Loaded):VolumeTag = 19L4
  Storage Element 1:Full :VolumeTag=01L4
  Storage Element 2:Full :VolumeTag=02L4
  Storage Element 3:Full :VolumeTag=03L4
  Storage Element 4:Full :VolumeTag=04L4
  Storage Element 5:Full :VolumeTag=05L4
  Storage Element 6:Full :VolumeTag=06L4
  Storage Element 7:Full :VolumeTag=07L4
  Storage Element 8:Full :VolumeTag=08L4
  Storage Element 9:Full :VolumeTag=09L4
  Storage Element 10:Full :VolumeTag=10L4
  Storage Element 11:Full :VolumeTag=11L4
  Storage Element 12:Full :VolumeTag=12L4
  Storage Element 13:Full :VolumeTag=13L4
  Storage Element 14:Full :VolumeTag=14L4
  Storage Element 15:Full :VolumeTag=15L4
  Storage Element 16:Full :VolumeTag=16L4
  Storage Element 17:Full :VolumeTag=17L4
  Storage Element 18:Full :VolumeTag=18L4
  Storage Element 19:Empty
  Storage Element 20:Full :VolumeTag=20L4
  Storage Element 21:Empty
  Storage Element 22:Empty
  Storage Element 23 IMPORT/EXPORT:Empty
 


You could probably move extra tapes to the  IMPORT/EXPORT door to remove them.  
Then make sure the slots are filled and the drive, element 0, is empty and then 
you can run "update slots" or "read barcodes" from the console, my syntax 
might not be accurate on those commands but there is always the help comman or 
?  ;-) 

Hope this helps.




Thomas


On Tuesday 27 October 2009 11:09:42 Oddbjørn Sjøgren wrote:
> Ok, I'll call and make them reset it. I take it this is something you have
> to do physically to the box? And about the random mode, is this also
> something you have to do physically? I only have access to the linux box by
> ssh that it is connected to, everything else I have to call inn and ask
>  some IT people to do for me, so it's important that I tell them everything
>  they need to do, so I don't loose another day :)
> 
> Again, thanks for your help.
> 
> Bjorn
> 
> On Tue, Oct 27, 2009 at 3:29 PM, Allan Black 
wrote:
> > Oddbjørn Sjøgren wrote:
> > > READ ELEMENT STATUS Command Failed
> > > Whats going on here?
> >
> > Because tape drives and autochangers are largely passive, sometimes
> > you don't get an error until the next time you do something, so that
> > might be an indication of a previous error. However, if you keep
> > getting the error, you might need to reset the autochanger. Also
> > check that the autochanger is in "random" mode, and not "stacker"
> > mode.
> >
> > I would use the front panel to move the tape from the drive to the
> > free slot. If the autochanger has a network connection, you may be
> > able to use a web-based admin interface to do this.
> >
> > Then I'd be tempted to reset the autochanger anyway, since it seems
> > to have forgotten which slot the tape in the drive was loaded from.
> >
> > Then continue with the inventory.
> >
> > Allan
> >
> >
> > -
> >- Come build with us! The BlackB

Re: [Bacula-users] Autochanger problem

2009-10-27 Thread Allan Black
Oddbjørn Sjøgren wrote:
> Ok, I'll call and make them reset it. I take it this is something you have
> to do physically to the box? And about the random mode, is this also
> something you have to do physically? I only have access to the linux box by

Probably - you will need to check the manual for that particular autochanger.
It will probably be done from the front panel.

The same goes for random vs. stacker mode, the panel again. "Random" mode means
the backup server is expected to control which slot is loaded next. "Stacker"
mode means the autochanger will always load a tape from the next slot in 
sequence
whenever a tape is ejected from the drive. If the autochanger has worked with
Bacula in the past, though, it will probably be in random mode, anyway (I was
just checking).

Allan

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Questions on Copy Jobs

2009-10-27 Thread Mingus Dew
In the documentation, there is an example for a Copy Job using the Selection
Type "PoolUncopiedJobs". I'd like to implement Copy Jobs using this
selection type. I currently have about 30 clients backed up into the same
Disk Pool. There are 28 days of backups on Disk for each client.

If I setup a Copy Job like the one below, will it Copy all the previous Jobs
in that Pool in one run? Is there a way to limit this?
If I use a SQLquery selection to Copy the previous 14 days, will the next
Copy using PoolUncopiedJobs only copy the Jobs since then, or will it go
back beyond as well?
For Pools like mine that contains many Jobs, will there only be 1 Copy Job
Id or does it create and ID for each Job being copied?

#
# Default template for a CopyDiskToTape Job
#
JobDefs {
  Name = CopyDiskToTape
  Type = Copy
  Messages = StandardCopy
  Client = None
  FileSet = None
  Selection Type = PoolUncopiedJobs
  Maximum Concurrent Jobs = 10
  SpoolData = No
  Allow Duplicate Jobs = Yes
  Allow Higher Duplicates = No
  Cancel Queued Duplicates = No
  Cancel Running Duplicates = No
  Priority = 13
}

Schedule {
   Name = DaySchedule7:00
   Run = Level=Full daily at 7:00
}

Job {
  Name = CopyDiskToTapeFullBackups
  Enabled = Yes
  Schedule = DaySchedule7:00
  Pool = FullBackupsVirtualPool
  JobDefs = CopyDiskToTape
}


Thanks,
Shon
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Weird message in log

2009-10-27 Thread John Drescher
2009/10/27 Gabriel - IP Guys :
> Dear All,
>
>
>
> I get this error in the Bacula Log.
>
>
>
> Bacula-Director: ERROR in authenticate.c:304 UA Hello from client:
>
>
>
> Not sure how to go about this one – because all the passwords are correct.
> Any tips, hints, and ideas, appreciated. Thanks
>
>

Are you mixing bacula versions?

John

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] copy and then migrate job

2009-10-27 Thread Nicolae Mihalache
Hello,

I'm trying to automatically copy some jobs from one tape to another (to
be taken offline) and because I don't have two tape drives, I have to
use a temporary pool.
However I have noticed that all the jobs that are copied to the
temporary pool are marked with type 'M' and then the migration process
refuses to take them into account.

Is there a way to avoid this change of type for the copy jobs or to
force the migration to take them into account?

thx
nicolae

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Maximum Volume Jobs and concurrency

2009-10-27 Thread John Drescher
On Tue, Oct 27, 2009 at 11:03 AM, Brian Debelius
 wrote:
> I think I would like to change my disk pool to have a Maximum Volume
> Jobs = 1 so that there is only one job per file.  My thought is that it
> would lead to more efficient recycling.  I believe if I do this then
> this will not allow job concurrency.  Is there a way to do have one job
> per file, and concurrency?
>

Add more disk storage devices. Probably with a virtual disk changer.

John

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger problem

2009-10-27 Thread Oddbjørn Sjøgren
Ok, I'll call and make them reset it. I take it this is something you have
to do physically to the box? And about the random mode, is this also
something you have to do physically? I only have access to the linux box by
ssh that it is connected to, everything else I have to call inn and ask some
IT people to do for me, so it's important that I tell them everything they
need to do, so I don't loose another day :)

Again, thanks for your help.

Bjorn

On Tue, Oct 27, 2009 at 3:29 PM, Allan Black wrote:

> Oddbjørn Sjøgren wrote:
> > READ ELEMENT STATUS Command Failed
> > Whats going on here?
>
> Because tape drives and autochangers are largely passive, sometimes
> you don't get an error until the next time you do something, so that
> might be an indication of a previous error. However, if you keep
> getting the error, you might need to reset the autochanger. Also
> check that the autochanger is in "random" mode, and not "stacker"
> mode.
>
> I would use the front panel to move the tape from the drive to the
> free slot. If the autochanger has a network connection, you may be
> able to use a web-based admin interface to do this.
>
> Then I'd be tempted to reset the autochanger anyway, since it seems
> to have forgotten which slot the tape in the drive was loaded from.
>
> Then continue with the inventory.
>
> Allan
>
>
> --
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Weird message in log

2009-10-27 Thread Gabriel - IP Guys
Dear All,

 

I get this error in the Bacula Log.

 

Bacula-Director: ERROR in authenticate.c:304 UA Hello from client:

 

Not sure how to go about this one - because all the passwords are
correct. Any tips, hints, and ideas, appreciated. Thanks

 

---

Kind Regards,

Mr Gabriel

 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Maximum Volume Jobs and concurrency

2009-10-27 Thread Brian Debelius
I think I would like to change my disk pool to have a Maximum Volume 
Jobs = 1 so that there is only one job per file.  My thought is that it 
would lead to more efficient recycling.  I believe if I do this then 
this will not allow job concurrency.  Is there a way to do have one job 
per file, and concurrency?


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger problem

2009-10-27 Thread Allan Black
Oddbjørn Sjøgren wrote:
> READ ELEMENT STATUS Command Failed
> Whats going on here?

Because tape drives and autochangers are largely passive, sometimes
you don't get an error until the next time you do something, so that
might be an indication of a previous error. However, if you keep
getting the error, you might need to reset the autochanger. Also
check that the autochanger is in "random" mode, and not "stacker"
mode.

I would use the front panel to move the tape from the drive to the
free slot. If the autochanger has a network connection, you may be
able to use a web-based admin interface to do this.

Then I'd be tempted to reset the autochanger anyway, since it seems
to have forgotten which slot the tape in the drive was loaded from.

Then continue with the inventory.

Allan

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] SHA1 digest warning

2009-10-27 Thread Brian Debelius
Hi,

I recently started seeing this error during copy jobs from disk to 
tape.  What does it mean?

27-Oct 09:05 bacula-sd JobId 4595:  Forward spacing volume "vol-0298" to 
file:block 0:200
27-Oct 09:05 bacula-sd JobId 4595:  Warning:  Got SHA1 digest but not 
the same File as attributes

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] vchanger configuration question

2009-10-27 Thread Josh Fisher
You don't have 'Autochanger = yes' in the device records for d1, d2, and d3.

That howto (and script) are outdated and need to be edited. The vchanger 
project page is at http://sourceforge.net/projects/vchanger/, and there 
is a much more recent howto there.

Scott Courtney wrote:
> Greetings, all
>
> I'm brand-new to Bacula, and am trying to set up vchanger.sh using the
> documentation at http://wiki.bacula.org/doku.php?id=removable_disk in
> combination with the Bacula manuals. I'm running version 2.4 of Bacula
> itself, and the back end is MySQL 5.1.x.
>
> In production, this setup will use multiple USB disk drives, but for
> testing I am using three logical volumes called d1, d2, and d3 to
> represent my "daily" USB drive set.
>
> I have created /etc/bacula/changer-usb-daily.conf with contents as
> follows:
>
> baculasd="changer-usb-daily"
> baculasd_user=bacula
> bconsole=/usr/bin/bconsole
> magslots=20
> maxdrive=2
> mountpoint=/home/bacula/daily
> statedir=/var/bacula/changer-usb-daily
>
> One of the logical volumes is currently mounted at /home/bacula/daily to
> simulate a USB drive having been mounted there by autofs. An "ls -l" of
> that volume shows the following:
>
> -rw-r- 1 bacula bacula 2 2009-10-26 18:42 index
> drwx-- 2 root   root   12288 2009-10-26 17:42 lost+found
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s001
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s002
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s003
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s004
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s005
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s006
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s007
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s008
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s009
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s010
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s011
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s012
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s013
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s014
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s015
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s016
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s017
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s018
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s019
> -rw-r--r-- 1 bacula bacula 0 2009-10-26 18:42 m02s020
>
> In my /etc/bacula/bacula-sd.conf file, I have this section:
>
> # Virtual changer for daily backups
> Autochanger {
> Name = changer-usb-daily
> Device = d1
> Device = d2
> Device = d3
> Changer Command = "/etc/bacula/vchanger %c %o %S %a %d"
> Changer Device = "/etc/bacula/changer-usb-daily.conf"
> }
> Device {
>   Name = d1
>   Media Type = File
>   Device Type = File
>   Archive Device = /home/bacula/d1
>   LabelMedia = yes;   # lets Bacula label unlabeled
> media
>   RandomAccess = Yes;
>   AutomaticMount = yes;   # when device opened, read it
>   RemovableMedia = no;
>   AlwaysOpen = no;
>   DriveIndex = 0
> }
> Device {
>   Name = d2
>   Media Type = File
>   Device Type = File
>   Archive Device = /home/bacula/d2
>   LabelMedia = yes;   # lets Bacula label unlabeled
> media
>   RandomAccess = Yes;
>   AutomaticMount = yes;   # when device opened, read it
>   RemovableMedia = no;
>   AlwaysOpen = no;
>   DriveIndex = 1
> }
> Device {
>   Name = d3
>   Media Type = File
>   Device Type = File
>   Archive Device = /home/bacula/d3
>   LabelMedia = yes;   # lets Bacula label unlabeled
> media
>   RandomAccess = Yes;
>   AutomaticMount = yes;   # when device opened, read it
>   RemovableMedia = no;
>   AlwaysOpen = no;
>   DriveIndex = 2
> }
>
>
> Finally, in /etc/bacula/bacula-dir.conf I have this:
>
> # A test daily job
> Job {
> Name = "daily"
> Type = Backup
> Level = Incremental
> Client = marcus-fd
> FileSet = "etc"
> Storage = storage-daily
> Messages = Standard
> Pool = daily
> Priority = 10
> }
> # For testing
> FileSet {
> Name = "etc"
> Include {
> Options {
> signature = MD5
> }
> File = /etc
> }
> }
> Storage {
> Name = storage-daily
> Address = marcus 
> SDPort = 9103
> Password = "1C-tT2Ql6DGOQ0OG-t1RDtkL6LKWVb9CD"
> Device = changer-usb-daily
> Media Type = File
> Autochanger = yes
> }
> # Daily pool
> Pool {
> Name = daily
> Pool Type = backup
> Recycle = yes
> AutoPrune = yes
> Volume Retention = 30 days
> Volume Use Duration = 2 min
> }
>
>
> The short value for "volume use duration" is for testing.
>
> When I try to 

Re: [Bacula-users] Autochanger problem

2009-10-27 Thread Oddbjørn Sjøgren
Thank you Allan

So I talked to the people who are hosting today, and they had indeed done a
mistake replacing the tapes. It was now completely full. I asked them to
remove one (the 24 slot, VolumeTag=ARS655L3) and he did. Now, I was going to
follow your procedure, and started with a status to see if everything looked
ok. That gave me this result:

# mtx status
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Unit Attention
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 28
mtx: Request Sense: Additional Sense Qualifier = 01
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
Mode sense (0x1A) for Page 0x1D failed
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Not Ready
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 04
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
READ ELEMENT STATUS Command Failed

Whats going on here?

Bjorn


On Mon, Oct 26, 2009 at 11:14 PM, Allan Black wrote:

> Oddbjørn Sjøgren wrote:
> > They are using a LTO-3 autochanger and recently changed the tapes in it
> > Data Transfer Element 0:Full (Unknown Storage Element Loaded):VolumeTag
> > = ARS645L3
> >   Storage Element 1:Full :VolumeTag=ARS664L3
> >   Storage Element 2:Full
> [etc. - all the slots, and the drive, are occupied?]
>
> It looks as if they have changed the tapes and filled up all the slots
> while
> there was a tape in the drive.
>
> Data Transfer Element = tape drive
> Storage Element = slot
>
> Assuming I am right, they now have the drive full, but no free slots in the
> autochanger. You're not allowed to do that. If the drive is occupied, there
> must be at least one free slot so that the drive can be unloaded into it,
> before the next tape is loaded into the drive.
>
> It also looks as if the autochanger has a barcode reader, but the inventory
> hasn't been updated since the tapes were changed (some autochangers will
> automatically inventory themselves; some won't).
>
> First thing to do is free up at least one slot. Take a tape out by hand if
> you have to, but taking the one out of the import/export slot will probably
> be easiest if removing that particular tape would be OK.
>
> Then unload the drive into the empty slot (mtx -f  unload 
> 0)
> or use the autoloader's front panel or admin interface to do it.
>
> Then inventory the autoloader (mtx -f  inventory) or panel. Use
> the
> mtx status command to check it.
>
> Then update the Bacula database with the state of the autochanger. Use the
> bconsole "update" command. Something like "update slots storage="
> should do.
>
> Then try to label a tape, run a backup, etc.
>
> From the messages in your email, it looks as if Bacula has already
> unmounted
> the drive, but it's difficult to tell.
>
> Allan
>
>
> --
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Verify Jobs

2009-10-27 Thread John Drescher
> There doesn't seem to be much in the docs on Verify Jobs, unless I'm missing
> a section somewhere.
> Can a Verify Job be run from the console, or does it have to be configured
> in a Job Definition?

You can run it in the console by running the backup job and modifying the leve.

> What are best practices for running Verify Jobs?
>

That I can not help you with. I have not used a verify job in at least 3 years.

John

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Verify Jobs

2009-10-27 Thread Mingus Dew
There doesn't seem to be much in the docs on Verify Jobs, unless I'm missing
a section somewhere.
Can a Verify Job be run from the console, or does it have to be configured
in a Job Definition?
What are best practices for running Verify Jobs?

Thanks,
Shon
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula and Suse

2009-10-27 Thread Sak Mon
Hi everybody:

We have a Suse Enterprise Server 10 SP 2 (SLES10SP2) that include
glibc 2.4 (glibc-2.4-31.54). I see that bacula 2.4 requiere glibc 2.5
and bacula 3.0.2 requiere glibc 2.6.

Is there a way for bacula works on SLES10SP2?
May be a "trick" with statics libraries?

I am frustrate. This software it's really great but glibc it's very
important
piece of linux system and as i see new bacula version requiere new linux
operating system version. Please say that's not true :(.

Thanks a lot.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users