There are problably a million blog posts telling you how to do it, but none of those guides worked for me. Things can often be different sites and other "unknowns", so there is no guarantee this works for you or for every site.
First we'll use curl to search for all the relevant files for the domain and based on the snapshot/timestamp in bold below.
curl -s "https://web.archive.org/cdx/search/cdx?url=yourdomain.com/*&to=2........