# Move tar file in place
mv $TARFILE $DATE.tgz
- mv $SNARFILE.tmp $SNARFILE
+ if [ "$incrementalsnar" ]; then
+ mv $SNARFILE.tmp $SNARFILE
+ fi
# Update timestamp
echo $DATEs > ../.date && touch -t $DATE ../.date
then
# Take the first full backup of this filesystem on this computer
backuplevel=full
- echo $DATEs > $storagedir/$computer/$sfilesystem/.date
fi
# Check if we want a full backup
if ! ssh root@$computer "[ ! -f /root/.backup/postexec ] || /bin/bash -x /root/.backup/postexec" >&2; then
diemsg "Could not run $computer:/root/.backup/postexec"
fi
+
+echo `date`": $computer: Backup completed successfully."
+echo `date`": $computer: Backup completed successfully." >&2
# Remove lockfile
rm $LOCKFILE