git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7584
91ce42f0-d328-0410-95d8-
f526ca767f89
if test "$debug" -eq 1 ; then
diff -ur build tmp/bacula-restores${cwd}/build
else
- diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
+ diff -ur build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
fi
dstat=$?
}
if test "$debug" -eq 1 ; then
diff -ur tmp/build tmp/bacula-restores${cwd}/tmp/build
else
- diff -r tmp/build tmp/bacula-restores${cwd}/tmp/build 2>&1 >/dev/null
+ diff -ur tmp/build tmp/bacula-restores${cwd}/tmp/build 2>&1 >/dev/null
fi
dstat=$?
}
# List of files to be backed up
FileSet {
Name = "Full Set"
- Include { Options { signature=MD5 }
+ Include {
+ Options { signature=MD5; sparse=yes }
File = <@tmpdir@/file-list
}
}
scripts/cleanup
scripts/copy-test-confs
echo "${cwd}/build" >${cwd}/tmp/file-list
+rm -f ${cwd}/build/sparsefile
+dd if=${cwd}/build/configure of=${cwd}/build/sparsefile bs=1 count=1 seek=10M
change_jobname NightlySave $JobName
start_test
quit
END_OF_DATA
+#
+# ***FIXME***
+# Note, add sparse file backup and check that checksum is
+# correct. Bug #1140
+# create sparse file
+# dd if=/dev/zero of=sparsefile bs=1 count=0 seek=10M
+#
+
run_bacula
sleep 2