-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
autoxflate-test: add second sd; add additional tests
- Loading branch information
Showing
21 changed files
with
324 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
systemtests/tests/autoxflate/etc/bareos/bareos-dir.d/pool/Full.conf
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
systemtests/tests/autoxflate/etc/bareos/bareos-dir.d/pool/FullCopy.conf
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
systemtests/tests/autoxflate/etc/bareos/bareos-dir.d/pool/Local.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Pool { | ||
Name = Full | ||
Pool Type = Backup | ||
Recycle = yes # Bareos can automatically recycle Volumes | ||
AutoPrune = yes # Prune expired volumes | ||
Volume Retention = 1 sec # How long should the Full Backups be kept? (#06) | ||
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable | ||
Maximum Volumes = 100 # Limit number of Volumes in Pool | ||
Label Format = "Full-" # Volumes will be labeled "Full-<volume-id>" | ||
Next Pool = FullCopy | ||
} | ||
|
||
Pool { | ||
Name = FullCopy | ||
Pool Type = Backup | ||
Recycle = yes # Bareos can automatically recycle Volumes | ||
AutoPrune = yes # Prune expired volumes | ||
Volume Retention = 1 sec # How long should the Full Backups be kept? (#06) | ||
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable | ||
Maximum Volumes = 100 # Limit number of Volumes in Pool | ||
Label Format = "Full-" # Volumes will be labeled "Full-<volume-id>" | ||
Storage = "L2" | ||
|
||
NextPool = Offsite | ||
} |
25 changes: 25 additions & 0 deletions
25
systemtests/tests/autoxflate/etc/bareos/bareos-dir.d/pool/Offsite.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Pool { | ||
Name = Offsite | ||
Pool Type = Backup | ||
Recycle = yes # Bareos can automatically recycle Volumes | ||
AutoPrune = yes # Prune expired volumes | ||
Volume Retention = 1 sec # How long should the Full Backups be kept? (#06) | ||
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable | ||
Maximum Volumes = 100 # Limit number of Volumes in Pool | ||
Label Format = "O-" # Volumes will be labeled "Full-<volume-id>" | ||
Storage = "O11" | ||
|
||
NextPool = OffsiteCopy | ||
} | ||
|
||
Pool { | ||
Name = OffsiteCopy | ||
Pool Type = Backup | ||
Recycle = yes # Bareos can automatically recycle Volumes | ||
AutoPrune = yes # Prune expired volumes | ||
Volume Retention = 1 sec # How long should the Full Backups be kept? (#06) | ||
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable | ||
Maximum Volumes = 100 # Limit number of Volumes in Pool | ||
Label Format = "OC-" # Volumes will be labeled "Full-<volume-id>" | ||
Storage = "O12" | ||
} |
26 changes: 22 additions & 4 deletions
26
systemtests/tests/autoxflate/etc/bareos/bareos-dir.d/storage/File.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,35 @@ | ||
Storage { | ||
Name = File | ||
Name = L1 | ||
Address = @hostname@ | ||
Password = "@sd_password@" | ||
Device = FileStorage | ||
Device = LD1 | ||
Media Type = File | ||
SD Port = @sd_port@ | ||
} | ||
|
||
Storage { | ||
Name = File2 | ||
Name = L2 | ||
Address = @hostname@ | ||
Password = "@sd_password@" | ||
Device = FileStorage2 | ||
Device = LD2 | ||
Media Type = File | ||
SD Port = @sd_port@ | ||
} | ||
|
||
Storage { | ||
Name = O11 | ||
Address = @hostname@ | ||
Password = "@sd_password@" | ||
Device = 1D1 | ||
Media Type = File | ||
SD Port = @sd2_port@ | ||
} | ||
|
||
Storage { | ||
Name = O12 | ||
Address = @hostname@ | ||
Password = "@sd_password@" | ||
Device = 1D2 | ||
Media Type = File | ||
SD Port = @sd2_port@ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
systemtests/tests/autoxflate/etc/bareos/bareos-sd.d/storage/bareos-sd.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
systemtests/tests/autoxflate/etc/sd-1/bareos-sd.d/device/FileStorage.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Device { | ||
Name = 1D1 | ||
Media Type = File | ||
Archive Device = storage | ||
LabelMedia = yes; # lets Bareos label unlabeled media | ||
Random Access = yes; | ||
AutomaticMount = yes; # when device opened, read it | ||
RemovableMedia = no; | ||
AlwaysOpen = no; | ||
Description = "File device. A connecting Director must have the same Name and MediaType." | ||
|
||
Auto Deflate = write # Compress data as it's written to disk | ||
Auto Deflate Algorithm = LZ4 | ||
} | ||
|
||
Device { | ||
Name = 1D2 | ||
Media Type = File | ||
Archive Device = storage | ||
LabelMedia = yes; # lets Bareos label unlabeled media | ||
Random Access = yes; | ||
AutomaticMount = yes; # when device opened, read it | ||
RemovableMedia = no; | ||
AlwaysOpen = no; | ||
Description = "File device. A connecting Director must have the same Name and MediaType." | ||
|
||
Auto Inflate = write # Decompress data as it's written to disk | ||
} |
24 changes: 24 additions & 0 deletions
24
systemtests/tests/autoxflate/etc/sd-1/bareos-sd.d/device/FileStorage.conf~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Device { | ||
Name = FileStorage | ||
Media Type = File | ||
Archive Device = storage | ||
LabelMedia = yes; # lets Bareos label unlabeled media | ||
Random Access = yes; | ||
AutomaticMount = yes; # when device opened, read it | ||
RemovableMedia = no; | ||
AlwaysOpen = no; | ||
Description = "File device. A connecting Director must have the same Name and MediaType." | ||
} | ||
Device { | ||
Name = FileStorage2 | ||
Media Type = File | ||
Archive Device = storage | ||
LabelMedia = yes; # lets Bareos label unlabeled media | ||
Random Access = yes; | ||
AutomaticMount = yes; # when device opened, read it | ||
RemovableMedia = no; | ||
AlwaysOpen = no; | ||
Description = "File device. A connecting Director must have the same Name and MediaType." | ||
|
||
Auto Inflate = out # Decompress data as it's written to disk | ||
} |
5 changes: 5 additions & 0 deletions
5
systemtests/tests/autoxflate/etc/sd-1/bareos-sd.d/director/bareos-dir.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Director { | ||
Name = bareos-dir | ||
Password = "@sd_password@" | ||
Description = "Director, who is permitted to contact this storage daemon." | ||
} |
5 changes: 5 additions & 0 deletions
5
systemtests/tests/autoxflate/etc/sd-1/bareos-sd.d/messages/Standard.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Messages { | ||
Name = Standard | ||
Director = bareos-dir = all | ||
Description = "Send all messages to the Director." | ||
} |
11 changes: 11 additions & 0 deletions
11
systemtests/tests/autoxflate/etc/sd-1/bareos-sd.d/storage/bareos-sd.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Storage { | ||
Name = bareos-sd-1 | ||
Maximum Concurrent Jobs = 20 | ||
|
||
Working Directory = "@working_dir@" | ||
SD Port = @sd2_port@ | ||
@sd_backend_config@ | ||
|
||
Plugin Directory = "@SD_PLUGINS_DIR_TO_TEST@" | ||
Plugin Names = "autoxflate" | ||
} |
12 changes: 12 additions & 0 deletions
12
systemtests/tests/autoxflate/etc/sd-1/bareos-sd.d/storage/bareos-sd.conf.in~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Storage { | ||
Name = bareos-sd | ||
Maximum Concurrent Jobs = 20 | ||
|
||
Working Directory = "@working_dir@" | ||
SD Port = @sd_port@ | ||
@sd_backend_config@ | ||
|
||
Plugin Directory = "@SD_PLUGINS_DIR_TO_TEST@" | ||
Plugin Names = "autoxflate" | ||
Auto XFlate On Replication = yes | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.