[Bacula-users] Autochanger problems

2005-08-15 Thread Alexander Loehr
Hi!

I want to replace Arkeia 4 with bacula 1.36.3 running on a Solaris 2.6
machine with a HP C5713A DDS 4 autochanger. I think I've already managed
to configure everything but bacula failes very often because it's not
able to run mtx-changer properly. It looks like the device is busy. I'm
using /dev/rmt/0cbn for the archive and the control device. I hope
that's okay?

I've attached my configuration files and my slightly modified
mtx-changer script (only changed the first line from /bin/sh to /bin/ksh).

Thanks for any support,
Alex.
-- 
Alexander Löhr
Senior Software Engineer
Zuken Technology-Center
Vattmannstr. 3
33100 Paderborn
Germany

Tel: +49-5251-150-622
Fax: +49-5251-150-700
Email: [EMAIL PROTECTED]
Web: www.zuken.com
Skype: alexander.loehr_
PGP key: http://mail.pad.zuken.de/~alex/aloehr.asc
_
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete
the original. Any other use of the email by you is prohibited.
#!/bin/ksh
#
# Bacula interface to mtx autoloader
#
#  $Id: mtx-changer.in,v 1.11.2.1 2004/11/05 21:53:52 kerns Exp $
#
#  If you set in your Device resource
#
#  Changer Command = path-to-this-script/mtx-changer %c %o %S %a %d
#you will have the following input to this script:
#
#  mtx-changer changer-device command slot archive-device drive-index
#  $1  $2   $3$4   $5
#
#  for example:
#
#  mtx-changer /dev/sg0 load 1 /dev/nst0 0 (on a Linux system)
#
#  If you need to an offline, refer to the drive as $4
#e.g.   mt -f $4 offline
#
#  Many changers need an offline after the unload. Also many
#   changers need a sleep 60 after the mtx load.
#
#  N.B. If you change the script, take care to return either 
#   the mtx exit code or a 0. If the script exits with a non-zero
#   exit code, Bacula will assume the request failed.
#

MTX=/opt/bacula-1.36.3/bin/mtx

#
# The purpose of this function to wait a maximum 
#   time for the drive. It will
#   return as soon as the drive is ready, or after
#   waiting a maximum of 180 seconds.
# Note, this is very system dependent, so if you are
#   not running on Linux, you will probably need to
#   re-write it.
#
# If you have a FreeBSD system, you might want to change
#  the $(seq 180) to $(jot 180) -- tip from Brian McDonald
#
wait_for_drive() {
  for i in $(seq 180); do   # Wait max 180 seconds
if mt -f $1 status | grep ONLINE  /dev/null 21; then
  break
fi
#   echo Device $1 - not ready, retrying...
sleep 1
  done
}


if test $# -lt 2 ; then
  echo usage: mtx-changer ctl-device command slot archive-device drive
  echo   Insufficient number of arguments arguments given.
  echo   Mimimum usage is first two arguments ...
  exit 1
fi

# Setup arguments
ctl=$1
cmd=$2
slot=$3
device=$4
# If drive not given, default to 0
if test $# = 5 ; then
  drive=$5
else
  drive=0
fi

#
# Check for special cases where only 2 arguments are needed, 
#  all others are a minimum of 3
case $cmd in
   loaded)
 ;;
   unload)
 ;;
   list)
 ;;
   slots)
 ;;
   *)
 if test $# -lt 3; then
echo usage: mtx-changer ctl-device command slot archive-device drive
echo   Insufficient number of arguments arguments given.
echo   Mimimum usage is first three arguments ...
exit 1
 fi
 ;;
esac


case $cmd in 
   unload)
# echo Doing mtx -f $ctl unload $slot $drive
#
# enable the following line if you need to eject the cartridge
# mt -f $device offline
  if test x$slot = x; then
 ${MTX} -f $ctl unload
  else
 ${MTX} -f $ctl unload $slot $drive
  fi
  ;;

   load)
# echo Doing mtx -f $ctl load $slot $drive
  ${MTX} -f $ctl load $slot $drive
  rtn=$?
#
# Increase the sleep time if you have a slow device
# or remove the sleep and add the following:
# wait_for_drive $device
  sleep 15
  exit $rtn
  ;;

   list) 
