Archival quality blu-ray (such as M-DISKs) can purportedly last hundreds of years and will outlast any electromagnetic events that would destroy other magnetic/electric-based storage mediums.
As others in the thread mention, the key difficulty is reading and interpreting the etched pits on the disk hundreds of years after the spec is obsolete.