There is absolutely tech that can store digital files for centuries or potentially millennia e.g. https://www.microsoft.com/en-us/research/blog/project-silicas-advances-in-glass-storage-technology/
It's expensive to store and slow to read, so it can only be used as an archival format for the most important data, but it does exist nonetheless.