Bacula-users

Re: [Bacula-users] vchanger question. designed for concurrency?

2008-07-03 06:17:41
Subject: Re: [Bacula-users] vchanger question. designed for concurrency?
From: <S.Lehmann8 AT DeutschePost DOT de>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 3 Jul 2008 12:17:26 +0200
Hi Robert

-----Ursprüngliche Nachricht-----
Von: bacula-users-bounces AT lists.sourceforge DOT net 
[mailto:bacula-users-bounces AT lists.sourceforge DOT net] Im Auftrag von 
Robert Garza
Gesendet: Mittwoch, 2. Juli 2008 19:21
An: bacula-users AT lists.sourceforge DOT net
Betreff: Re: [Bacula-users] vchanger question. designed for concurrency?


I am interested in implementing the vchanger using file-based storage.  Can 
someone please provide me with a configuration example of how this would be 
done using file-based storage?

Regards,
Robert
-=-

Here is my configuration for virtual file changer:

# Bacula-sd.conf
# An autochanger device with two drives
#
Autochanger {
  Name = FileAutoChanger
  Device = FileStorage
  Device = FileStorage1
  Changer Command = "/etc/bacula/scripts/disk-changer %c %o %S %a %d"
  Changer Device = "/etc/bacula/scripts/fileautochanger.conf"
}

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /srv/backup/drive0
  Label Media = yes
  Random Access = yes
  Automatic Mount = yes
  Removable Media = no
  Always Open = yes
  Autochanger = yes
  Drive Index = 0
  Device Type = File
  Autoselect = yes

}

Device {
  Name = FileStorage1
  Media Type = File
  Archive Device = /srv/backup/drive1
  Label Media = yes
  Random Access = yes
  Automatic Mount = yes
  Removable Media = no
  Always Open = yes
  Autochanger = yes
  Drive Index = 1
  Device Type = File
  Autoselect = yes

}

# /etc/bacula/scripts/fileautochanger.conf
baculasd="FileAutoChanger"
baculasd_user=bacula
bconsole=/usr/bin/bconsole
maxslot=30
maxdrive=1

# storage-section in bacula-dir.conf
# Volumes auf dem Filesystem
Storage {
  Name = File
  Address = <ip>
  SD Port = 9103
  Password = "<passwd>"
  Device = FileAutoChanger
  Media Type = File
  Maximum Concurrent Jobs = 20
  Autochanger = yes
}

The directory /srv/backup has to be writeable and owned by bacula, so bacula 
can create create the symbolic links "drive0" and "drive1" targeting the 
virtual slots.

To label the volumes you can use virtual barcodes. Create a file "touch 
/srv/backup/barcode" with this content:
1:00101
2:00102
3:00103
4:00104
5:00105
6:00106
7:00107
8:00108
9:00109
10:00110

Restart bacula-sd and bacula-dir.
Then in bconsole use the label barcode command to prelabel the volumes. Now 10 
volumes called slot1, slot2 and so on are created under /srv/backup.

Greetings
Sebastian

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>