Check out The Long Now Foundation (site: https://longnow.org/ wiki: https://en.wikipedia.org/wiki/Long_Now_Foundation). They are a foundation that has spent some time thinking about that problem and several adjacent problems; see especially the "Manual for Civilization" library project at the Interval bar in SF.