# echo Requested list
  ${MTX} -f $ctl status | grep  *Storage Element [0-9]*:.*Full | awk 
{print \$3 \$4} | sed s/Full *\(:VolumeTag=\)*//
# Comment out the previous line and add a line here
# to print fake barcodes.
#
# If you have a VXA PacketLoader and the above does not work, try
#  turning it off and enabling the following line.
# ${MTX} -f $ctl status | grep  *Storage Element [0-9]*:.*Full | sed 
s/*Storage Element // | sed s/Full :VolumeTag=//
  ;;

   loaded)
  ${MTX} -f $ctl status /tmp/mtx.$$
  rtn=$?
  cat /tmp/mtx.$$ | grep ^Data Transfer Element $drive:Full | awk {print 
\$7}
  cat /tmp/mtx.$$ | grep ^Data Transfer Element $drive:Empty | awk 
{print 0}
  rm -f /tmp/mtx.$$
  exit $rtn
  ;;

   slots)
# echo Request slots
  ${MTX} -f $ctl status | grep  *Storage Changer | awk {print \$5}
  ;;
esac
#
# Default Bacula Director 

Re: [Bacula-users] IDE Travan Tapedrive

2005-08-15 Thread Jeffrey L. Taylor
Quoting Sascha Alexander Jopen [EMAIL PROTECTED]:
 Hi list,
 
 i'm trying to get my Seagate STT2A IDE Travan Tapedrive to work with
 bacula-1.36.3 with no success. I think this should be possible, but i
 can't figure out the right parameters for this drive.
 
 I tried both the native ide-tape driver and the ide-scsi/st drivers for
 this tape.
 
[snip]
 Maybe someone got such a drive working with bacula and can post me the
 right config section.
 
 Buying a new DLT or DAT drive is no option, as i have this drive with
 several tapes. The capacity is sufficient for my home office, and new
 drives and tapes are too expensive for the moment.
 

The native IDE tape driver has been broken for several years (since
1.12 IIRC) for the STT20.  The version included with SuSE 9.3,
1.19, is much improved and still unusable.  The SCSI emulation has
given errors for the last several years, but been usable.  IIRC, it
isn't reliable enough in SuSE 9.3 to depend on.

I have switched to DVDs for backup.  Drives on sale are half to
quarter the price, media is nearly 1/100 the price (0.40USD
vs. 30USD), and capacity is 40%.  Read and write speed is much higher,
1/2 hour for 4GB vs. 3 1/2 hours for 10GB.

HTH,
  Jeffrey


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mount USB disk

2005-08-15 Thread Daniel Bloemer

Hi,

Alan Brown wrote:

On Sun, 7 Aug 2005, Mick wrote:


I use an USB disk as backup target for Bacula. It works fine. But there
is one issue: I want to mount it immediatly before the backup and
unmount it afterwards. There is even a mount option for the config file
(sd.config I think), but this option is not allowed for a harddisk.


Assuming you're using a linux system, why not allow hotplug and subfs to 
do this for you automagically?


I am working on a similiar solution here. The problem is, that the 
hotplug-agent doesnt mount the USB-Harddisc on a fixed mountpoint.


I tried to define a fixed mountpoint myself, but the hotplug-agent has 
avoided all my attempts until now.


Regards Daniel
--
Daniel Bloemer - BusinessCoDe GmbH
Systemadministration and Support
Phone: +49 (0)228 / 28925-43
http://www.business-code.de


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula on IBM POWER5

2005-08-15 Thread Stephen M. Kennedy
Hi,

  Trying to compile bacula 1.36.3 with RHEL4 on an IBM Power5 system.
When I execute the configure script, it fails saying that the compiler
cannot create executables.

  I checked the config.log (as it suggested) and found the following
error.

  /usr/bin/ld: crt1.o: No such file: No such file or directory

  I assume this is because it is not looking in the /usr/lib64 directory
where the file resides so I created a link to /usr/lib/crt1.o
in /usr/lib (and had to do the same for crti.o) and now when I run
configure it still says that the compiler cannot create executables and
has the following error in config.log:

/usr/bin/ld: skipping incompatible /usr/lib/gcc/ppc64-redhat-
linux/3.4.3/../../../../lib/libc.so when searching for -lc


Any ideas?





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] restore complete file system branches

2005-08-15 Thread Mick
Martin Simmons wrote:

 I suggest you post your session output so we can see what options you
 are choosing and what the error message is.

I have to correct my problem description:

I can restore a directory even if it is empty. It is necessary to
conclude the path with a /. Then the directory is restored, but not
its content. How can I restore a complete branch?

Is there a possibility to tell Bacula to restore recursively from a
given point in the backuped file system tree?


restore

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

To select the JobIds, you have the following choices:
 1: List last 20 Jobs run
 2: List Jobs where a given File is saved
 3: Enter list of comma separated JobIds to select
 4: Enter SQL list command
 5: Select the most recent backup for a client
 6: Select backup for a client before a specified time
 7: Enter a list of files to restore
 8: Enter a list of files to restore before a specified time
 9: Cancel
Select item:  (1-9): 7
Automatically selected Client: server1-fd
Enter file names with paths, or  to enter a filename
containg a list of file names with paths, and terminate
them with a blank line.
Enter full filename: /etc
No database record found for: /etc
Enter full filename: /etc/
Enter full filename: 
Bootstrap records written to /var/lib/bacula/restore.bsr

The job will require the following Volumes:
   
   volume0001


1 file selected to be restored.

Run Restore job
JobName:RestoreFiles
Bootstrap:  /var/lib/bacula/restore.bsr
Where:  /tmp/bacula-restores
Replace:always
FileSet:Full Set
Client: server1-fd
Storage:File
When:   2005-08-11 12:31:41
Catalog:MyCatalog
Priority:   10
OK to run? (yes/mod/no): y
Job started. JobId=118
11-Aug 12:31 server1-dir: Start Restore Job
RestoreFiles.2005-08-11_12.31.49
11-Aug 12:31 server1-sd: Ready to read from volume volume0001 on
device /mnt/BackupDisk/backup.
server1-fd: drwxr-xr-x  113 root root8192 2005-08-11
03:05:03  /tmp/bacula-restores/etc/
11-Aug 12:34 server1-dir: Bacula 1.36.2 (28Feb05): 11-Aug-2005 12:34:16
  JobId:  118
  Job:RestoreFiles.2005-08-11_12.31.49
  Client: server1-fd
  Start time: 11-Aug-2005 12:31:51
  End time:   11-Aug-2005 12:34:16
  Files Expected: 1
  Files Restored: 1
  Bytes Restored: 0
  Rate:   0.0 KB/s
  FD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Restore OK

11-Aug 12:34 server1-dir: Begin pruning Jobs.
11-Aug 12:34 server1-dir: No Jobs found to prune.
11-Aug 12:34 server1-dir: Begin pruning Files.
11-Aug 12:34 server1-dir: No Files found to prune.
11-Aug 12:34 server1-dir: End auto prune.


/M



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula 1.36.3cannot connect to Postgresql Database

2005-08-15 Thread Herbert FRIEDL


BDY.RTF
Description: RTF file


RE: [Bacula-users] Backula Autoloader Weirdness

2005-08-15 Thread Alan Brown

On Thu, 11 Aug 2005, Bennett, Silas (GE Infrastructure) wrote:


Just a reminder that I am waiting patiently... ;0)


1: Are you running mtx and mtx-changer as the effective Bacula user

2: Does the changer device have suitable permissions for the effective
   Bacula user?

That seems to be the most commmon way this particular failure occurs.




---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] list files jobid and more detail

2005-08-15 Thread Justin Finkelstein
Think this is worth raising as possible feature request?
I can probably do the work myself for something this simple :)

-Original Message-
From: Martin Simmons [mailto:[EMAIL PROTECTED] 
Sent: 12 August 2005 11:57
To: [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] list files jobid and more detail


 On Fri, 12 Aug 2005 09:15:48 +0100, Justin Finkelstein 
 [EMAIL PROTECTED] said:

  J I'm just looking at a list of files for a job that recently finished
  J executing, and list files jobid=xx is quite useful in that it shows me
a
  J list of files that were backed up.

  J Is it possible to see the same list, but with file sizes as well?

AFAIK, there is no built-in way to do that.  The information is stored in
the LStat column of the File table.

__Martin





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: Horribly slow through put on backup test to disk

2005-08-15 Thread George R . Kasica
On Wed, 10 Aug 2005 12:06:39 -0400, you wrote:

George R.Kasica wrote:
 Got all the labeling and cleaning tape definitions done here over the
 weekend and built a series of jobs to backup not only my local Linux
 Server but a W2K3 Server as well as a WinXP Pro system as well. 
 
 Key to the XP Pro was allowing Ports 9101, 9102 and 9104 TCP to be
 open through the MS Firewall. 

9104?  Bacula is usually 9101-9103.  Did you have to reassign a port for
some reason?
BIG OOPS..typo, that should be 9103.

 Also replaced the Linux net card with the 3com one, still no joy on
 the IDE controller, it will simply NOT see the drives and if its even
 in the box it panics on boot.

I don't know what to suggest on that issue, then.
I'll toss it on LK and see if someone there has an idea.

 Oddly the speed seemed pretty good for
 this run - see below.

982K/s is definitely a big improvement over 50k/s, though it still seems
slow compared to what I'd expect you should be seeing.  I wonder how
much of that is due to replacing that RTL8139 with the 3Com?
I'm not sure it was a local run, tape drives on same box as backing
up, so I'd say not too much, but

In a related matter, I backed up a remote W2K3 Server Tuesday and got
about the same speed. BUT, I've started a backup on the XPPro notebook
box (with the firewall holes to allow it) and I'm seeing about 115K
onlylooks like it is about a 72 hour run for a 30GB driveany
thoughts on that? Pentium III chip 100MB/full duplex link. system is
doing nothing else.

If the XPPro was fast I'd be totally happy, but the 2 I really want
backed up are working sowe shall see come tape set rotation next
Monday.

George


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] after machine shutdown and restart, tapes are not recognized

2005-08-15 Thread Stelios Kyriacou

I am a light user of bacula

I have a bacula system that has been working for maybe 10 months now. We did a
shutdown of the server last friday without first stopping the bacula service
(should i?) and after we rebooted and started the bacula service I have a big
problem: bacula tapes do not seem to be recognized althouth already in the 
database and
used. Although the right tape was mounted already , bacula gave this error

07-Aug 01:15 head-sd: Please mount Volume B003 on Storage Device 
Exabyte 
for Job Client1.2005-08-07_01.05.00

Here i stopped bacula and i did a mtx status which seems to give the correct 
results that B003 is in the tape drive.

# mtx status
  Storage Changer /dev/changer:1 Drives, 10 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = B003

  Storage Element 1:Full :VolumeTag=B001
  Storage Element 2:Full :VolumeTag=B002
  Storage Element 3:Empty:VolumeTag=
  Storage Element 4:Full :VolumeTag=B004
  Storage Element 5:Full :VolumeTag=B005
  Storage Element 6:Full :VolumeTag=B006
  Storage Element 7:Full :VolumeTag=B007
  Storage Element 8:Full :VolumeTag=B008
  Storage Element 9:Full :VolumeTag=B009
  Storage Element 10:Full :VolumeTag=CLNA0002

I tried another tape, B004, and with the same problem (now i tried mount 
command just to see what it says):

* mount
The defined Storage resources are:
 1: File
 2: Exabyte
Select Storage resource (1-2): 2
3905 Device /dev/nst0 open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.

Any idea why already bacula-written tapes are not recognized anymore as such? 

I could maybe use btape to relabel the tapes but wanted to ask first. The data 
on the tapes is not so crucial i believe, so it maybe ok to start fresh but 
still i would like to see what is wrong. 

More info: I use bacula 1.36.0 and an exabyte exabyte VXA2 PacketLoader 1x10 1U 
Autoloader 

Thanks very much in advance for the help.

-- 
  - Stelios



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] relabeling tapes?

2005-08-15 Thread Alan Brown

On Fri, 12 Aug 2005, Phil Stracchino wrote:


On the other hand, do you want to PHYSICALLY ERASE the tape and all data
on it to make sure it cannot be trivially recovered off the tape by
someone you don't wish to have it?  Buy a bulk eraser, but be aware that
someone who's really determined and has the right equipment can still
recover the data.


A _good_ bulk eraser will make forensic recovery almost impossible when 
coupled with correct erasure techniques.


HOWEVER. NEVER USE A BULK ERASER ON LTO TAPES UNLESS DEAD.

LTOs (and some other formats) have a servo track on them. Hitting them 
with a bulk eraser renders them completely unusable.



If that's not good enough for you, and you want the data on the tape
guaranteed unrecoverable even using a SQUID, physically destroy the tape
by incineration.


If you take this route they must be destroyed in a furnace hot enough to
burn the plastic cleanly or toxic compounds will be given off (PVC gives 
off carcinogenic fumes even when burned correctly, but I don't believe 
any current tape technologies or casings use PVC).


We dispose of our old tapes in medical waste incinerators but this is 
lmited to very small amounts - the odd tape every so often. I've just seen 
a steelmaking technique which uses waste plastic to obtain carbon and this 
may also be a suitable method of disposal (thoughts of Terminator 2 spring 
to mind...)


AB


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Differential Backup to which Full backup ?

2005-08-15 Thread Alan Brown

On Sat, 13 Aug 2005, Philipp Steinkrueger wrote:

yes, that would be enough to meet my needs, but it would have a big 
disadvantage

over my scheme, because duplicating media would take _hours_. we calculated,
that for our current data to be fully backuped, it would take more than 10 
hours.


It takes 5 days for a fullback of all storage here and that's just set to 
double as I bring another 13Tb online.


If your backups are not fast enough, get denser/faster media (SAIT2 or 
LTO3) and make sure you have your disk spooling optimised (it makes a huge 
difference for differentials and incrementals)


Personally, if faced with the situation you have I'd run one full 
backup/diff/incremental job to tape and one to disk volumes.


Yes it's a doubleup, but it's the least manual intervention needed. The
tapes can be then taken offsite after being recorded.


AB



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] relabeling tapes?

2005-08-15 Thread Phil Stracchino
Alan Brown wrote:
 HOWEVER. NEVER USE A BULK ERASER ON LTO TAPES UNLESS DEAD.
 
 LTOs (and some other formats) have a servo track on them. Hitting them
 with a bulk eraser renders them completely unusable.

Thanks.  That's a useful tip.


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


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] IDE Travan Tapedrive

2005-08-15 Thread Sascha Alexander Jopen
Ok, using the ide-tape driver isn't an option as it seems.
But i'm still interessted in using the ide-scsi driver. Wether it is
reliable enough for a working bacula environment or not, i can only
figure out, when i get the drive running. I don't have much critical
data, so a failing job won't do much harm.

Backing up to DVD isn't my preferred method, althoug i haven't tested it
till now. I have the STT2 available, but no other backup solution,
and it annoyes me not to get it running.

I still hope that someone can help me with a configuration or other help
for this particular drive. If there is noone with such a config
available, i'm forced to think of a new solution, sure.

Thx anyway, Jeffrey. Maybe i research into your backup method for future
use.

Regards,
Sascha


Hi list,

i'm trying to get my Seagate STT2A IDE Travan Tapedrive to work with
bacula-1.36.3 with no success. I think this should be possible, but i
can't figure out the right parameters for this drive.

I tried both the native ide-tape driver and the ide-scsi/st drivers for
this tape.

 
 [snip]
 
Maybe someone got such a drive working with bacula and can post me the
right config section.

Buying a new DLT or DAT drive is no option, as i have this drive with
several tapes. The capacity is sufficient for my home office, and new
drives and tapes are too expensive for the moment.

 
 
 The native IDE tape driver has been broken for several years (since
 1.12 IIRC) for the STT20.  The version included with SuSE 9.3,
 1.19, is much improved and still unusable.  The SCSI emulation has
 given errors for the last several years, but been usable.  IIRC, it
 isn't reliable enough in SuSE 9.3 to depend on.
 
 I have switched to DVDs for backup.  Drives on sale are half to
 quarter the price, media is nearly 1/100 the price (0.40USD
 vs. 30USD), and capacity is 40%.  Read and write speed is much higher,
 1/2 hour for 4GB vs. 3 1/2 hours for 10GB.
 
 HTH,
   Jeffrey



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restore complete file system branches

2005-08-15 Thread Martin Simmons
 On Thu, 11 Aug 2005 10:54:19 + (UTC), Mick [EMAIL PROTECTED] said:

  Mick Martin Simmons wrote:

   I suggest you post your session output so we can see what options you
   are choosing and what the error message is.

  Mick I have to correct my problem description:

  Mick I can restore a directory even if it is empty. It is necessary to
  Mick conclude the path with a /. Then the directory is restored, but not
  Mick its content. How can I restore a complete branch?

  Mick Is there a possibility to tell Bacula to restore recursively from a
  Mick given point in the backuped file system tree?

It looks like you can't do this with option 7.  You have to use option 5
(Select the most recent backup for a client) and the cd and mark commands to
select the directory.

Bacula 1.37 beta has an extra option in restore to take a whole directory (but
not its subdirs for some reason).

__Martin


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mount USB disk

2005-08-15 Thread Josh Fisher
This can be done with UDEV. On Fedora Core 3 I created a file under 
/etc/udev/rules.d named 20-jumpdrive.rules with the following line:


KERNEL=sd?1*, SYSFS{vendor}=LEXAR, SYSFS{model}=JUMPDRIVE SECURE, 
NAME=%k, SYMLINK=jumpdrive%e


This causes my Lexar JumpDrive (USB thumbdrive device) to be mapped as a 
block device at /dev/jumpdrive  when it is inserted.  When it is 
unplugged the /dev/jumpdrive entry is removed. The %e in the SYMLINK 
entry causes additional JumpDrives to be mapped to /dev/jumpdrive1, 
/dev/jumnpdrive2, etc.


FC3 also uses HAL and has an entry in /etc/hal/device.d to run 
/usr/sbin/fstab-sync. fstab-sync adds and removes mountpoints under 
/media, as well as entries to /etc/fstab, according to HAL policies 
stored under /usr/share/hal/fdi. By default, the volume label of the 
device will be used to name the mountpoint. I configured HAL to name my 
mountpoint /mount/jumpdrive by creating an XML file named 
jumpdrive.fdi under /usr/share/hal/fdi/95userpolicy. Here is my 
jumpdrive.fdi file:


?xml version=1.0 encoding=ISO-8859-1? !-- -*- SGML -*- --
deviceinfo version=0.2
device
 match key=volume.is_partition bool=true
   match key=volume.fsusage string=filesystem
 match key=volume.fstype string=vfat
   match key=@block.storage_device:storage.vendor string=LEXAR
 match key=@block.storage_device:storage.model 
string=JUMPDRIVE SECURE
   merge key=volume.policy.desired_mount_point 
type=stringjumpdrive/merge
   merge key=volume.policy.mount_filesystem 
type=stringvfat/merge

   merge key=volume.policy.should_mount type=booltrue/merge
   merge 
key=volume.policy.mount_option.fscontext=system_u:object_r:removable_t 
type=boolfalse/merge

 /match
   /match
 /match
   /match
 /match
/device
/deviceinfo

I obtained the values to use for the match tags from the output of the 
lshal command.


So, when I insert the JumpDrive its device node is /dev/jumpdrive, its 
mountpoint is /mount/jumpdrive, and an entry is added to /etc/fstab so 
that I mount it with the command /bin/mount /mount/jumpdrive.


A RunBeforeJob script could mount the device with a simple mount 
command. It could also tell if the drive was inserted by testing whether 
or not the mountpoint existed. A RunAfterJob could unmount the device 
just as easily. Of course, if multiple drives were being used it would 
be neccessary to always insert the devices in the correct order so that 
the device with a particular bacula volume label was at the correct 
device node and mountpoint.


A better approach would be for the RunBeforeJob script to read the 
bacula volume label from all inserted devices, find the mountpoint of 
the device containing the desired label, mount it, and then create a 
symlink to the mountpoint. The bacula job would use the symlink as its 
ArchiveDevice. I have not tried this, and I'm not sure if the 
RunAfterJob script could then figure out which  device to unmount.


Josh Fisher
[EMAIL PROTECTED]

Daniel Bloemer wrote:


Hi,

Alan Brown wrote:


On Sun, 7 Aug 2005, Mick wrote:


I use an USB disk as backup target for Bacula. It works fine. But there
is one issue: I want to mount it immediatly before the backup and
unmount it afterwards. There is even a mount option for the config file
(sd.config I think), but this option is not allowed for a harddisk.



Assuming you're using a linux system, why not allow hotplug and subfs 
to do this for you automagically?



I am working on a similiar solution here. The problem is, that the 
hotplug-agent doesnt mount the USB-Harddisc on a fixed mountpoint.


I tried to define a fixed mountpoint myself, but the hotplug-agent has 
avoided all my attempts until now.


Regards Daniel





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula on IBM POWER5

2005-08-15 Thread Martin Simmons
 On Thu, 11 Aug 2005 11:38:36 -0400, Stephen M. Kennedy [EMAIL 
 PROTECTED] said:

  Stephen   Trying to compile bacula 1.36.3 with RHEL4 on an IBM Power5 system.
  Stephen When I execute the configure script, it fails saying that the 
compiler
  Stephen cannot create executables.

  Stephen   I checked the config.log (as it suggested) and found the following
  Stephen error.

  Stephen   /usr/bin/ld: crt1.o: No such file: No such file or directory

  Stephen   I assume this is because it is not looking in the /usr/lib64 
directory
  Stephen where the file resides so I created a link to /usr/lib/crt1.o
  Stephen in /usr/lib (and had to do the same for crti.o) and now when I run
  Stephen configure it still says that the compiler cannot create executables 
and
  Stephen has the following error in config.log:

  Stephen /usr/bin/ld: skipping incompatible /usr/lib/gcc/ppc64-redhat-
  Stephen linux/3.4.3/../../../../lib/libc.so when searching for -lc


  Stephen Any ideas?

I would guess that cc is defaulting to 32 bit but you don't have the necessary
development libraries installed.

Maybe you can force it to be 64 bit by setting CFLAGS=-m64 in the environment
to configure?

__Martin


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] Backup / Restore of DB2 Databases using Fifo's

2005-08-15 Thread brett.dellegrazie
Dear Thomas,

Thanks,

These scripts were most helpful!

I've thought about a couple of solutions which bypass the manual modification 
to the permissions and the
issue where the restore is started before the pipe is created.  They go like 
this:

1) add to the bacula group the db2inst1 user and restart db2 so that db2 can 
read from the pipe.  I haven't tested
this as I'm not sure if the restore process requires write access to the 
fifo... in which case it won't be enough.
2) Instead of submitting only the db2 restore command as a background process, 
do something similar to
the following:

CUT--

#!/bin/bash
# db2bacula-restore-worker.sh
# This script is designed to be a background task with stdin redirected to 
/dev/null and stderr combined with
# stdout and then redirected to a log file.
# The log file can be catt'ed by the 'Run after client' option of bacula so 
that db2 output is captured along
# with the backup logs
#

# Wait somewhere around 2 minutes for the pipe to appear.
declare -i TIMELEFT=120

while ( [ $TIMELEFT -gt 0 ]  ! [ -p /tmp/bacula-fifo ] ) ; do
  TIMELEFT --
  sleep 1
done

if [ -p /tmp/bacula-fifo ] ; then
  # Change the permissions for the fifo here - assumes you've set this up in 
/etc/sudo.
  # If you've added the bacula group to the db2inst1 user you may not need this.
  sudo chmod o+rw /tmp/bacula-fifo

  # Restore the database here
  db2 restore  without prompting
fi

CUT---

Best Regards,

Brett Delle Grazie
Senior Developer
TBC Ltd.
Technology House, 45 Laud Street, Croydon, Surrey, CR0 1SX
Switchboard: +44 (0)20 8680 8080 Fax: +44 (0)20 8688 8645
Direct Dial: +44 (0)20 8633 8406
e-mail: [EMAIL PROTECTED]
web: http://www.tbc.co.uk/
Complex Problems Require Intelligent Thinking
_
Although every effort has been made to ensure the accuracy of the information 
supplied, the information
contained within this e-mail has not been submitted to any formal testing by 
TBC and is supplied AS IS.
The use of this information, the implementation of the techniques supplied 
within, the interpretation of how
this information affects the environment and the execution of any steps deemed 
necessary before
using this information is the responsibility of the customer. TBC will not be 
held responsible or liable
for any consequential loss or damage caused as a result of following these 
procedures. If you have any
doubts then please contact TBC immediately


-Original Message-
From: Thomas E. Ruth [mailto:[EMAIL PROTECTED]
Sent: 12 August 2005 19:33
To: Brett Delle Grazie
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Backup / Restore of DB2 Databases using
Fifo's


I havn't been able to automate a restore completely within bacula for
DB2 databases, but I've gotten close.  The bacula restore process
creates a FIFO with only root permissions but doesn't change the
permissions of the actual fifo file until data starts restoring to it.
At that time though, it's too late for the DB2 process (I think the file 
is actually deleted and re-created and the DB2 process loses it's handle 
on it).

I've attached the script that I use, maybe it will help you. I've also
attached a patch to fd_cmds.c in the director source directory that will 
allow this script to work properly (otherwise, my script can't tell if
the backup is incremental, or full, and doesn't know what to do in
either case).

Here is my job resource I use with these scripts:

Job {
  Name = database-db2
  JobDefs = WeeklyFull
  Client = tiamat2-fd
  File Set = Database DB2
  Client Run Before Job = su - instance owner -c \/database
directory/backupdb.sh '%t' '%l
' 'instance owner' 'database name'\
  Client Run After Job = su - instance owner -c \/database
directory/prunelogs.sh '%t' '%l
' 'instance owner' 'database name'\
  Write Bootstrap = /var/lib/bacula/database.bst
}

Job {
  Name = restore-database-db2
  Type = Restore
  Client = tiamat2-fd
  File Set = Database DB2
  Messages = Standard
  Storage = Tape
  Pool = Default
  Client Run Before Job = su - instance owner -c \database
dir/backupdb.sh '%t' '%l
' 'instance owner' 'database name'\
  Client Run After Job = su - instance owner -c \database
dir/prunelogs.sh '%t' '%l
' 'instance owner' 'database name'\
  Where = /
}

FileSet {
  Name = Database DB2
  Include {
Options { signature=MD5; readfifo=Yes }
File = database dir/dbpipe
  }
  Include {
Options { signature=MD5 }
File = database dir/instance name/NODE/SQL1
File = database dir/instance name/NODE/sqldbdir
File = database dir/backupdb.sh
File = database dir/prunelogs.sh
  }
}

You will need to create a new set of these job/file resources for each
database instance you have.

If you improve these scripts at all to make a restore of a DB2 database
a bit more automated, please let me know!

Tom

[EMAIL PROTECTED] wrote:

 Hi,

 I'm using bacula to backup a DB2 database 

RE: [Bacula-users] Backup / Restore of DB2 Databases using Fifo's

2005-08-15 Thread brett.dellegrazie
Dear Kern,

I'm inclined to agree with Phil  Thomas and your own comments.

Since the FileSet we use includes the 'readfifo' option, why not:
never overwrite an existing fifo if this option is set on a restore operation?

It then becomes the Run before client's job to create this fifo with the 
appropriate permissions such that bacula and the pipe reader software can
utilise it.

Best Regards,

Brett Delle Grazie

-Original Message-
From: Kern Sibbald [mailto:[EMAIL PROTECTED]
Sent: 13 August 2005 13:40
To: bacula-users@lists.sourceforge.net
Cc: Phil Stracchino; Thomas E. Ruth; Brett Delle Grazie; bacula-devel
Subject: Re: [Bacula-users] Backup / Restore of DB2 Databases using
Fifo's


Hello Phil,

On Friday 12 August 2005 20:52, Phil Stracchino wrote:
 Thomas E. Ruth wrote:
  I havn't been able to automate a restore completely within bacula for
  DB2 databases, but I've gotten close.  The bacula restore process
  creates a FIFO with only root permissions but doesn't change the
  permissions of the actual fifo file until data starts restoring to it.
  At that time though, it's too late for the DB2 process (I think the file
  is actually deleted and re-created and the DB2 process loses it's handle
  on it).

 After thinking about what's going on here, I think this is a behavioral
 error on Bacula's part.  I suspect that *by default*, Bacula should
 never overwrite a FIFO that already exists during a restore.  If it's
 not there, fine, restore it; if it's already there, LEAVE IT ALONE, we
 don't want to break anything.  Write any data to it that's supposed to
 be written to it, sure, but if we delete and recreate the FIFO, we may
 break things -- as in this example.

I think you are on to something here.

Originally, Bacula did not touch the directory entry for a file that
existed, but I forget exactly why, but I was convinced to delete each file
before restoring it. I had forgotten this until it came up with some work
that Thorsten is doing.  Deleting files before recreating them, has, in
general, improved restoration.  However, it appears that in this case, it
breaks the ability to use a FIFO to restore a file as Tom wants to do.

In general, I don't like things that are not symmetric or uniform -- i.e. why
delete most files but not FIFOs before re-creating them?  I need to think
about this for a bit and look at the code ...


 This probably applies to socket pseudo-nodes as well, assuming we even
 restore those at all (which I still believe we shouldn't).

--
Best regards,

Kern

  (
  /\
  V_V


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] mount command

2005-08-15 Thread Maurizio Santini
Hello,

I get the following message from bacula's console 15-Aug 13:32
storage01-sd: Please mount Volume Monitors01 on Storage Device DDS-4
for Job Client1.2005-08-15_12.43.00

How do I mount the volume from the console?

I try the following mount DDS-4 but I always get the same warning
message.

Thank you in advance,

Maurizio



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup / Restore of DB2 Databases using Fifo's

2005-08-15 Thread Kern Sibbald
On Monday 15 August 2005 17:55, [EMAIL PROTECTED] wrote:
 Dear Kern,

 I'm inclined to agree with Phil  Thomas and your own comments.

 Since the FileSet we use includes the 'readfifo' option, why not:
 never overwrite an existing fifo if this option is set on a restore
 operation?

You might try applying the attached patch file to version 1.36.3 (possibly 
1.36.2).

  cd bacula-source
  patch -p0 raw.patch
  make
  ...


 It then becomes the Run before client's job to create this fifo with the
 appropriate permissions such that bacula and the pipe reader software can
 utilise it.

 Best Regards,

 Brett Delle Grazie

 -Original Message-
 From: Kern Sibbald [mailto:[EMAIL PROTECTED]
 Sent: 13 August 2005 13:40
 To: bacula-users@lists.sourceforge.net
 Cc: Phil Stracchino; Thomas E. Ruth; Brett Delle Grazie; bacula-devel
 Subject: Re: [Bacula-users] Backup / Restore of DB2 Databases using
 Fifo's


 Hello Phil,

 On Friday 12 August 2005 20:52, Phil Stracchino wrote:
  Thomas E. Ruth wrote:
   I havn't been able to automate a restore completely within bacula for
   DB2 databases, but I've gotten close.  The bacula restore process
   creates a FIFO with only root permissions but doesn't change the
   permissions of the actual fifo file until data starts restoring to it.
   At that time though, it's too late for the DB2 process (I think the
   file is actually deleted and re-created and the DB2 process loses it's
   handle on it).
 
  After thinking about what's going on here, I think this is a behavioral
  error on Bacula's part.  I suspect that *by default*, Bacula should
  never overwrite a FIFO that already exists during a restore.  If it's
  not there, fine, restore it; if it's already there, LEAVE IT ALONE, we
  don't want to break anything.  Write any data to it that's supposed to
  be written to it, sure, but if we delete and recreate the FIFO, we may
  break things -- as in this example.

 I think you are on to something here.

 Originally, Bacula did not touch the directory entry for a file that
 existed, but I forget exactly why, but I was convinced to delete each file
 before restoring it. I had forgotten this until it came up with some work
 that Thorsten is doing.  Deleting files before recreating them, has, in
 general, improved restoration.  However, it appears that in this case, it
 breaks the ability to use a FIFO to restore a file as Tom wants to do.

 In general, I don't like things that are not symmetric or uniform -- i.e.
 why delete most files but not FIFOs before re-creating them?  I need to
 think about this for a bit and look at the code ...

  This probably applies to socket pseudo-nodes as well, assuming we even
  restore those at all (which I still believe we shouldn't).

-- 
Best regards,

Kern

  (
  /\
  V_V
Index: src/findlib/create_file.c
===
RCS file: /cvsroot/bacula/bacula/src/findlib/create_file.c,v
retrieving revision 1.34.10.2
diff -u -u -b -r1.34.10.2 create_file.c
--- src/findlib/create_file.c	12 Apr 2005 21:31:20 -	1.34.10.2
+++ src/findlib/create_file.c	15 Aug 2005 16:53:39 -
@@ -116,7 +116,7 @@
case FT_SPEC:
case FT_REGE:		  /* empty file */
case FT_REG: 		  /* regular file */
-  if (exists) {
+  if (exists  attr-type != FT_RAW) {
 	 /* Get rid of old copy */
 	 if (unlink(attr-ofname) == -1) {
 	berrno be;
@@ -199,8 +199,9 @@
 Dmsg1(200, Restore node: %s\n, attr-ofname);
 	if (mknod(attr-ofname, attr-statp.st_mode, attr-statp.st_rdev) != 0  errno != EEXIST) {
 	   berrno be;
-   Jmsg2(jcr, M_ERROR, 0, _(Cannot make node %s: ERR=%s\n), 
-		 attr-ofname, be.strerror());
+   Jmsg4(jcr, M_ERROR, 0, _(Cannot mknod(%s, 0x%s, 0x%x): ERR=%s\n), 
+ attr-ofname, attr-statp.st_mode, attr-statp.st_rdev,
+ be.strerror());
 	   return CF_ERROR;
 	}
 	 }	 


[Bacula-users] Associating Jobs with Volumes

2005-08-15 Thread Joe Stump
I'm wondering how to associate Volumes with Jobs. It doesn't seem  
clear to me how I say Use this Volume for this Job. I'm currently  
backing up multiple workstations and I'd like each workstation to  
have it's own Volume (using FileStorage).


How does bacula figure out which Volume to use? I just want to say  
Job X uses Volume X on FileStorage with incrementals. Is this even  
possible?


Ideas?

--Joe

--
Joseph C. Stump
[EMAIL PROTECTED]
http://www.joestump.net





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Spooling to disk and concurrency

2005-08-15 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I've been trying to get Bacula to spool to disk and run concurrent
jobs but it just isn't working...backing up works one-by-one but
nothing gets spooled to disk in the meantime. Is there a way to
force it to spool, or is it supposed to always spool, or is there
some other way to test it? Does it only spool if there are
concurrent jobs running? I have Spool Data = yes in my Device
config and my JobDefs.

I also can't seem to get multiple jobs to run. I've been using 'run'
from within bconsole, maybe that's why? I have Maximum Concurrent
Jobs = 4 in my Director and JobDefs config, but it is to a tape
drive so I have that default (1). Spooling is supposed to make this
possible, though, correct?

Thanks,
Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDAPPvV/+PyAj2L+IRAmpzAJ0ck7qs9Lk3wEk+hNgOB9kOaxf8lwCfTUis
rVedDEwvpze8mgLd1q4z/X8=
=xrql
-END PGP SIGNATURE-


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mount USB disk

2005-08-15 Thread Joshua Kugler
On Thursday 11 August 2005 02:13, Daniel Bloemer wrote:
 Hi,

 Alan Brown wrote:
  On Sun, 7 Aug 2005, Mick wrote:
  I use an USB disk as backup target for Bacula. It works fine. But there
  is one issue: I want to mount it immediatly before the backup and
  unmount it afterwards. There is even a mount option for the config file
  (sd.config I think), but this option is not allowed for a harddisk.
 
  Assuming you're using a linux system, why not allow hotplug and subfs to
  do this for you automagically?

 I am working on a similiar solution here. The problem is, that the
 hotplug-agent doesnt mount the USB-Harddisc on a fixed mountpoint.

 I tried to define a fixed mountpoint myself, but the hotplug-agent has
 avoided all my attempts until now.

If you label the disk (using the filesystem's label commands: e2label for 
ext2, xfs_admin -L label for xfs, etc), then when the drive is detected, it 
should have a mount point created in /mnt/LABEL.  At least that is the way 
it works on my Mandrake 10.2 system.  I have an XFS formatted drive in my USB 
enclosure with the label BackupDrive.  When I turn it on, a mount point is 
created at /mnt/BackupDrive and an entry is added in /etc/fstab.

Of course, you could always mount the drive manually at a known location:

mount /dev/sda1 /mnt/MyKnownLocation

j- k-

-- 
Joshua Kugler
CDE System Administrator
http://distance.uaf.edu/


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] mount command

2005-08-15 Thread Chris Lee
Use mount storage=DDS-4.

Thanks,
Chris  

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Maurizio Santini
 Sent: Monday, 15 August, 2005 11:36
 To: bacula-users@lists.sourceforge.net
 Subject: [Bacula-users] mount command
 
 Hello,
 
 I get the following message from bacula's console 15-Aug 13:32
 storage01-sd: Please mount Volume Monitors01 on Storage 
 Device DDS-4
 for Job Client1.2005-08-15_12.43.00
 
 How do I mount the volume from the console?
 
 I try the following mount DDS-4 but I always get the same warning
 message.
 
 Thank you in advance,
 
 Maurizio
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development 
 Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * 
 Testing  QA
 Security * Process Improvement  Measurement * 
 http://www.sqe.com/bsce5sf
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup to ISO image?

2005-08-15 Thread Joe Stump
This is sort like something I was thinking about. It would pretty  
much kick ass if I could mount -t bacula /path/to/fullbackup. As in a  
Linux file system driver or something for bacula volumes.


--Joe

On Aug 15, 2005, at 3:10 PM, Chris Lee wrote:

I know that there has been a lot of work on backup to DVD, though I  
haven't
looked very closely at it before.  It has recently occurred to me  
that I
might like to backup some of my data to dvd, but I don't know if I  
want to
purchase another dvd writer for my storage machine.  If it isn't  
already
possible, may I request a feature addition with which CD/DVD  
backups can be
performed but instead of writing to CD or DVD only an ISO image is  
made

which can be burned later or on another machine?

Thanks,
Chris



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle  
Practices
Agile  Plan-Driven Development * Managing Projects  Teams *  
Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/ 
bsce5sf

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



--
Joseph C. Stump
[EMAIL PROTECTED]
http://www.joestump.net





---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup to ISO image?

2005-08-15 Thread Joshua Kugler
dd if=/dev/zero bs=1k count=1 seek=`expr 1024 \* 4096` of=image.bin

As root:
losetup /dev/loop7 image.bin

Then you can access that as a drive (partition with fdisk, etc).  I'm not sure 
of the specifics of mounting, etc, but googling for loopback should get you 
going.

j- k-

On Monday 15 August 2005 15:25, Joe Stump wrote:
 Is this possible? Are there any docs showing how to do this?

 --Joe

 On Aug 15, 2005, at 4:18 PM, Joshua Kugler wrote:
  What about using a loopback?
 
  j- k-
 
  On Monday 15 August 2005 14:20, Joe Stump wrote:
  This is sort like something I was thinking about. It would pretty
  much kick ass if I could mount -t bacula /path/to/fullbackup. As in a
  Linux file system driver or something for bacula volumes.
 
  --Joe
 
  On Aug 15, 2005, at 3:10 PM, Chris Lee wrote:
  I know that there has been a lot of work on backup to DVD, though I
  haven't
  looked very closely at it before.  It has recently occurred to me
  that I
  might like to backup some of my data to dvd, but I don't know if I
  want to
  purchase another dvd writer for my storage machine.  If it isn't
  already
  possible, may I request a feature addition with which CD/DVD
  backups can be
  performed but instead of writing to CD or DVD only an ISO image is
  made
  which can be burned later or on another machine?
 
  Thanks,
  Chris
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle
  Practices
  Agile  Plan-Driven Development * Managing Projects  Teams *
  Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/
  bsce5sf
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
 
  --
  Joseph C. Stump
  [EMAIL PROTECTED]
  http://www.joestump.net
 
 
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle
  Practices
  Agile  Plan-Driven Development * Managing Projects  Teams *
  Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/
  bsce5sf
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
 
  --
  Joshua Kugler
  CDE System Administrator
  http://distance.uaf.edu/
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle
  Practices
  Agile  Plan-Driven Development * Managing Projects  Teams *
  Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/
  bsce5sf
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users

 --
 Joseph C. Stump
 [EMAIL PROTECTED]
 http://www.joestump.net





 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Joshua Kugler
CDE System Administrator
http://distance.uaf.edu/


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] Backup to ISO image?

