Let $\langle X,\tau\rangle$ be a topological space. While there are exceptions, in general there is no such thing as a minimal base for $\tau$: if $\mathscr{B}$ is a base for $\tau$, in general some proper subset of $\mathscr{B}$ is also a base for $\tau$.1 However, among bases for $\tau$ there are bases of minimal cardinality, and that minimal cardinality of a base for $\tau$ is $w(X)$, the weight of $X$.2
Yes, it is true that every base for $\tau$ has a subset of cardinality $w(X)$ that is also a base for $X$. Here’s a proof.
Let $\mathscr{B}$ be a base for $\tau$, and let $\mathscr{W}$ be a base for $\tau$ such that $|\mathscr{W}|=w(X)$. For each $W\in\mathscr{W}$ let $\mathscr{B}(W)=\{B\in\mathscr{B}:B\subseteq W\}$; clearly $\bigcup\mathscr{B}(W)=W$. Let $$\mathscr{W}_W=\{V\in\mathscr{W}:V\subseteq B\text{ for some }B\in\mathscr{B}(W)\}\;;$$ clearly $\bigcup\mathscr{W}_W=\bigcup\mathscr{B}(W)=W$, and $|\mathscr{W}_W|\le|\mathscr{W}|=w(X)$. For each $V\in\mathscr{W}_W$ let $B(V)\in\mathscr{B}(W)$ be such that $V\subseteq B(V)$, and let $$\mathscr{B}_0(W)=\{B(V):V\in\mathscr{W}_W\}\;;$$ $|\mathscr{B}_0(W)|\le|\mathscr{W}_W|\le w(X)$, and $$\bigcup\mathscr{W}_W\subseteq\bigcup\mathscr{B}_0(W)\subseteq\bigcup\mathscr{B}(W)=\bigcup\mathscr{W}_W\;,$$ so $\bigcup\mathscr{B}_0(W)=W$.
Now let $$\mathscr{B}_0=\bigcup_{W\in\mathscr{W}}\mathscr{B}_0(W)\subseteq\mathscr{B}\;.$$
$\mathscr{B}_0$ is the union of $w(X)$ subsets of $\mathscr{B}$, each of which has cardinality at most $w(X)$, so $|\mathscr{B}_0|\le w(X)$. Moreover, each $W\in\mathscr{W}$ is the union of members of $\mathscr{B}_0$, and $\mathscr{W}$ is a base for $\tau$, so $\mathscr{B}_0$ is also a base for $\tau$. Since $w(X)$ is the minimum cardinality of a base for $\tau$, it follows that $|\mathscr{B}_0|=w(X)$.
As Asaf already pointed out in the comments, there is little connection between this notion of base and the notion of basis in vector spaces. What connection there is does not go beyond the fact that both are in some sense small families (of open sets and vectors, respectively) from which the entire topology or vector space can be generated in some natural way.
1 Specifically, if $\mathscr{B}$ is a partition of $X$, then $\mathscr{B}$ is the unique minimal base for the topology $\tau$ on $X$ generated by $\mathscr{B}$. If $\langle X,\tau\rangle$ is $T_1$, this means that $\tau$ is the discrete topology, and $\mathscr{B}=\big\{\{x\}:x\in X\big\}$. Added 25 July 2023: Here is another exceptional case. Suppose that $\tau$ is a finite topology on $X$. For each $x\in X$ let $B(x)=\bigcap\{U\in\tau:x\in U\}$; clearly the sets $B(x)$ are open, and $B(x)$ is the smallest open set containing $x$; it’s not hard to check that $\mathscr{B}=\{B(x):x\in X\}$ is a minimal base for $\tau$.
2 The weight of $X$ is actually defined to be $\omega+\min\{|\mathscr{B}|:\mathscr{B}\text{ is a base for }X\}$, so the weight of any finite topology is $\omega$.