To prevent rust in pipes, ensure proper water treatment and regular maintenance checks. In San Diego’s climate, using water softeners and inspecting pipes for early signs of corrosion can help.