2005-08-15 Thread Knut E. Meidal
Using a loopback would work fine for a read/write filesystem. I do that
all the time.

Maybe I read too much into it, but 
if I understood the original poster, he was looking for mounting a loop
device/file, writing to it to create a file in ISO format that could be
burned as-is into a useable CD or DVD.

This is where I think there would be a problem. I doubt you can expect a
useable ISO image after regular reads/writes/copy to and from the loop
back image file.

Boy, would I like to be wrong on this... I'd love to be able to do it.

Knut Meidal

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joshua
Kugler
Sent: Monday, August 15, 2005 4:18 PM
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Backup to ISO image?


What about using a loopback?

j- k-

On Monday 15 August 2005 14:20, Joe Stump wrote:
 This is sort like something I was thinking about. It would pretty much

 kick ass if I could mount -t bacula /path/to/fullbackup. As in a Linux

 file system driver or something for bacula volumes.

 --Joe

 On Aug 15, 2005, at 3:10 PM, Chris Lee wrote:
  I know that there has been a lot of work on backup to DVD, though I 
  haven't looked very closely at it before.  It has recently occurred 
  to me that I
  might like to backup some of my data to dvd, but I don't know if I
  want to
  purchase another dvd writer for my storage machine.  If it isn't
  already
  possible, may I request a feature addition with which CD/DVD
  backups can be
  performed but instead of writing to CD or DVD only an ISO image is
  made
  which can be burned later or on another machine?
 
  Thanks,
  Chris
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO 
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
  Practices Agile  Plan-Driven Development * Managing Projects  
  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/
  bsce5sf
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users

 --
 Joseph C. Stump
 [EMAIL PROTECTED]
 http://www.joestump.net





 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO 
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
 Practices Agile  Plan-Driven Development * Managing Projects  Teams 
 * Testing  QA Security * Process Improvement  Measurement * 
 http://www.sqe.com/bsce5sf 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Joshua Kugler
