3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of the Bacula build directory using the compressed option
12 TestName="restore-replace-never"
13 JobName=restore-replace-never
17 scripts/copy-test-confs
19 mkdir -p ${cwd}/tmp/dir/dir1
21 # use non usual rights to compare
22 chmod 711 ${cwd}/tmp/dir/dir1
23 GRP=`id -G` # should display the group list
24 set $GRP # affect $1, $2 to this list
25 chgrp $2 ${cwd}/tmp/dir/dir1 # the first one is the default, choose the 2nd
27 touch ${cwd}/tmp/dir/dir1/file1
28 touch ${cwd}/tmp/dir/dir1/file2
29 echo ${cwd}/tmp/dir >${cwd}/tmp/file-list
31 change_jobname CompressedTest $JobName
34 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
37 @$out ${cwd}/tmp/log1.out
38 label storage=File volume=TestVolume001
47 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
50 @$out ${cwd}/tmp/log2.out
51 restore where=$cwd/tmp storage=File replace=never select all done yes
52 @#restore storage=File select all done yes
60 check_for_zombie_jobs storage=File
65 scripts/diff.pl -s ${cwd}/tmp/dir -d ${cwd}/tmp/$cwd/tmp/dir