1# 2# Default Bareos Storage Daemon Configuration file 3# 4# You may need to change the name of your tape drive 5# on the "Archive Device" directive in the Device 6# resource. If you change the Name and/or the 7# "Media Type" in the Device resource, please ensure 8# that dird.conf has corresponding changes. 9# 10 11Storage { # definition of myself 12 Name = @hostname@-sd 13 SDPort = @sdport@ # Director's port 14 WorkingDirectory = "@working_dir@" 15 Pid Directory = "@piddir@" 16} 17 18# 19# List Directors who are permitted to contact Storage daemon 20# 21Director { 22 Name = @hostname@-dir 23 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" 24} 25 26# 27# Devices supported by this Storage daemon 28# To connect, the Director's bareos-dir.conf must have the 29# same Name and MediaType. 30# 31Autochanger { 32 Name = tape 33 Changer Device = @disk_drive@/conf 34 Changer Command ="@scriptdir@/disk-changer %c %o %S %a %d" 35 Device = Drive-0, Drive-1 36} 37 38Device { 39 Name = Drive-0 # 40 Device Type = File 41 Media Type = tape 42 Archive Device = @disk_drive@/drive0 43 AutomaticMount = yes; # when device opened, read it 44 Autochanger = yes 45 Drive Index = 0 46 AlwaysOpen = yes; 47 RemovableMedia = yes; 48# Maximum File Size = 1000000 49} 50 51Device { 52 Name = Drive-1 # 53 Device Type = File 54 Media Type = tape 55 Archive Device = @disk_drive@/drive1 56 AutomaticMount = yes; # when device opened, read it 57 Autochanger = yes 58 Drive Index = 1 59 AlwaysOpen = yes; 60 RemovableMedia = yes; 61# Maximum File Size = 1000000 62} 63 64 65Autochanger { 66 Name = Virtual 67 Changer Device = /dev/null 68 Changer Command ="" 69 Device = Virtual-1, Virtual-2 70} 71 72Device { 73 Name = Virtual-1 74 Device Type = File 75 Media Type = Disk 76 Archive Device = @tmpdir@ 77 AutomaticMount = yes; # when device opened, read it 78 Autochanger = yes 79 Drive Index = 0 80 AlwaysOpen = yes; 81 RemovableMedia = yes; 82# Maximum File Size = 1000000 83} 84 85Device { 86 Name = Virtual-2 87 Device Type = File 88 Media Type = Disk 89 Archive Device = @tmpdir@ 90 AutomaticMount = yes; # when device opened, read it 91 Autochanger = yes 92 Drive Index = 1 93 AlwaysOpen = yes; 94 RemovableMedia = yes; 95# Maximum File Size = 1000000 96} 97 98Device { 99 Name = FileStorage 100 mediatype = FileMedia 101 Archive Device = @tmpdir@ 102 LabelMedia = yes; # lets Bareos label unlabeled media 103 Random Access = Yes; 104 AutomaticMount = yes; # when device opened, read it 105 RemovableMedia = no; 106 AlwaysOpen = no; 107} 108 109 110# 111# Send all messages to the Director, 112# mount messages also are sent to the email address 113# 114Messages { 115 Name = Standard 116 director = @hostname@-dir = all, !terminate 117} 118