]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/big-fileset-test
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / tests / big-fileset-test
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6
7 #
8 #  Test if Bacula can handle big fileset
9 #
10
11 TestName="big-fileset-test"
12 JobName=BigFileSet
13 . scripts/functions
14
15 copy_test_confs
16
17 echo "${cwd}/build" >${cwd}/tmp/file-list
18
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
21
22 change_jobname MonsterFileSet $JobName
23 start_test
24
25 cat <<END_OF_SCRIPT >${cwd}/tmp/bconcmds
26 @$out /dev/null
27 messages
28 @$out ${cwd}/tmp/log1.out
29 status all
30 status all
31 list pools
32 messages
33 @#setdebug level=110 storage=File
34 run job=$JobName storage=File yes
35 list pools
36 list volumes
37 wait
38 sql
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 ;
43
44 messages
45 @# 
46 @# now do a restore
47 @#
48 @$out ${cwd}/tmp/log2.out
49 @#setdebug level=400 storage=File
50 restore where=${cwd}/tmp/bacula-restores select storage=File
51 unmark *
52 mark *
53 count
54 ls *
55 dir *
56 find Makefile
57 pwd
58 lsmark
59 estimate
60 ?
61 help
62 done
63 yes
64 wait
65 messages
66 quit
67 END_OF_SCRIPT
68
69 run_bacula
70 check_for_zombie_jobs storage=File || exit 1
71 stop_bacula
72
73 check_two_logs
74
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
78 #  check_restore_diff
79
80 zstat=0
81 dstat=0
82 bstat=0
83 rstat=0
84 end_test