The timeline for that process is millennia, so if we come up with a continual process for replenishment that works on shorter timeframes, it's maintainable.
https://www.nasa.gov/press-release/nasa-mission-reveals-spee...
> MAVEN measurements indicate that the solar wind strips away gas at a rate of about 100 grams (equivalent to roughly 1/4 pound) every second. "Like the theft of a few coins from a cash register every day, the loss becomes significant over time," said Bruce Jakosky, MAVEN principal investigator at the University of Colorado, Boulder. "We've seen that the atmospheric erosion increases significantly during solar storms, so we think the loss rate was much higher billions of years ago when the sun was young and more active.”