If your ships are not logged in for more than 6 months, they are wiped for inactivity.
So log the ships every once every few months and you shouldn't lose any progress you have
NB: The inactivity check is done separately for each character on your account(s), so you will have to log every character you want to keep on that account once every six months, not just one of them.