Fix log condition in backup script;