3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Test if Bacula can handle big fileset
11 TestName="big-fileset-test"
17 echo "${cwd}/build" >${cwd}/tmp/file-list
19 cp ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1
20 sed "s%# Label Format% Label Format%" ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf
22 change_jobname MonsterFileSet $JobName
25 cat <<END_OF_SCRIPT >${cwd}/tmp/bconcmds
28 @$out ${cwd}/tmp/log1.out
33 @#setdebug level=110 storage=File
34 run job=$JobName storage=File yes
39 SELECT StartTime, JobFiles, JobId, Level, count(*) AS nb_jobmedia
40 FROM JobMedia join Job using (JobId) join Client using (ClientId)
41 where Client.Name = 'localhost-fd' group by JobId, Level, StartTime,
42 JobFiles order by JobId desc ;
48 @$out ${cwd}/tmp/log2.out
49 @#setdebug level=400 storage=File
50 restore where=${cwd}/tmp/bacula-restores select storage=File
70 check_for_zombie_jobs storage=File || exit 1
75 # we are really more interested to know if backup and restore
76 # worked, but checking the files restored is non-trivial due
77 # to the big fileset exclusions