Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
130 additions
and
180 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
core/src/tests/configs/messages/bareos-dir.d/catalog/MyCatalog.conf
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
core/src/tests/configs/messages/bareos-dir.d/client/bareos-fd.conf
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
core/src/tests/configs/messages/bareos-dir.d/fileset/Catalog.conf
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
core/src/tests/configs/messages/bareos-dir.d/fileset/LinuxAll.conf
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
core/src/tests/configs/messages/bareos-dir.d/fileset/Windows All Drives.conf
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
core/src/tests/configs/messages/bareos-dir.d/messages/Standard.conf
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
core/src/tests/configs/messages/bareos-dir.d/schedule/WeeklyCycle.conf
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
core/src/tests/configs/messages/bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
core/src/tests/configs/messages/bareos-dir.d/storage/File.conf
This file was deleted.
Oops, something went wrong.
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
8 changes: 8 additions & 0 deletions
8
systemtests/tests/messages-test/etc/bareos/bareos-dir.d/catalog/MyCatalog.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,8 @@ | ||
Catalog { | ||
Name = MyCatalog | ||
#dbdriver = "@DEFAULT_DB_TYPE@" | ||
dbdriver = "XXX_REPLACE_WITH_DATABASE_DRIVER_XXX" | ||
dbname = "@db_name@" | ||
dbuser = "@db_user@" | ||
dbpassword = "@db_password@" | ||
} |
7 changes: 7 additions & 0 deletions
7
systemtests/tests/messages-test/etc/bareos/bareos-dir.d/client/bareos-fd.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,7 @@ | ||
Client { | ||
Name = bareos-fd | ||
Description = "Client resource of the Director itself." | ||
Address = localhost | ||
Password = "@fd_password@" # password for FileDaemon | ||
FD PORT = @fd_port@ | ||
} |
2 changes: 1 addition & 1 deletion
2
...ages/bareos-dir.d/console/bareos-mon.conf → ...s/bareos-dir.d/console/bareos-mon.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,7 +1,7 @@ | ||
Console { | ||
Name = bareos-mon | ||
Description = "Restricted console used by tray-monitor to get the status of the director." | ||
Password = "mon_dir_password" | ||
Password = "@mon_dir_password@" | ||
CommandACL = status, .status | ||
JobACL = *all* | ||
} |
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: 11 additions & 0 deletions
11
systemtests/tests/messages-test/etc/bareos/bareos-dir.d/fileset/Catalog.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 @@ | ||
FileSet { | ||
Name = "Catalog" | ||
Description = "Backup the catalog dump and Bareos configuration files." | ||
Include { | ||
Options { | ||
signature = MD5 | ||
} | ||
File = "@working_dir@/@db_name@.sql" # database dump | ||
File = "@confdir@" # configuration | ||
} | ||
} |
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
File renamed without changes.
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
7 changes: 7 additions & 0 deletions
7
systemtests/tests/messages-test/etc/bareos/bareos-dir.d/messages/Daemon.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,7 @@ | ||
Messages { | ||
Name = Daemon | ||
Description = "Message delivery for daemon messages (no job)." | ||
console = all, !skipped, !saved, !audit | ||
append = "@logdir@/bareos.log" = all, !skipped, !audit | ||
append = "@logdir@/bareos-audit.log" = audit | ||
} |
7 changes: 7 additions & 0 deletions
7
systemtests/tests/messages-test/etc/bareos/bareos-dir.d/messages/Standard.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,7 @@ | ||
Messages { | ||
Name = Standard | ||
Description = "Reasonable message delivery -- send most everything to email address and to the console." | ||
console = all, !skipped, !saved, !audit | ||
append = "@logdir@/bareos.log" = all, !skipped, !saved, !audit | ||
catalog = all, !skipped, !saved, !audit | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
systemtests/tests/messages-test/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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Storage { | ||
Name = File | ||
Address = @hostname@ # N.B. Use a fully qualified name here (do not use "localhost" here). | ||
Password = "@sd_password@" | ||
Device = FileStorage | ||
Media Type = File | ||
SD Port = @sd_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/sh | ||
# | ||
# Run a simple backup | ||
# then restore it. | ||
# | ||
TestName="$(basename "$(pwd)")" | ||
export TestName | ||
|
||
JobName=backup-bareos-fd | ||
|
||
#shellcheck source=../environment.in | ||
. ./environment | ||
|
||
#shellcheck source=../scripts/functions | ||
. "${rscripts}"/functions | ||
"${rscripts}"/cleanup | ||
"${rscripts}"/setup | ||
|
||
|
||
# Directory to backup. | ||
# This directory will be created by setup_data "$@"(). | ||
BackupDirectory="${tmp}/data" | ||
|
||
# Use a tgz to setup data to be backed up. | ||
# Data will be placed at "${tmp}/data/". | ||
setup_data "$@" | ||
|
||
start_test | ||
|
||
cat <<END_OF_DATA >$tmp/bconcmds | ||
@$out /dev/null | ||
messages | ||
@$out $tmp/log1.out | ||
setdebug level=100 storage=File | ||
label volume=TestVolume001 storage=File pool=Full | ||
run job=$JobName yes | ||
status director | ||
status client | ||
status storage=File | ||
wait | ||
messages | ||
@# | ||
@# now do a restore | ||
@# | ||
@$out $tmp/log2.out | ||
wait | ||
restore client=bareos-fd fileset=SelfTest where=$tmp/bareos-restores select all done | ||
yes | ||
wait | ||
messages | ||
quit | ||
END_OF_DATA | ||
|
||
run_bareos "$@" | ||
check_for_zombie_jobs storage=File | ||
stop_bareos | ||
|
||
check_two_logs | ||
check_restore_diff ${BackupDirectory} | ||
end_test |