if [ $? -eq 0 ] && [ -s $TARFILE ]; then
# File is >0 in size and neither cat or tar tzvf failed; we assume it worked.
-
- if ! scp root@$computer:$incrementalsnar $SNARFILE.tmp; then
- diemsg "Could not copy .incremental.snar from $computer"
+
+ if [ "$incrementalsnar" ]; then
+ if ! scp root@$computer:$incrementalsnar $SNARFILE.tmp; then
+ diemsg "Could not copy .incremental.snar from $computer"
+ fi
fi
# Move tar file in place
# Default backuplevel
backuplevel=daglig
- if [ ! -f $storagedir/$computer/$sfilesystem/.date ]
+ if [ ! -s $storagedir/$computer/$sfilesystem/.date ]
then
# Take the first full backup of this filesystem on this computer
backuplevel=full