#!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
#
# Test file relocation feature
#
cat <<END_OF_DATA >tmp/bconcmds
@$out tmp/RUN_backup
messages
-label volume=TestVolume001 pool=Default
+label volume=TestVolume001
run job=backup yes
wait
messages
messages
@##################################
@$out tmp/RUN_JobG
-restore strip_prefix="${cwd}" add_prefix="/tmp/bacula-restore.$$"
+restore strip_prefix="${cwd}" add_prefix="${tmp}/bacula-restore.$$"
5
cd ${cwd}/build/po
m *.po
echo "$J in error"
rstat=1
fi
-rm -rf /tmp/bacula-restore.$$
+rm -rf ${tmp}/bacula-restore.$$
J=JobH
grep "Restore OK" tmp/RUN_$J > /dev/null && \