I think we can look to the way we archive any other information, which tends to be libraries and archives. So in the first instance, make sure the Internet Archive has a copy. If you want to be even more sure, find a friendly library of record (British Library, Bodleian, Library of Congress, that kind of thing) and see if they archive digital documents and give them a copy. Perhaps with a financial contribution guaranteeing retention?