To reverse the visibility to private, you mean? I can’t start to imagine how they would do that, but “it took five days” points at a very kludgey hack.
Regarding the other point - the fact it took them 5 days to revert the privacy status on weeks' worth of posts of some ~14million users just points to them being thorough and _not_ doing it in a hacky manner. A hackish solution could have been done in an hour or two, most likely.
And also making private anything you legitimately wanted made public, because they couldn't tell the difference.
584,203,510,091,521 records updated