CDE System Administrator
http://distance.uaf.edu/


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices Agile  Plan-Driven Development * Managing Projects  Teams *
Testing  QA Security * Process Improvement  Measurement *
http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] Backup to ISO image?

2005-08-15 Thread Knut E. Meidal
Ah, now I see. (Maintenance window until 2am last nite, see... A little
slow today)
Something like Nero ImageDrive, then.

K

-Original Message-
From: Joe Stump [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 15, 2005 4:48 PM
To: Knut E. Meidal
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Backup to ISO image?


Yeah, the original post was about creating (full?) backups directly  
as images. Ie. instead of a bacula volume the volume would be an ISO  
file that he could then burn.

What I was asking is if there is any way to mount a bacula volume  
that was written to disk. The entire thing is one big file. If it's  
an ISO, then yeah I can mount it on loopback, if it's some  
proprietary bacula thing then I'd either need baculavolume2iso or an  
fs driver that would let me mount my bacula volumes.

--Joe

On Aug 15, 2005, at 4:39 PM, Knut E. Meidal wrote:

 Using a loopback would work fine for a read/write filesystem. I do
 that
 all the time.

 Maybe I read too much into it, but
 if I understood the original poster, he was looking for mounting a
 loop
 device/file, writing to it to create a file in ISO format that  
 could be
 burned as-is into a useable CD or DVD.

 This is where I think there would be a problem. I doubt you can
 expect a
 useable ISO image after regular reads/writes/copy to and from the loop
 back image file.

 Boy, would I like to be wrong on this... I'd love to be able to do it.

 Knut Meidal

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Joshua 
 Kugler
 Sent: Monday, August 15, 2005 4:18 PM
 To: bacula-users@lists.sourceforge.net
 Subject: Re: [Bacula-users] Backup to ISO image?


 What about using a loopback?

 j- k-

 On Monday 15 August 2005 14:20, Joe Stump wrote:

 This is sort like something I was thinking about. It would pretty
 much



 kick ass if I could mount -t bacula /path/to/fullbackup. As in a  
 Linux



 file system driver or something for bacula volumes.

 --Joe

 On Aug 15, 2005, at 3:10 PM, Chris Lee wrote:

 I know that there has been a lot of work on backup to DVD, though I
 haven't looked very closely at it before.  It has recently occurred
 to me that I
 might like to backup some of my data to dvd, but I don't know if I
 want to
 purchase another dvd writer for my storage machine.  If it isn't
 already
 possible, may I request a feature addition with which CD/DVD
 backups can be
 performed but instead of writing to CD or DVD only an ISO image is
 made
 which can be burned later or on another machine?

 Thanks,
 Chris



 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle
 Practices Agile  Plan-Driven Development * Managing Projects 
 Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/
 bsce5sf
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


 --
 Joseph C. Stump
 [EMAIL PROTECTED]
 http://www.joestump.net





 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle
 Practices Agile  Plan-Driven Development * Managing Projects  Teams
 * Testing  QA Security * Process Improvement  Measurement *
 http://www.sqe.com/bsce5sf
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


 -- 
 Joshua Kugler
 CDE System Administrator
 http://distance.uaf.edu/


 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle
 Practices Agile  Plan-Driven Development * Managing Projects   
 Teams *
 Testing  QA Security * Process Improvement  Measurement *
 http://www.sqe.com/bsce5sf
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle  
 Practices
 Agile  Plan-Driven Development * Managing Projects  Teams *  
 Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/ 
 bsce5sf
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Joseph C. Stump
[EMAIL PROTECTED]
http://www.joestump.net





---
SF.Net email is Sponsored by the 

RE: [Bacula-users] Backup to ISO image?

2005-08-15 Thread Chris Lee
Yeah I've been reading up on the developer documentation for bacula and it
seems that volumes written in a bacula-specific format.
http://bacula.org/developers/Overall_Storage_Format.html covers this.  Back
to the original post, yes, Joe is correct in that I'm talking about backing
up to CD or DVD but not actually burning them with bacula.  I'd like for
bacula to do everything except for writing the media -- just grow the ISO
and leave it on my server where I can retrieve and burn it later.
Specifically, I want to do this to back up large amounts of multimedia that
I don't want to add into my daily tape cycle.  Occasionally I could just
manually run a full backup of said files and store it all on DVD, but my
DVDRW is in my win32 workstation.

Thanks,
Chris  

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Joe Stump
 Sent: Monday, 15 August, 2005 18:48
 To: Knut E.Meidal
 Cc: bacula-users@lists.sourceforge.net
 Subject: Re: [Bacula-users] Backup to ISO image?
 
 Yeah, the original post was about creating (full?) backups directly  
 as images. Ie. instead of a bacula volume the volume would be an ISO  
 file that he could then burn.
 
 What I was asking is if there is any way to mount a bacula volume  
 that was written to disk. The entire thing is one big file. If it's  
 an ISO, then yeah I can mount it on loopback, if it's some  
 proprietary bacula thing then I'd either need baculavolume2iso or an  
 fs driver that would let me mount my bacula volumes.
 
 --Joe
 
 On Aug 15, 2005, at 4:39 PM, Knut E. Meidal wrote:
 
  Using a loopback would work fine for a read/write filesystem. I do  
  that
  all the time.
 
  Maybe I read too much into it, but
  if I understood the original poster, he was looking for mounting a  
  loop
  device/file, writing to it to create a file in ISO format that  
  could be
  burned as-is into a useable CD or DVD.
 
  This is where I think there would be a problem. I doubt you can  
  expect a
  useable ISO image after regular reads/writes/copy to and 
 from the loop
  back image file.
 
  Boy, would I like to be wrong on this... I'd love to be 
 able to do it.
 
  Knut Meidal
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf 
 Of Joshua
  Kugler
  Sent: Monday, August 15, 2005 4:18 PM
  To: bacula-users@lists.sourceforge.net
  Subject: Re: [Bacula-users] Backup to ISO image?
 
 
  What about using a loopback?
 
  j- k-
 
  On Monday 15 August 2005 14:20, Joe Stump wrote:
 
  This is sort like something I was thinking about. It would pretty  
  much
 
 
 
  kick ass if I could mount -t bacula /path/to/fullbackup. As in a  
  Linux
 
 
 
  file system driver or something for bacula volumes.
 
  --Joe
 
  On Aug 15, 2005, at 3:10 PM, Chris Lee wrote:
 
  I know that there has been a lot of work on backup to 
 DVD, though I
  haven't looked very closely at it before.  It has 
 recently occurred
  to me that I
  might like to backup some of my data to dvd, but I don't know if I
  want to
  purchase another dvd writer for my storage machine.  If it isn't
  already
  possible, may I request a feature addition with which CD/DVD
  backups can be
  performed but instead of writing to CD or DVD only an ISO image is
  made
  which can be burned later or on another machine?
 
  Thanks,
  Chris
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle
  Practices Agile  Plan-Driven Development * Managing Projects 
  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/
  bsce5sf
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 
  --
  Joseph C. Stump
  [EMAIL PROTECTED]
  http://www.joestump.net
 
 
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle
  Practices Agile  Plan-Driven Development * Managing 
 Projects  Teams
  * Testing  QA Security * Process Improvement  Measurement *
  http://www.sqe.com/bsce5sf
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 
  -- 
  Joshua Kugler
  CDE System Administrator
  http://distance.uaf.edu/
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle
  Practices Agile  Plan-Driven Development * Managing Projects   
  Teams *
  Testing  QA Security * Process Improvement  Measurement *
  http://www.sqe.com/bsce5sf