<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">You can also do that with rsync. Here’s my script:<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">rsync --links <a href="rsync://rsync.iana.org/tz/tzdata-latest.tar.gz" class="">rsync://rsync.iana.org/tz/tzdata-latest.tar.gz</a> /tmp/tzdata-latest.tar.gz</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">rsync --links <a href="rsync://rsync.iana.org/tz/`readlink" class="">rsync://rsync.iana.org/tz/`readlink</a> /tmp/tzdata-latest.tar.gz` ./</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">rsync --links <a href="rsync://rsync.iana.org/tz/tzcode-latest.tar.gz" class="">rsync://rsync.iana.org/tz/tzcode-latest.tar.gz</a> /tmp/tzcode-latest.tar.gz</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">rsync --links <a href="rsync://rsync.iana.org/tz/`readlink" class="">rsync://rsync.iana.org/tz/`readlink</a> /tmp/tzcode-latest.tar.gz` ./</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><div>Debbie</div><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 24, 2017, at 4:12 PM, Brian Inglis &lt;<a href="mailto:Brian.Inglis@SystematicSW.ab.ca" class="">Brian.Inglis@SystematicSW.ab.ca</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 2017-10-24 16:26, Zefram wrote:<br class=""><blockquote type="cite" class="">Paul Eggert wrote:<br class=""><blockquote type="cite" class="">I no longer recommend FTP to get tzdb.<br class=""></blockquote><br class="">HTTPS is fine for retrieving a specific release, but FTP offers a couple<br class="">of other facilities that AFAICS HTTPS doesn't provide. &nbsp;Specifically, by<br class="">FTP I can enumerate old releases (NLST on the /tz/releases directory), and<br class="">I can identify the latest release (by processing the directory listing).<br class="">I've automated those jobs. &nbsp;Is there a recommended way to do these things<br class="">through the HTTPS interface? &nbsp;(Scraping a human-oriented web page isn't<br class="">an attractive approach.)<br class=""></blockquote><br class="">I've used the FTP site to date because I can download the -latest symlinks as<br class="">files using wget -N to a cache directory, so it only checks the mod date if<br class="">unchanged, then run readlink on the symlink files to get the actual version<br class="">filenames, and quit if those are the same as the last downloaded.<br class=""><br class="">If the HTTPS repository/releases/ were browsable and/or had public static<br class="">-latest URIs provided by either server or HTML redirection, I could do similar<br class="">using curl sans -L to get the latest version URIs, compare those to the last<br class="">downloaded, and quit if unchanged.<br class=""><br class="">I do prefer HTTPS where available, preferably also backed up by directories with<br class="">decent sha###sums, and/or gpg/pgp .sigs, and/or .ascs, for downloaded file<br class="">validation, in case of server, storage, or site problems.<br class=""><br class="">-- <br class="">Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>