4 if [ ! -d "$sourcefile" ]
6 echo "$1 does not appear to be a directory."
10 timestamp
=$
(echo $
(cat "$sourcefile/timestamp.txt") |
sed 's/:/./g')
12 if [ -z "$timestamp" ]
18 output
="${sourcefile} - ${timestamp}.7z"
22 echo "Target file ${output} already exists"
26 7z a
-mx=9 "${output}" "${sourcefile}"