This is a very unsolved problem. It doesn't take much foresight to anticipate a Library of Alexandria v2.0 around the corner.
Certainly, we can and should individually archive what's important to us, but more generally (archiving information for the next 1000 years say), I dunno. I hope someone will figure it out.
"there was a library in the distant past that held the entirety of human knowledge. but all was lost when the ancient people who built it lost their 3rd-party cookie trade route to the European invaders"