]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/bacula-sd-2disk.conf.in
Big backport from Enterprise
[bacula/bacula] / regress / scripts / bacula-sd-2disk.conf.in
index 109d83a2ce6d5adcb9ba27404ddd9133ec75bb4d..82b50c724d750bbac256fc1c9e214326f6690ca1 100644 (file)
@@ -12,7 +12,7 @@
 
 Storage {                             # definition of myself
   Name = @hostname@-sd
-  SDPort = 8103                  # Director's port      
+  SDPort = @sdport@                  # Director's port      
   WorkingDirectory = "@working_dir@"
   Pid Directory = "@piddir@"
   Subsys Directory = "@subsysdir@"
@@ -32,17 +32,17 @@ Director {
 #  same Name and MediaType. 
 #
 Autochanger {
-  Name = DDS-4
-  Changer Device = @disk_drive@/conf
-  Changer Command ="@scriptdir@/disk-changer %c %o %S %a %d"
-  Device = Drive-0
+  Name = tape
+  Changer Device = /dev/null
+  Changer Command =""
+  Device = Drive-0, Drive-1
 }
 
 Device {
   Name = Drive-0                   # 
   Device Type = File
-  Media Type = DDS-4
-  Archive Device = @disk_drive@/drive0
+  Media Type = tape
+  Archive Device = @tmpdir@
   AutomaticMount = yes;               # when device opened, read it
   Autochanger = yes
   Drive Index = 0
@@ -51,9 +51,56 @@ Device {
 # Maximum File Size = 1000000
 }
 
+Device {
+  Name = Drive-1                   # 
+  Device Type = File
+  Media Type = tape
+  Archive Device = @tmpdir@
+  AutomaticMount = yes;               # when device opened, read it
+  Autochanger = yes
+  Drive Index = 1
+  AlwaysOpen = yes;
+  RemovableMedia = yes;
+# Maximum File Size = 1000000
+}
+
+
+Autochanger {
+  Name = Virtual
+  Changer Device = /dev/null
+  Changer Command =""
+  Device = Virtual-1, Virtual-2
+}
+
+Device {
+  Name = Virtual-1
+  Device Type = File
+  Media Type = Disk
+  Archive Device = @tmpdir@
+  AutomaticMount = yes;               # when device opened, read it
+  Autochanger = yes
+  Drive Index = 0
+  AlwaysOpen = yes;
+  RemovableMedia = yes;
+# Maximum File Size = 1000000
+}
+
+Device {
+  Name = Virtual-2
+  Device Type = File
+  Media Type = Disk
+  Archive Device = @tmpdir@
+  AutomaticMount = yes;               # when device opened, read it
+  Autochanger = yes
+  Drive Index = 1
+  AlwaysOpen = yes;
+  RemovableMedia = yes;
+# Maximum File Size = 1000000
+}
+
 Device {
   Name = FileStorage
-  Media Type = FileMedia
+  mediatype = FileMedia
   Archive Device = @tmpdir@
   LabelMedia = yes;                   # lets Bacula label unlabeled media
   Random Access = Yes;
@@ -71,3 +118,15 @@ Messages {
   Name = Standard
   director = @hostname@-dir = all, !terminate
 }
+
+Cloud {
+  Name = DummyCloud
+  Driver = "File"
+  HostName = "@tmpdir@/cloud"
+  BucketName = "DummyBucket"
+  AccessKey = "DummyAccessKey"
+  SecretKey = "DummySecretKey"
+  Protocol = HTTPS
+  UriStyle = VirtualHost
+}
+