On Wed, 22 Jan 2025 at 15:15, Christophe PEREZ via Bacula-users <bacula-users@lists.sourceforge.net> wrote: > > Sorry, but that doesn't answer my question. > I want an automated way. > I already check the announcements, but it's not a safe way. > To be sure not to miss an update, you need an automated way. Since it > doesn't seem to me that bacularis takes care of it (other software does > it internally, and sends an email to the admin when there is a new > version), I have to set it up myself so that I can get it at any time > without waiting for it to come to me. Be careful, an announcement is > taking the risk of missing it and therefore not processing it. It's not > at all functional. > So I ask, where can I find this reliable information, permanently? > For now, I do: > wget -q -O- https://bacularis.com | grep -o ">New release > Bacularis[^<]*" | head -n1 | awk '{print $4}' > But this is not ideal, because if the HTML page changes (and it > inevitably will), I will have to correct the parsing, whereas if a JSON > page returned the version, regardless of the site's changes, we could > rely on this page to know the latest version.
Hi Christophe, Thanks for explaining it. Now I understand it better. In this case the RSS news channel can be the source to parse. It is standardized XML in fixed form so it is safer than parsing the page HTML. At the moment I did some tries. I used xmllint console tool for that with XPath value. Here is this sample: wget -q -O- https://bacularis.app/rss | xmllint --xpath '(/rss/channel/item/title[contains(text(), "New release Bacularis")])[1]/text()' - 2>/dev/null | grep -Po '\d+\.\d+\.\d+' The "New release Bacularis" string is constant for all release announcements. The xmllint comes from libxml2-utils package (DEB-based systems) or libxml2 (RPM-based systems). For easier working with new version numbers, I will check how we could share it easier without using RSS. Thanks for pointing us this need. Best regards, Marcin Haba (gani) _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users