# Get SD password
sd_pass=`grep -i password ${bin}/bacula-sd.conf | head -n 1`
+SDPORT=`expr $BASEPORT + 2`
# Add simple job with store group
cat <<END_OF_DATA >> $bin/bacula-dir.conf
Autochanger {
Name = Disk1
- Address = stretch # N.B. Use a fully qualified name here
- SDPort = 8103
+ Address = localhost # N.B. Use a fully qualified name here
+ SDPort = $SDPORT
${sd_pass}
Device = Disk1
Media Type = Disk1
Autochanger {
Name = Disk2
- Address = stretch # N.B. Use a fully qualified name here
- SDPort = 8103
+ Address = localhost # N.B. Use a fully qualified name here
+ SDPort = $SDPORT
${sd_pass}
Device = Disk2
Media Type = Disk2
Autochanger {
Name = Disk3
- Address = stretch # N.B. Use a fully qualified name here
- SDPort = 8103
+ Address = localhost # N.B. Use a fully qualified name here
+ SDPort = $SDPORT
${sd_pass}
Device = Disk3
Media Type = Disk3
Autochanger {
Name = Disk4
- Address = stretch # N.B. Use a fully qualified name here
- SDPort = 8103
+ Address = localhost # N.B. Use a fully qualified name here
+ SDPort = $SDPORT
${sd_pass}
Device = Disk4
Media Type = Disk4
Autochanger {
Name = Disk5
- Address = stretch # N.B. Use a fully qualified name here
- SDPort = 8103
+ Address = localhost # N.B. Use a fully qualified name here
+ SDPort = $SDPORT
${sd_pass}
Device = Disk5
Media Type = Disk5
Autochanger {
Name = Disk6
- Address = stretch # N.B. Use a fully qualified name here
- SDPort = 8103
+ Address = localhost # N.B. Use a fully qualified name here
+ SDPort = $SDPORT
${sd_pass}
Device = Disk6
Media Type = Disk6
Autochanger {
Name = Disk7
- Address = stretch # N.B. Use a fully qualified name here
- SDPort = 8103
+ Address = localhost # N.B. Use a fully qualified name here
+ SDPort = $SDPORT
${sd_pass}
Device = Disk7
Media Type = Disk7
Autochanger {
Name = Disk8
- Address = stretch # N.B. Use a fully qualified name here
- SDPort = 8103
+ Address = localhost # N.B. Use a fully qualified name here
+ SDPort = $SDPORT
${sd_pass}
Device = Disk8
Media Type = Disk8