Overall, though, properly-made CDs, handled carefully, have been excellent at storing data long-term.
But while this is nice enough I guess for storing individual musical albums long-term, it's not practical for storing truly large volumes of arbitrary data. CD-Rs and CD-RWs have not had the same durability demonstrated at all (quite the opposite in fact). DVDs are better at almost 4GB per disc, but here again only the factory ones are actually durable, and 4GB isn't going to store much these days, perhaps one movie with high lossy compression.